fix google.com cache link[inside GWF]
Friday, 3. April 2009, 04:31:40
modify your hosts (linux /etc/hosts) file:
append next content:
touch a userjs file:
EX:OPERA_PROFILE_FOLDER/userjs/google.cache.js
content like next:
append next content:
# Google Cache Server LIST 64.233.161.104 cache.google.com 64.233.167.104 cache.google.com 64.233.189.104 cache.google.com 66.102.7.104 cache.google.com 66.249.81.99 cache.google.com 216.239.39.99 cache.google.com 216.239.57.99 cache.google.com 216.239.63.99 cache.google.com
touch a userjs file:
EX:
content like next:
// ==UserScript==
// @email supercys at hotmail dot com
// @modify SCys
// @include http://*google.com/search*
// ==/UserScript==
// google cache fix
window.opera.addEventListener('BeforeEvent.click',function(e) { // only opera magic event lisnter?
var target = e.event.target;
if(target instanceof HTMLAnchorElement && target.innerHTML=="Cached") {
target.href = target.href
.replace('search?q=cache:','search?~=cache.google.com&q=cache:') // fix link args
.replace(/\/[0-9\.]*\/search\?/, '\/cache.google.com\/search?'); // fix server alias
alert(target.href);
}
},false);

