不错呦!smile@林凯西,确保“准备文件”中的几个文件都有安装,S...您好,看了您这篇帖子觉得很有帮助。但是有个问题想请...我的修改过了怎么还被恶意注册呢 @jjjjiiii 用PJ快9年了,主要是A...PJ3啊,貌似很少有人用PJ了,现在不是WP就是z...@332347365,我当时接入时错误码没有-10...楼主,ChkValue值应为-103是什么意思呢?...大哥 你最近能看到我发的信息,请跟我联系,我有个制...
GreaseMonkey脚本:Google Real Link
编辑:dnawo 日期:2012-05-07
复制内容到剪贴板
程序代码

// ==UserScript==
// @name Google Real Link
// @namespace http://userscripts.org/scripts/show/125473
// @description Disable the Google search rewrite, always showing and using the real, original, direct link URLs, to stop being tracked, also to prevent from using redirected pages that might be temporarily unavailable in some area. See: http://userscripts.org/scripts/show/125473
// @include http://www.google.*/*
// @include https://www.google.*/*
// @include https://encrypted.google.*/*
// @updateURL https://userscripts.org/scripts/source/125473.meta.js
// @downloadURL https://userscripts.org/scripts/source/125473.user.js
// @version 1.1
// @author tomchen1989
// @license MIT/Expat license
// ==/UserScript==
function addEventCompatible(obj, evt, fn){
if (obj.addEventListener) {//W3C
obj.addEventListener(evt, fn, false);
} else if (obj.attachEvent) {//IE
obj.attachEvent("on" + evt, fn);
}
}
function getWindow(windowObjName) {//works after window[windowObjName] loaded
if (typeof(unsafeWindow) !== "undefined" && typeof(unsafeWindow[windowObjName]) !== "undefined") {//Greasemonkey
return unsafeWindow;
} else if (typeof(window[windowObjName]) !== "undefined") {//Opera, etc.
return window;
} else {
try {//Google Chrome
var div = document.createElement("div");
div.setAttribute("onclick", "return window;");
var windowCompatible = div.onclick();
if (typeof(windowCompatible[windowObjName]) === "undefined") {
return false;
} else {
return windowCompatible;
}
} catch (e) {
return false;
}
}
}
addEventCompatible(window, "load", function() {
if (getWindow("rwt")) {
getWindow("rwt").rwt = function () {}
}
})
// @name Google Real Link
// @namespace http://userscripts.org/scripts/show/125473
// @description Disable the Google search rewrite, always showing and using the real, original, direct link URLs, to stop being tracked, also to prevent from using redirected pages that might be temporarily unavailable in some area. See: http://userscripts.org/scripts/show/125473
// @include http://www.google.*/*
// @include https://www.google.*/*
// @include https://encrypted.google.*/*
// @updateURL https://userscripts.org/scripts/source/125473.meta.js
// @downloadURL https://userscripts.org/scripts/source/125473.user.js
// @version 1.1
// @author tomchen1989
// @license MIT/Expat license
// ==/UserScript==
function addEventCompatible(obj, evt, fn){
if (obj.addEventListener) {//W3C
obj.addEventListener(evt, fn, false);
} else if (obj.attachEvent) {//IE
obj.attachEvent("on" + evt, fn);
}
}
function getWindow(windowObjName) {//works after window[windowObjName] loaded
if (typeof(unsafeWindow) !== "undefined" && typeof(unsafeWindow[windowObjName]) !== "undefined") {//Greasemonkey
return unsafeWindow;
} else if (typeof(window[windowObjName]) !== "undefined") {//Opera, etc.
return window;
} else {
try {//Google Chrome
var div = document.createElement("div");
div.setAttribute("onclick", "return window;");
var windowCompatible = div.onclick();
if (typeof(windowCompatible[windowObjName]) === "undefined") {
return false;
} else {
return windowCompatible;
}
} catch (e) {
return false;
}
}
}
addEventCompatible(window, "load", function() {
if (getWindow("rwt")) {
getWindow("rwt").rwt = function () {}
}
})
兼容于Firefox等浏览器的Greasemonkey、Scriptish等扩展插件、原生的Google Chrome和Opera等浏览器、IE的IE7Pro或其他支持用户脚本的插件。






评论: 0 | 引用: 0 | 查看次数: 5054
发表评论
请登录后再发表评论!