您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
leetcode 热题100随机挑选
// ==UserScript== // @name leetcode小助手 // @description leetcode 热题100随机挑选 // @namespace qiuguangyi123.leetcode-random-hot // @version 0.0.1 // @author qiuguangyi123 // @homepage https://github.com/qiuguangyi123/tampermonkey-scripts // @supportURL https://github.com/qiuguangyi123/tampermonkey-scripts/issues // @license MIT // @match *://leetcode.cn/* // @grant none // ==/UserScript== !function() { "use strict"; function e(e) { var t, n = (t = 'div[class="truncate"]', document.querySelectorAll(t)); if (!(n.length <= 0)) { clearInterval(e); var r = function(e, t) { var n = Array.from(e); return new Array(t).fill(0).map((function() { var e = Math.floor(Math.random() * n.length), t = n[e]; return n.splice(e, 1), t; })); }(n, 5); return r.map((function(e) { return e.innerText; })); } } !function(e, t) { void 0 === t && (t = {}); var n = t.insertAt; if (e && "undefined" != typeof document) { var r = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style"); o.type = "text/css", "top" === n && r.firstChild ? r.insertBefore(o, r.firstChild) : r.appendChild(o), o.styleSheet ? o.styleSheet.cssText = e : o.appendChild(document.createTextNode(e)); } }(""), window.onload = function() { var t = setInterval((function() { console.log(e(t)); }), 300); }; }();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址