H::B ('x')
by
noromanba
2014-12-18 [2014/12/18 04:22:10]
hidden submit form on Hatena Bookmark for an observer
@@ -1,10 +1,20 @@
/*
* @title H::B ('x')
* @description hidden submit form on Hatena Bookmark for an observer
- * @include http://b.hatena.ne.jp/entry/*
+ * @include http://b.hatena.ne.jp/entry*
* @license MIT License http://opensource.org/licenses/MIT
* @javascript_url
*/
-(document.querySelector('#add-bookmark-container') || { style: { display: '' }}).style.display = 'none';
-void 0;
+// c.f. http://ptech.g.hatena.ne.jp/noromanba/20141012/1413137849
+(function () {
+ var editors = [
+ '#add-bookmark-container',
+ '#favorite-bookmarks',
+ '#update-category-form',
+ '#category-edit'
+ ];
+ Array.prototype.forEach.call(document.querySelectorAll(editors), function (editor) {
+ editor.style.display = 'none';
+ });
+})();
(function () {
var editors = [
'#add-bookmark-container',
'#favorite-bookmarks',
'#update-category-form',
'#category-edit'
];
Array.prototype.forEach.call(document.querySelectorAll(editors), function (editor) {
editor.style.display = 'none';
});
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。