M01 Auto Load Img

在參考過userscript.org中的Mobile01 image shower by wenjieMobile01 image shower by kclonline
又去翻了一下M01的原始碼,決定直接透過unsafeWindow直接呼叫原網頁函數,一行KO!!

Update : 2010/10/19
整合Auto Page後,自動載入圖片
// ==UserScript==
// @name           M01 Auto Load Img
// @description    Auto Load M01 Img
// @include        http://www.mobile01.com/topicdetail.php?f=*
// @include        https://www.mobile01.com/topicdetail.php?f=*
// ==/UserScript==
unsafeWindow.LoadAttachImage();
window.addEventListener("AutoPagerize_DOMNodeInserted", function(){unsafeWindow.LoadAttachImage();}, false);

unsafeWindow - GreaseSpot
[Greasemonkey] 使用UnsafeWindow呼叫原頁面函數或變動的方法

相關文章:
M01 Auto Page Fix Img