+B!
by
noromanba
2017-02-19 [2017/02/19 18:25:42]
(Forked from
B! by
noromanba)
add Hatena::Bookmark in new tab/window
@@ -1,14 +1,15 @@
/*
- * @title B!
- * @description open Hatena::Bookmark in new tab/window
+ * @title +B!
+ * @description add Hatena::Bookmark in new tab/window
* @include http://*
* @include https://*
- * @contributor dankogai http://let.hatelabo.jp/dankogai/let/gYC-xpO_j7qpDw (Fork of)
- * @author noromanba http://let.hatelabo.jp/noromanba/let/gYC-y5_1hrbuWA
- * @license MIT License
+ * @contributor dankogai http://let.hatelabo.jp/dankogai/let/gYC-xpO_j7qpDw
+ * @contributor noromanba http://let.hatelabo.jp/noromanba/let/gYC-y5_1hrbuWA (Fork of)
+ * @author noromanba
+ * @license MIT License http://opensource.org/licenses/MIT
* @require
*/
-// remove escape() for i18n e.g. http://ja.uncyclopedia.info/wiki/%E7%9B%A5%E5%9B%9E%E3%81%97
-window.open('http://b.hatena.ne.jp/entry/' + location.href, '_blank');
+// via http://nyaos.org/d/index.cgi?p=%282013.02.16%29#p1
+window.open('http://b.hatena.ne.jp/my/add.confirm?url=' + location.href, '_blank');
void 0;
window.open('http://b.hatena.ne.jp/my/add.confirm?url=' + location.href, '_blank');
void 0;
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。