您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
AtCoderの問題ページにカテゴリーを知ることの出来るボタンを設置します。
当前为
// ==UserScript== // @name AtCoderTags_Hint // @version 0.1 // @author Null_Null // @match https://atcoder.jp/contests/*/tasks/* // @match https://*/tasks/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @require https://code.jquery.com/ui/1.12.1/jquery-ui.js // @grant none // @namespace https://github.com/null-null-programming/AtCoderTags-Helper // @description AtCoderの問題ページにカテゴリーを知ることの出来るボタンを設置します。 // ==/UserScript== (function() {})(); function getContestName() { let contestURL = location.href; let contestArray = contestURL.split('/'); return contestArray[contestArray.length - 1]; } $('#contest-nav-tabs').prepend(`<div> <button id="tags-hint" class="btn btn-primary">Hint</button> </div>`); (async function() { $('#tags-hint').click(function() { var probleme_id = getContestName(); window.open().location.href =(('https://atcoder-tags.herokuapp.com/check/'+probleme_id)) }) })();