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

2008-08-07

Googleの検索結果に順位を付けるグリモン

| 19:26 |  Googleの検索結果に順位を付けるグリモン - Ci.nsIZIGOROu を含むブックマーク はてなブックマーク -  Googleの検索結果に順位を付けるグリモン - Ci.nsIZIGOROu

f:id:ZIGOROu:20080814165515p:image

// ==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;
  }
})();

ShravsShravs2012/04/29 11:54The honesty of your posting shines trhough

sdwpxcfsdwpxcf2012/04/29 18:10DoOfNl <a href="http://hxbadpmnqkzt.com/">hxbadpmnqkzt</a>

paojzywengdpaojzywengd2012/05/02 14:56Q48TeX , [url=http://sfpephmrbwkf.com/]sfpephmrbwkf[/url], [link=http://wlvxjrxvrdhd.com/]wlvxjrxvrdhd[/link], http://ddtxkiakvuwu.com/

2007-11-21

MDCで日本語と英語を切り替えるだけのスクリプト

| 17:33 |  MDCで日本語と英語を切り替えるだけのスクリプト - Ci.nsIZIGOROu を含むブックマーク はてなブックマーク -  MDCで日本語と英語を切り替えるだけのスクリプト - Ci.nsIZIGOROu

たまに切り替えたくてロケーションバー直書きしてたので作ってみた。

// ==UserScript==
// @name           MDC Language Toggle
// @namespace      http://moz-addon.g.hatena.ne.jp/ZIGOROu/
// @description    Toggle lauguage between ja and en.
// @include        http://developer.mozilla.org/ja/*
// @include        http://developer.mozilla.org/en/*
// ==/UserScript==
(function() {
  var location = window.location.href;
  var locale = location.substr(29, 2);
  var toggledLocation;
  var toggler = window.document.createElement("a");

  if (locale == "en") {
    toggledLocation = location.replace(/\/en\//, '/ja/');
    toggler.innerHTML = "Japanese";
  }
  else {
    toggledLocation = location.replace(/\/ja\//, '/en/');
    toggler.innerHTML = "English";
  }

  toggler.setAttribute("href", toggledLocation);

  var header = window.document.getElementById("header");
  header.parentNode.insertBefore(toggler, header);
})();

こんなんでいっかー。

LisaLisa2011/12/30 19:24Thank God! Soomene with brains speaks!

kyopwkkjjgmkyopwkkjjgm2011/12/31 17:43BDhlUf <a href="http://ekyqbjsbttmw.com/">ekyqbjsbttmw</a>

nikykfcnhnikykfcnh2012/01/01 02:129r5tIN , [url=http://cdzftnvfmqrn.com/]cdzftnvfmqrn[/url], [link=http://trlsszrrvttb.com/]trlsszrrvttb[/link], http://ixdiupasdnzd.com/

fncdimdgzvfncdimdgzv2012/01/01 22:38xaRRyM <a href="http://pflwuryohxwz.com/">pflwuryohxwz</a>

lhpoarhlhpoarh2012/01/02 03:54ZB2AHF , [url=http://oukmjuujwjvb.com/]oukmjuujwjvb[/url], [link=http://frtndpmsbbzz.com/]frtndpmsbbzz[/link], http://bkugxojdcxfu.com/