您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Lexicon Shout Box Plugin that adds shout editing and deleting features
// ==UserScript== // @name Lexicon Shout Mod // @namespace http://lexicongta.com/ // @description Lexicon Shout Box Plugin that adds shout editing and deleting features // @include http://lexicongta.com/dashboard // @version 1.00 // @grant none // ==/UserScript== $(document).ready(function(){idle_time_limit = 2147483647;var t=document.getElementsByClassName("row");sbAddButton='<a id="JimErase" class="btn btn-info pull-right" style="margin-right: 5px">Erase</a>',sbAddButton+='<a id="EditShouts" class="btn btn-info pull-right" style="margin-right: 5px">Edit</a>',sbAddButton+='<a id="SpamMessage" class="btn btn-info pull-right" style="margin-right: 5px">Spam</a>',t[2].innerHTML+=sbAddButton}),$("#JimErase").click(function(){$("[ondblclick]").each(function(){var t=new XMLHttpRequest;t.open("GET","chat/engine.php?do=delete&id="+$(this).attr("id"),!0),t.send()})}),$("#EditShouts").click(function(){var t=prompt("Enter new message!","");null!=t&&$("[ondblclick]").each(function(){r=new XMLHttpRequest,r.open("GET","chat/engine.php?do=edit&id="+$(this).attr("id")+"&message="+t,!0),r.send()})}),$("#SpamMessage").click(function(){var t=new XMLHttpRequest,e=prompt("Enter a message to spam!",""),n=prompt("Enter the amount of times too spam",""),a=2100,s=0;leSBSpam=setInterval(function(){return s++,s>n?!1:void t.open("GET","chat/engine.php?do=send&message="+encodeURIComponent(e),!0),t.send()},a)});