auto slides

    @@ -1,13 +1,20 @@ /* - * @title Autopagerize: Delete old pages - * @description Autopagerizeで挿入されたページを最後のもの以外全部消す + * @title auto slides + * @description slide paging with Autopagerize/AutoPatchwork + * @include http://* + * @contributor vzvu3k6k http://let.hatelabo.jp/vzvu3k6k/let/hLHX5ZrPpLVS + * @author noromanba * @license Public Domain */ -var seps = document.querySelectorAll(".autopagerize_page_separator"), - end = seps[seps.length-1], - start = end.parentNode.firstElementChild, +(function anonwrap() { + +var seps = document.querySelectorAll('[class^="autopagerize_page_separator"]'), + end = seps[seps.length - 1].hasChildNodes() ? seps[seps.length - 1] : seps[seps.length - 2], + start = end.parentNode.firstElementChild; range = document.createRange(); range.setStart(start, 0); range.setEnd(end, 0); -range.deleteContents(); +range.deleteContents(); + +})();
  • /*
     * @title auto slides
     * @description slide paging with Autopagerize/AutoPatchwork
     * @include http://*
     * @contributor vzvu3k6k    http://let.hatelabo.jp/vzvu3k6k/let/hLHX5ZrPpLVS
     * @author      noromanba
     * @license Public Domain
     */
    
    (function anonwrap() {
    
    var seps  = document.querySelectorAll('[class^="autopagerize_page_separator"]'),
        end   = seps[seps.length - 1].hasChildNodes() ? seps[seps.length - 1] : seps[seps.length - 2],
        start = end.parentNode.firstElementChild;
        range = document.createRange();
    range.setStart(start, 0);
    range.setEnd(end, 0);
    range.deleteContents();
    
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/06/10 20:06:07 - 2013-06-10
  2. 2013/06/10 20:03:30 - 2013-06-10
  3. 2013/06/10 17:50:10 - 2013-06-10
  4. 2013/06/10 17:40:05 - 2013-06-10