Google 快照的Greasemonkey脚本不好用了?
[i][i][i]用的是这个[/i][/i][/i][quote]// This is a greasemonkey script, for use with the Firefox extension Greasemonkey.
// More info: [url=http://greasemonkey.mozdev.org/]http://greasemonkey.mozdev.org/[/url]
//
// ==UserScript==
// @name Google Cache
// @version 1.0.1
// @author sunwan
// @e-mail [email=bws@cnnj.8866.org]bws@cnnj.8866.org[/email]
// @description Fix google cache to work in china
// @namespace [url=http://www.cnnj.8866.org/download/greasemonkey/]http://www.cnnj.8866.org/download/greasemonkey/[/url]
// @include [url=http://www.google.com/]http://www.google.com/[/url]*
// @include [url=http://www.google.cn/]http://www.google.cn/[/url]*
// ==/UserScript==
var fixed = false;
document.addEventListener('click', catchEvent, true);
function catchEvent(e) {
if ( /\/search\?q=cache:/.test(e.target.href) ) {
e.preventDefault(); // disable click before fixed
}
if ( fixed ) {
document.removeEventListener('click', catchEvent, true);
}
}
function checkPage() {
if (/^http:\/\/www\.google\..+\/search\?/i.test(location.href)) {
var els = document.getElementsByTagName("a");
for (var i = 0; i < els.length; i++) {
try {
if ( /^[^\/]+\/\/[^\/]+\/search\?q=cache:/.test(els[i].href) ) { //is cache
els[i].href = els[i].href.replace(/\/search\?q=cache:/,'/search?&wc=zf&q=cache:');// replace the href
}
} catch (e) {}
}
fixed = true;
}
}
checkPage();[/quote]
[/i][/i][/i] firefox 是什么版本?如果是3.2a1pre的话,不是脚本失效了,而是扩展 GreaseMonkey 失效了。 一直存在此问题
要看你是否撞墙 用扩展:[url]http://www.customizegoogle.com/[/url]! [quote]firefox 是什么版本?如果是3.2a1pre的话,不是脚本失效了,而是扩展 GreaseMonkey 失效了。
[size=2][color=#999999]golf-at 发表于 2009-1-22 21:25[/color] [url=http://board.mozest.com/redirect.php?goto=findpost&pid=166608&ptid=28269][img]http://board.mozest.com/images/common/back.gif[/img][/url][/size][/quote]
最新的Firefox 3.2a1 Greasemonkey可以用了! 用的是3.0.5,这玩意不就是为了翻强看快照么 [quote]用扩展:[url=http://www.customizegoogle.com/]http://www.customizegoogle.com/[/url]!
[size=2][color=#999999]dgfgfgfgfg 发表于 2009-1-23 09:03[/color] [url=http://board.mozest.com/redirect.php?goto=findpost&pid=166624&ptid=28269][img]http://board.mozest.com/images/common/back.gif[/img][/url][/size][/quote]
好东东啊:thumbsup: 我用的是那个Google快照_googlecache.uc.js
一切正常啊 谷歌自己做手脚,都不好用了 好像还能用吧
页:
[1]