您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens a random page on MDN when a new tab is opened
// ==UserScript== // @name Open random MDN page on new tab // @namespace http://tampermonkey.net/ // @version 1.0 // @description Opens a random page on MDN when a new tab is opened // @match about:newtab // @include about:newtab // @license Unlicense // @grant none // ==/UserScript== (function() { 'use strict'; // Total number of pages on MDN const totalPages = 8500; // Generate a random page index const randomIndex = Math.floor(Math.random() * totalPages); // Open the random page on MDN window.open(`https://developer.mozilla.org/en-US/docs/Web/${randomIndex}`); })();