Greasy Fork is available in English.

AntennaSkipper

アンテナサイトをfeeling luckyでスキップする

اعتبارا من 29-12-2015. شاهد أحدث إصدار.

// ==UserScript==
// @name        AntennaSkipper
// @namespace   jp.gr.java_conf.kyu49.antenna_skipper
// @description アンテナサイトをfeeling luckyでスキップする
// @include http*
// @version     3
// @grant       none
// ==/UserScript==
var array=[
  "2ch-c.net/",
  "giko-news.com",
  "antennash.com",
  "www.miji.be",
  "okkaban.com",
  "antennabank.com",
  "rss.harikonotora.net",
  "matomeantena.com/feed/",
  "newmofu.doorblog.jp",
  "newresu1.blog.fc2.com/",
  "2ch-2.net/feed/",
  "lifeantenna.com/feed/",
  "www.tarikin.net/view/",
  "jyouhouya3.net/",
  "newser.cc/",
  "owata.chann.net/pickup/",
  "kateich.net",
  "news-pod.net",
  "uhouho2ch.com",
  "rd.app-heaven.net",
  "2ch.logpo.jp",
  "news-select.net",
  "matomeja.jp",
  "newpuru.doorblog.jp",
  "blog.livedoor.jp/ind_bikkuri",
  "moudamepo.com",
  "anaguro.yanen.org",
  "besttrendnews.net",
  "2ch-matome.com",
  "2chmatomeru.info",
  "news.harikonotora.net",
  "wk-tk.net",
  "modezeichnen.com",
  "news-three-stars.net",
  "webnew.net"
];
if(self.location.href.substring(0,20) === top.location.href.substring(0,20)){
  //デバッグ用
}else{
  return;
}
var len_target=array.length;
if(location.href.indexOf("Im+Feeling+Lucky")!=-1){ //I am feeling luckyで一発でページが表示されなかった時
  var tags=document.getElementsByClassName("g");
  location.href=tags[0].getElementsByTagName("a")[0].href;
}else{
  var links=document.getElementsByTagName('a');
  var len_links=links.length;
  for(var i = 0; i<len_links; i++){
    for(var j =0; j<len_target; j++){
      if(links[i].href.indexOf(array[j])!=-1){
        links[i].href="http://www.google.com/search?btnI=Im+Feeling+Lucky&q="+encodeURI(links[i].text.substr(0, 20));
      }
    }
  }
}