!link

    @@ -4,11 +4,13 @@ * @include http://* * @include https://* * @license MIT License http://opensource.org/licenses/MIT + * @contributor noromanba http://let.hatelabo.jp/noromanba/let/gYC-x4-VhvKdWA * @contributor rikuba http://let.hatelabo.jp/rikuba/let/gYC-y5Ca8MWVPg (Fork of) + * @author noromanba http://flavors.me/noromanba * @require */ -// TODO togggle UI, state into a closuer +// TODO toggle UI, state into a closure (function (doc) { var parent = doc.head || doc.documentElement || doc.body; var id = 'bookmarklet-disable-link';
  • /*
     * @title !link
     * @description toggle enable/disable links
     * @include http://*
     * @include https://*
     * @license MIT License http://opensource.org/licenses/MIT
     * @contributor noromanba http://let.hatelabo.jp/noromanba/let/gYC-x4-VhvKdWA
     * @contributor rikuba http://let.hatelabo.jp/rikuba/let/gYC-y5Ca8MWVPg (Fork of)
     * @author noromanba http://flavors.me/noromanba
     * @require 
     */
    
    // TODO toggle UI, state into a closure
    (function (doc) {
        var parent = doc.head || doc.documentElement || doc.body;
        var id = 'bookmarklet-disable-link';
        var style;
        if (!(style = doc.getElementById(id))) {
            style = doc.createElement('style');
            style.id = id;
            style.charset = 'utf8';
            parent.appendChild(style);
        }
    
        if (style.textContent) {
            style.textContent = '';
            return;
        }
        // TODO ignore hasn't textnode anchor e.g. <a href="/"><img></a>
        style.textContent = [
            'a[href] { pointer-events: none; background-color: tan; }',
            'a[href]:before { content: "×" }'
        ].join(' ');
    })(document);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/02/04 04:41:57 - 2013-02-04
  2. 2013/02/04 04:40:44 - 2013-02-04
  3. 2013/02/04 04:34:27 - 2013-02-04
  4. 2013/02/03 11:47:29 - 2013-02-03
  5. 2013/01/29 10:50:24 - 2013-01-29
  6. 2013/01/29 10:46:34 - 2013-01-29
  7. 2013/01/29 10:42:34 - 2013-01-29
  8. 2013/01/29 10:42:22 - 2013-01-29
  9. 2013/01/29 10:42:19 - 2013-01-29