UserJS fix for Yahoo images search
Monday, 10. July 2006, 15:50:15
fix-yahoo-images-search
Btw, there's another script in this "series" available on userjs.org: Google Image frame bypasser by GreyWyvern
Los amigos del barrio pueden desaparecer, pero los dinosaurios van a desaparecer
Monday, 10. July 2006, 15:50:15
Friday, 26. May 2006, 15:43:22
<label for="startStreet">Street:</label> <input type="text" name="startStreet"> <label for="startCity">City:</label> <input type="text" name="startCity"> <label for="startZip">Zip:</label> <input type="text" name="startZip"> <label for="startCountry">Country:</label> <select type="text" name="startCountry">...</select>
Sunday, 21. August 2005, 13:07:26
if (window.location.href.indexOf('http://www.t-mobile.nl/global/htdocs/page/browser_not_supported.asp')>-1){
window.location.replace('http://www.t-mobile.nl/')
}Monday, 25. July 2005, 09:59:23
if (window.location.href.match(/http:\/\/(\w+\.){0,2}hotmail(\.msn)?\.com\/cgi-bin\/hmhome\?/)){
if (document.referrer=='' || document.referrer.match(/http:\/\/login.passport.net\/uilogin/))
location.href=location.href.replace('hmhome','HoTMaiL');
}Sunday, 24. July 2005, 09:34:54
document.addEventListener(
'load',
function(){
var l=document.getElementsByTagName('link');
var s=document.getElementsByTagName('style');
for (var i=0; i<s.length; i++){
if (s[i[b][/b]].hasAttribute('media')){
if (s[i[b][/b]].getAttribute('media').indexOf('screen')>-1 && s[i[b][/b]].getAttribute('media').indexOf('projection')==-1)
s[i[b][/b]].setAttribute('media',s[i[b][/b]].getAttribute('media')+',projection');
if (s[i[b][/b]].getAttribute('media').indexOf('projection')>-1 && s[i[b][/b]].getAttribute('media').indexOf('screen')==-1)
s[i[b][/b]].setAttribute('media',s[i[b][/b]].getAttribute('media').replace('projection','OperaShow'));
}
}
for (i=0; i<l.length; i++){
if (l[i[b][/b]].hasAttribute('rel') && l[i[b][/b]].hasAttribute('media')){
if (l[i[b][/b]].getAttribute('rel')=='stylesheet' && l[i[b][/b]].getAttribute('media').indexOf('screen')>-1 && l[i[b][/b]].getAttribute('media').indexOf('projection')==-1)
l[i[b][/b]].setAttribute('media',l[i[b][/b]].getAttribute('media')+',projection');
if (l[i[b][/b]].getAttribute('rel')=='stylesheet' && l[i[b][/b]].getAttribute('media').indexOf('projection')>-1 && l[i[b][/b]].getAttribute('media').indexOf('screen')==-1)
l[i[b][/b]].setAttribute('media',l[i[b][/b]].getAttribute('media').replace('projection','OperaShow'));
}
}
},
false
); Tuesday, 28. June 2005, 16:38:49
if (window.location.href.match(/http:\/\/www.alltheweb.com\/search.+cat=img/)) {
window.opera.addEventListener(
'AfterEventListener.load',
function(){var s=document.getElementsByTagName('a');for (var i=0; i<s.length; i++){if (s[i[b][/b]].className=='thumbnail'){s[i[b][/b]].href=s[i[b][/b]].getAttribute('onmouseover').replace(/self\.status='(.+)';return true/,'$1');}}},
false);
}Thursday, 19. May 2005, 11:53:16
if (window.location.href.indexOf('http://www.sony.com')>-1){
window.opera.addEventListener(
'BeforeScript',
function(ev){if(ev.element.text.indexOf('um.o7=')>-1){ev.element.text=ev.element.text.replace(/um\.o7\)\{.*?\}/,'um.o7){um.o75=true;um.o73=true;um.o71=false;}')}},
false);
}Thursday, 28. April 2005, 16:20:37
// ==UserScript== // @include... // ==/UserScript==
if (window.location.href.indexOf('http://www.leidschdagblad.nl')>-1 || window.location.href.indexOf('http://www.limburgsdagblad.nl/')>-1 || window.location.href.indexOf('http://www.telegraafholding.nl')>-1 || window.location.href.indexOf('http://www.hdcmedia.nl')>-1 || window.location.href.indexOf('http://www.limburgadverteren.nl')>-1 || window.location.href.indexOf('http://www.nhd.nl/')>-1 || window.location.href.indexOf('http://www.gooieneemlander.nl/')>-1 || window.location.href.indexOf('http://www.haarlemsdagblad.nl/')>-1 || window.location.href.indexOf('http://www.ijmuidercourant.nl/')>-1 || window.location.href.indexOf('http://www.dvhn.nl')>-1 || window.location.href.indexOf('http://www.vakantierecreatie.nl/')>-1 || window.location.href.indexOf('http://www.almerevandaag.nl/')>-1){
window.opera.defineMagicVariable(
'bSupportedBrowser',
function(){return true;},
null);
}Monday, 4. April 2005, 12:33:46
// description: www.huis-aan-bod.nl - fix of (vertical) alignment of text
// last modified: 2005-04-02
if(window.location.href.indexOf('www.huis-aan-bod.nl')>-1){
window.opera.addEventListener('AfterEventListener.load',function(ev){var str=document.body.getElementsByTagName('tr'); for(var i=str.length-1;i>=0;i--){if(str[i[b][/b]].getAttribute('valign')=='bottom'){str[i[b][/b]].setAttribute('valign','top')}}; },false);
}// description: www.huis-aan-bod.nl - (1) allow login/logout popups on page regardless of popup settings in Opera & (2) fix of navigation menu
// last modified: 2005-04-04
if(window.location.href.indexOf('www.huis-aan-bod.nl')>-1){
window.opera.addEventListener(
'BeforeScript',
function(ev){
var str=ev.element.text;
/*(1)*/
if (str.indexOf('function openWindow()')>-1){
str=('http://www.huis-aan-bod.nl/'+ev.element.text.match(/\".*?\"/)).replace(/\"/g,'');
ev.element.text='function openWindow(){}';
window.open(str)
} else {/*(2)*/ if (str.indexOf('Menu item creation')>-1){
var mnu=new Array;
var i=0; var txt;
while(str.indexOf('oM.makeMenu')>-1){
mnu[i]=str.match(/makeMenu.*?\);/)+'';
str=str.replace(/makeMenu.*?\);/,'');
i++
};
for (i=0;i<mnu.length;i++){
if (mnu[i].indexOf('.gif')>-1){
mnu[i]='<div class="ujsmnu"><a href="'+mnu[i].match(/mid[\d,]+/)+'"><img src="'+mnu[i].match(/imag.*?h\d\.gif/)+'"></a>';
} else {
txt=mnu[i].match(/,.*?,/)+'';
if(txt==",''," || txt.length==6){txt=''} else {txt=' class="ujssub"'};
mnu[i]='<li><a'+txt+' href="'+mnu[i].match(/mid[\d,]+/)+'">'+(mnu[i].match(/[^\']*?\',\'mid/)+'').replace("','mid","")+'</a></li>';
}
};
mnu[mnu.length-1]+='</div>';
ev.element.text="document.write('<style type=\"text/css\">.ujsmnu {float:left; margin-left: 44px;} .ujsmnu + .ujsmnu {margin-left: 4px;} .ujsmnu ul {display:none;} .ujsmnu:hover ul {display:block; background: #cc6; list-style:none; position:absolute; margin: 0; z-index:2; border: solid 1px #787878; width: 154px; font-size: 11px;} .ujsmnu ul a, .ujsmnu ul a:visited {display: block; color: #000; text-decoration: none; font-family: arial,sans-serif; padding: 2px 4px;} .ujsmnu ul a:hover {background-color: #a0b39f;} .ujssub:before {content: \"- \";} .ujssub {padding-left: 12px !important; font-size: 10px; color: #1e4c4c !important}</style>')\n";
for (i=0;i<mnu.length;i++){
if(mnu[i].indexOf('<div')>-1 && i>1){
if(mnu[i-1].indexOf('<li')>-1){
mnu[i]='</ul></div>'+mnu[i];
}else{
mnu[i]='</div>'+mnu[i];
}
};
if(mnu[i].indexOf('<div')>-1 && i<mnu.length-1){
if(mnu[i+1].indexOf('<li')>-1){
mnu[i]+='<ul>';
}
};
ev.element.text+="document.write('"+mnu[i]+"')\n";
};
}
}
},
false);
}
Tuesday, 22. March 2005, 22:23:04
if(window.location.href.indexOf('www.student.uva.nl')>-1){
window.opera.addEventListener('BeforeScript',function(ev){if (ev.element.text.indexOf('id="opleidingenbachelorsselect"')>-1 || ev.element.text.indexOf('id="opleidingenmastersselect"')>-1 || ev.element.text.indexOf('id="opleidingendoctoraalselect"')>-1 || ev.element.text.indexOf('id="opleidingenoverigselect"')>-1) {ev.element.text=ev.element.text+'document.wri[b][/b]teln("</sel[b][/b]ect>")[b][/b];';}},false);
}Thursday, 17. March 2005, 17:07:40
domainHandler['www.trouw.nl'] = screwSniffing01;
function screwSniffing01() {
var str=document.body.getAttribute('onload');
if(str.indexOf('ververs')>=0) {
str=str.replace("ververs('","").replace("')","");
location.replace(str);
}
}