您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
EDIT THINGS LIKE A BOSS
当前为
- // ==UserScript==
- // @name GW-Editer ON
- // @include https://www.htacademy.org/
- // @include http://game.galaxywarfare.com*
- // @version 1
- // @namespace http://hairballtech.wix.com/hb-chat
- // @description EDIT THINGS LIKE A BOSS
- // ==/UserScript==
- var zNode = document.createElement ('div');
- zNode.innerHTML = '<button id="myButton2" type="button">'
- + 'Editer On</button>'
- ;
- zNode.setAttribute ('id', 'myContainer2');
- document.body.appendChild (zNode);
- document.getElementById ("myButton2").addEventListener (
- "click", ButtonClickAction, true
- );
- function ButtonClickAction (zEvent) {
- var zNode = document.body.contentEditable='true'; document.designMode='on'; void 0;
- zNode.innerHTML = '';
- document.getElementById ("myContainer2").appendChild (zNode);
- }
- GM_addStyle ( multilineStr ( function () {/*!
- #myContainer2 {
- position: fixed;
- top: 0;
- left: 0;
- font-size: 12px;
- background: ;
- border: 0px outset black;
- margin: 52px 12px;
- opacity: 10;
- z-index: 1000;
- padding: 0px 0px;
- }
- #myButton2 {
- color: #00ff00;
- background: #313131;
- cursor: pointer;
- }
- */} ) );
- function multilineStr (dummyFunc) {
- var str = dummyFunc.toString ();
- str = str.replace (/^[^\/]+\/\*!?/, '')
- .replace (/\s*\*\/\s*\}\s*$/, '')
- .replace (/\/\/.+$/gm, '')
- ;
- return str;
- }