Greasy Fork is available in English.

coder666 随机跳题

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

2023-07-24 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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>';
})();