ゼロと無限の間に

フリーでオープンソースなJavaScriptとかPHPとか。

ユーザ用ツール

サイト用ツール


greasemonkey:delecious-open-tab-greasemonkey

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
greasemonkey:delecious-open-tab-greasemonkey [2010/09/11 22:17] – 0.1.0d 対象サイトにwww.delicious.comを追加 dgbadmingreasemonkey:delecious-open-tab-greasemonkey [2010/09/17 01:42] (現在) – ドメイン変更(www.delicious.com)に対応 dgbadmin
行 15: 行 15:
 // @description A script to open a page in the new tab on Delicious.com. // @description A script to open a page in the new tab on Delicious.com.
 // @homepage    http://0-oo.net/sbox/greasemonkey/delecious-open-tab-greasemonkey // @homepage    http://0-oo.net/sbox/greasemonkey/delecious-open-tab-greasemonkey
-// @version     0.1.0d+// @version     0.1.1
 // @include     http://delicious.com/* // @include     http://delicious.com/*
 // @include     http://www.delicious.com/* // @include     http://www.delicious.com/*
行 25: 行 25:
     var links = document.getElementsByTagName("a");     var links = document.getElementsByTagName("a");
     for (var i = 0; i < links.length; i++) {     for (var i = 0; i < links.length; i++) {
-        if (links[i].href.split("/")[2] != "delicious.com") {+        if (links[i].href.split("/")[2] != "www.delicious.com") {
             links[i].target = "_blank";             links[i].target = "_blank";
         }         }
greasemonkey/delecious-open-tab-greasemonkey.1284211036.txt.gz · 最終更新: 2010/09/11 22:17 (外部編集)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki