您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
当前为
// ==UserScript== // @name atcoder_all_open // @namespace jp.misw // @author hotman // @description:ja 問題Tabの隣に全ての問題を(ワンクリックで)開く全ての問題Tabを作成します。 // @version 1.0.0 // @include https://atcoder.jp/contests/* // @grant none // ==/UserScript== function toURL(){ var cnt=document.getElementsByClassName("table table-bordered table-striped")[0].children[1].childElementCount; var test_name=location.href.split('/')[4]; for(var i=0;i<cnt;i++){ window.open('https://atcoder.jp/contests/'+test_name+'/tasks/'+test_name+'_'+String.fromCharCode('a'.charCodeAt(0)+i)); } } function all_open(){ var parent=document.getElementsByClassName("nav nav-tabs")[0]; var add=document.createElement("li"); parent.insertBefore(add,parent.children[2]); var a=document.createElement("a"); add.appendChild(a); a.textContent="全ての問題"; a.setAttribute("href","javascript:void(0);"); a.addEventListener('click',toURL, false); } all_open();