coder666 随机跳题

你可以通过这个插件让 coder666 的顶部有一个随机跳题按钮

Verze ze dne 24. 07. 2023. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         coder666 随机跳题
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  你可以通过这个插件让 coder666 的顶部有一个随机跳题按钮
// @author       emmm
// @match        *://www.coder666.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
 //   var r=(Math.floor(Math.random() * 905) + 1000).toString();
    var w=document.querySelector('body > div:nth-child(1)');
    //w.innerHTML='<button onclick="window.open(\'http://www.coder666.com/problem.php?id=\'+(Math.floor(Math.random() * 905) + 1000).toString(),\'_blank\');">try this problem</button>';
    w.innerHTML='<br> \xa0 <a class="small ui orange button" onclick="window.open(\'http://www.coder666.com/problem.php?id=\'+(Math.floor(Math.random() * 905) + 1000).toString(),\'_blank\');">try this problem  \xa0 ( random )</a>';
})();