您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show only .com, .net, .org domains in Google Search results.
- // ==UserScript==
- // @name Google Search Only Normal TLDs
- // @author
- // @description Show only .com, .net, .org domains in Google Search results.
- // @downloadURL
- // @grant
- // @homepageURL https://bitbucket.org/INSMODSCUM/userscripts-scripts/src
- // @icon
- // @include /https?://(www|encrypted).google(.\w+)(.\w+)?/((\?|#|search|webhp).*)?/
- // @namespace insmodscum
- // @require
- // @run-at document-start
- // @updateURL
- // @version 1.0
- // ==/UserScript==
- // rtfm: http://www.w3schools.com/jsref/obj_location.asp
- if (! /site%3A.com%20OR%20site%3A.net%20OR%20site%3A.org/.test(window.location.search.substring(1))) {
- var newURL = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search+"%20(site%3A.com%20OR%20site%3A.net%20OR%20site%3A.org)";
- window.location.replace (newURL);
- }