ニコニコ大百科の掲示板お絵カキコ/ピコカキコ再生をAutoPagerize対応に
案外簡単にできた。とりあえず今作ってるスクリプトから該当部分だけ抜き出した。
// ==UserScript== // @name Nicopedia BBS Extender // @namespace http://d.hatena.ne.jp/gifnksm/ // @description Add Extensions such as NGID, NG word, popup >>xxx links or IDs etc... // @include http://dic.nicovideo.jp/b/* // ==/UserScript== if (typeof window.AutoPagerize != 'undefined') { var HororeChuchuParero = unsafeWindow.HororeChuchuParero; window.AutoPagerize.addFilter(function(elems) { elems.forEach(function(elem) { Array.forEach(elem.getElementsByTagName('script'), function(script) { try { eval(script.textContent); } catch(e) {} }); }); }); }