2011年8月25日 星期四

@魔法少女小圓全圖

原始碼:
<script type="text/javascript">
function init() {
    var mahou = document.getElementById('mahou');
    var t = new Array(8, 15, 20, 20, 12);
    for(var i=0;i<5;i++) {
        for(var j=1;j<=t[i];j++)
            mahou.innerHTML += "<img src='http://img.atgames.jp/campaign_event/2011/madoka-magica/0816_event/battle/g" + (i+1) + "_" + j + ".jpg' />";
        mahou.innerHTML += "<hr />";
    }
}
window.onload = init;
</script>
<div id="mahou"></div>
全圖:
http://pastehtml.com/view/b4zzix67g.html

後記:
很簡單的雙迴圈讓圖全部顯示-.-

2011年8月12日 星期五

@BeastBoxy


腳本名稱:@BeastBoxy
腳本安裝:http://userscripts.org/scripts/show/109958 (進去後按右上角Install)
腳本支援:Google Chrome(直接裝)、Firefox(需先安裝GreaseMonkey)
腳本功能:
  1. 讓您一個願望一次滿足的(廢話w)...自動按きたよー
腳本更新:
  1. v0.1 自動按きたよー
後記:
GreaseMonkey腳本工具是裝在Firefox瀏覽器上面的,
而腳本當然就是裝在腳本工具上使用的,
如果您本身就有在用Firefox瀏覽器的GreaseMonkey腳本工具,
那麼userscripts.org成千上萬的外掛腳本您應該不陌生=.=

其實聽說IE瀏覽器有套Trixie可以使用腳本,
不過我沒用過所以不知道能不能用...(遠目

原始碼:
// ==UserScript==
// @name          BeastBoxy
// @description      Auto click button
// @auther        http://toolboxy.blogspot.com/
// @include       http://sns.atgames.jp/*
// @version       0.1
// ==/UserScript==
var evt=document.createEvent("MouseEvents");
evt.initEvent("click",true,true);

/*きたよー*/
if(document.getElementById('greetingNegative').style.display=='none'){
    document.getElementById('greetingAct2').dispatchEvent(evt);
}

2011年8月6日 星期六

霜月語法轉換工具

請貼入JavaScript內容(不支援IE6):