cssOnOff

    @@ -7,10 +7,12 @@ /* via https://gist.github.com/2040869 */ -(function cssOnOff() { +function cssOnOff() { Array.prototype.forEach.call( document.styleSheets, function disabledSheet(sheet) { sheet.disabled = !sheet.disabled; }); -})() +} + +setInterval(cssOnOff, 10);
  • /*
     * @title cssOnOff
     * @description toggle stylesheet on/off
     * @include http://*
     * @license MIT License
     */
    
    /* via https://gist.github.com/2040869 */
    
    function cssOnOff() {
      Array.prototype.forEach.call(
      document.styleSheets,
      function disabledSheet(sheet) {
        sheet.disabled = !sheet.disabled;
      });
    }
    
    setInterval(cssOnOff, 10);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/03/13 18:50:06 - 2013-03-13
  2. 2013/03/13 18:48:24 - 2013-03-13