您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Solves fun math
当前为
// ==UserScript== // @name Solving maths is fun // @description Solves fun math // @author Ko // @version 1 // @include *.koalabeast.com:* // @include *.jukejuice.com:* // @include *.newcompte.fr:* // @icon https://github.com/wilcooo/TagPro-SolvingMathsIsFun/raw/master/icon.png // @supportURL https://www.reddit.com/message/compose/?to=Wilcooo // @website https://redd.it/no-post-yet // @license MIT // @namespace https://greasyfork.org/users/152992 // ==/UserScript== tagpro.ready(function() { var names = []; tagpro.socket.on('p', function(p) { for (var pu of (p.u || p)) { if (pu.name != names[pu.id]) { names[pu.id] = pu.name; if (pu.name.match(/^[ \d×÷=/*+-]+$/)) { try { var answer = eval(pu.name.replace('×','*').replace('÷','/').replace('=','')); tagpro.socket.emit('chat', {message:String(answer)}); } catch(e){} } } } }); });