您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Logs stuff
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/501961/1418070/CreateLogger.js
// ==UserScript== // @name CreateLogger // @version 1.0 // @description Logs stuff // @author Toonidy // @match *://*.nitrotype.com/race // @match *://*.nitrotype.com/race/* // @license MIT // ==/UserScript== // Credit to Toonidy function createLogger(namespace) { const logPrefix = (prefix = "") => { const formatMessage = `%c[${namespace}]${prefix ? `%c[${prefix}]` : ""}`; let args = [ console, `${formatMessage}%c`, "background-color: #4285f4; color: #fff; font-weight: bold", ]; if (prefix) { args = args.concat( "background-color: #4f505e; color: #fff; font-weight: bold" ); } return args.concat("color: unset"); }; const bindLog = (logFn, prefix) => Function.prototype.bind.apply(logFn, logPrefix(prefix)); return { info: (prefix) => bindLog(console.info, prefix), warn: (prefix) => bindLog(console.warn, prefix), error: (prefix) => bindLog(console.error, prefix), log: (prefix) => bindLog(console.log, prefix), debug: (prefix) => bindLog(console.debug, prefix), }; }