Monday, February 7, 2011

OperaFix MyOpera search


// ==UserScript==
// @name   OperaFix MyOpera search
// @version 0.8.3
// @description Version 0.8.3 (OperaFixマイオペラサーチ)
// @namespace OperaFix MyOpera search
// @author  Kurojitosan  (SpecialThanks MyOpera)
// @include http://my.opera.com/*
// @exclude http://acid3.acidtests.org/* 
// ==/UserScript==
                            
 if(true){_doc_='';_cl_='LightGrey';_c2_='LightBlue';_vw_=800;

  _doc_+='<style>*{font-family:"Meiryo UI" !important}</style>';
  _doc_+='<a target=_blank href=//www.google.com/ig><font color='+_c2_+'>iGoogle</font></a> ';
  _doc_+='<a target=_blank href=//translate.google.com/?hl=en#ja|en|><font color='+_c2_+'>Trans</font></a> ';
  _doc_+='<a target=_blank href=//find.2ch.net/?STR=OPERA&COUNT=50><font color='+_c2_+'>2ch</font></a> ';
  _doc_+='<a target=_blank href=//ja.bbs.luna.tv/search.php?keywords=OPERA><font color='+_c2_+'>Luna</font></a> ';
  _doc_+='<font color='+_cl_+'>MyOperaSearch </font >';
  _doc_+='<a target=_blank href=//userscripts.org/scripts/source/86331.user.js><font color='+_c2_+'>+</font></a> ';
  _doc_+='<font color='+_cl_+'> OperaFix</font ><br>';
  _doc_+='<form method=get target=_blank action=//my.opera.com/japanese/forums/search.dml? accept-charset=utf-8>';
  _doc_+='<font color='+_cl_+'>English</font ><input name=term type=text style=white-space:nowrap;width:140px;> ';
  _doc_+='<input type=reset value=" C " style=font-family:Meiryo;> <input type=submit value=Search style=font-family:Meiryo;>';
  _doc_+='<input type=hidden name=datemodifier value=newer><input type=hidden name=sortby value=reverse>';
  _doc_+='<input type=hidden name=disp value=post><input type=hidden name=limitdate value=999></form>';
  _doc_+='<form method=get target=_blank action=//www.google.com/search accept-charset=utf-8>';
  _doc_+='<font color='+_cl_+'>Global</font > <input name=hl value=ja type=hidden><input name=num value=100 type=hidden>';
  _doc_+='<input type=hidden name=sitesearch value=my.opera.com>';
  _doc_+='<input name=q type=text style=white-space:nowrap;width:140px;> ';
  _doc_+='<input type=reset value=" C " style=font-family:Meiryo;> <input type=submit value=Search style=font-family:Meiryo;></form>';
  _doc_+='<form method=get target=_blank action=//www.google.com/search accept-charset=utf-8>';
  _doc_+='<font color='+_cl_+'>World</font > <input name=hl value=ja type=hidden><input name=num value=100 type=hidden>';
  _doc_+='<input type=hidden name=sitesearch value=><img width=0 src=//userscripts.org/scripts/source/86331.user.js>';
  _doc_+='<input name=q type=text style=white-space:nowrap;width:140px;> ';
  _doc_+='<input type=reset value=" C " style=font-family:Meiryo;> <input type=submit value=Search style=font-family:Meiryo;></form>';
  _doc_+='<a target=_blank href=//files.myopera.com/Kurojitosan/rion/RION.html><font color='+_c2_+'>RION</font></a> ';
  _doc_+='<a target=_blank href=//www.dailymotion.com/en><font color='+_c2_+'>DMotion</font></a> ';
  _doc_+='<a target=_blank href=//www.vimeo.com/><font color='+_c2_+'>Vimeo</font></a> ';
  _doc_+='<a target=_blank href=//www.youtube.com/><font color='+_c2_+'>YouTube</font></a> ';
  _doc_+='<a target=_blank href=//www.videosurf.com/><font color='+_c2_+'>Surf</font></a> ';
  _doc_+='<a target=_blank href=//www.fooooo.com/><font color='+_c2_+'>fooo</font></a> ';
  _doc_+='<a target=_blank href=//photobucket.com/><font color='+_c2_+'>Photo</font></a> ';
  _doc_+='<a target=_blank href=//tinyurl.com/><font color='+_c2_+'>Tiny</font></a><br>';
  _doc_+='<style>object,embed{width:'+(_vw_)+'px !important;height:'+Math.floor(25+_vw_*9/16)+'px !important}</style>';

  if(0>navigator.userAgent.indexOf('Opera')){
   _doc_=_doc_.replace('target=_blank href=//userscripts.org/scripts/','href=//userscripts.org/scripts/');
  }
  _loc_=location.href.split('/');if(('my.opera.com'==_loc_[2])&&('forums'==_loc_[4])){
   _doc_=_doc_.replace('//my.opera.com/japanese/forums/search.','//my.opera.com/'+_loc_[3]+'/forums/search.');
  }
  function _addElementID_(_do_,_id_){
   if(_ele_=document.createElement('div')){with(_ele_){id=_id_+'Child';innerHTML=_do_;}
   if(_eleid_=document.getElementById(_id_)){with(_eleid_){appendChild(_ele_);return(1);}}}return(0);
  } _r_=0; if(0==(_r_=_addElementID_(_doc_,'forumsearch'))){
   if(0==(_r_=_addElementID_(_doc_,'forumnav'))){
   if(0==(_r_=_addElementID_(_doc_,'forum-home-search'))){
  }}} if(_r_){document.body.innerHTML=document.body.innerHTML.replace(/(<embed )/g,'<embed wmode=transparent ')}

 } 

0 comments:

Post a Comment