AtCoderTags_Hint

AtCoderの問題ページにカテゴリーを知ることの出来るボタンを設置します。

目前為 2019-12-10 提交的版本,檢視 最新版本

// ==UserScript==
// @name         AtCoderTags_Hint
// @version      0.5
// @author       Null_Null
// @match        https://atcoder.jp/contests/*/tasks/*
// @match        https://*/tasks/*
// @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))
    })
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址