coder666 随机跳题

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

Version vom 24.07.2023. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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