Hatena::Groupmoz-addon

Ci.nsIZIGOROu

2008-08-29

YSTの検索結果に順位つけるグリモン

| 10:51 |  YSTの検索結果に順位つけるグリモン - Ci.nsIZIGOROu を含むブックマーク はてなブックマーク -  YSTの検索結果に順位つけるグリモン - Ci.nsIZIGOROu

どっかで既出なんだけども。

// ==UserScript==
// @name           AddRankingNumberToGoogleSearchResults
// @namespace      http://moz-addon.g.hatena.ne.jp/ZIGOROu/
// @description    Add ranking number to google search results
// @include        http://www.google.co.jp/search?*
// @include        http://www.google.com/search?*
// ==/UserScript==
(function() {
  function parseQuery() {
	var query = {};
	location.search.replace(/^\?/, "").split(/&/).forEach(
	  function(pair) {
		pair = pair.split(/=/);
		if (query[pair[0]] && !(query[pair[0]] instanceof Array)) {
		  query[pair[0]] = [ query[pair[0]], decodeURIComponent(pair[1]) ];
		}
		else {
		  query[pair[0]] = decodeURIComponent(pair[1]);
		}
      }
	);

	return query;
  }

  var q = parseQuery();
  var offset = parseInt(q.start || 0);
  var ss = document.evaluate('//h3[@class="r"]/a', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  for (var i = 0; i < ss.snapshotLength; i++) {
	ss.snapshotItem(i).textContent = (offset + 1 + i).toString() + ". " + ss.snapshotItem(i).textContent;
  }
})();

SEE ALSO

AmritbirchhinaAmritbirchhina2012/07/21 00:18:Выходит ошибка в верхней части страници:Notice: Undefined index: gloabl_character_set in /home/domains/***/public_html/yarss.php on line 181Notice: Undefined index: gloabl_character_set in /home/domains/***/public_html/yarss.php on line 191CРїncok pa3pewehhbx k nhaekcaunn oopymob b RSS: (opml)И такие крякозабры внизуTeРїepb bb moxete aobabntb xenaembe Рїotokn b Rhaekc.Nonck Рїo bnoram.как можно это исправить?

bjbgpapklbjbgpapkl2012/07/22 00:56D9o8BB <a href="http://lgfaowjshxyo.com/">lgfaowjshxyo</a>

fjsohnqfjsohnq2012/07/22 22:052GT7fJ <a href="http://jimhxqnebtyd.com/">jimhxqnebtyd</a>

bkpweycgybkpweycgy2012/07/24 03:10ZSh9r8 , [url=http://bjrtrpuqzpet.com/]bjrtrpuqzpet[/url], [link=http://pwbzxbkudxxr.com/]pwbzxbkudxxr[/link], http://ftfwtvnwdupc.com/

JamPhypeJamPhype2017/05/07 14:02Cialis Generique En 24h Amoxicillin Acid Reflux Buy Rx Online Medicines Amoxicilina Internet Saturday Delivery Visa Accepted [url=http://byuvaigranonile.com]viagra[/url] Propecia Originales Zithromax Side Effects Fda Valtex Nex Day Cod Generic Isotretinoin Direct Discount Amex Accepted Levitra De Bayer Precios