您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button at the top right corner to view the web pages in Google Weblight (For Faster Loading of Webpages)..
// ==UserScript== // @name Google Weblight // @namespace Google Weblight // @description Adds a button at the top right corner to view the web pages in Google Weblight (For Faster Loading of Webpages).. // @include * // @exclude https://googleweblight.com/* // @version 1.1 // @grant GM_addStyle // ==/UserScript== var FNode = document.createElement ('div'); FNode.innerHTML = '<button id="myButton" type="button">'+ 'Google <br/> Weblight</button>'; FNode.setAttribute ('id', 'myContainer'); FNode.style = "top:0;right:0;position:fixed;"; document.body.appendChild (FNode); document.getElementById ("myButton").addEventListener ( "click", ButtonClickAction, false ); function ButtonClickAction (zEvent) { window.location = "http://googleweblight.com/?lite_url=" + encodeURIComponent(document.URL); }