H::B ('x')

    @@ -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'; + }); +})();
  • /*
     * @title H::B ('x')
     * @description hidden submit form on Hatena Bookmark for an observer
     * @include http://b.hatena.ne.jp/entry*
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // 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';
        });
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2014/12/18 04:22:10 - 2014-12-18
  2. 2014/11/22 08:31:56 - 2014-11-22
  3. 2014/10/13 03:54:56 - 2014-10-13
  4. 2014/10/13 01:46:51 - 2014-10-13