要等 50 個 comment 可能仲有排, 而家放住個自動存錢機俾大家, 釣下大家癮先。
如果未 setup Firefox 同 greasemonkey, 就先去依度睇睇:
攪掂左之後, 就去 right click 個 greasemonkey, 然後 click new user script
如果你係第一次用, 佢會問你 default editor 用邊款, 一般黎講如果係 Windows, 用筆記本(Notepad) 就得, 位置通常喺 C:\Windows。 攪掂之後就會叫你入野:
Name 填 auto bank-in, Includes 填 http://apps.facebook.com/street-wars/bank.php, 其他亂嚟就得。 Click OK 之後佢就會開個筆記本(Notepad)出黎, 之後將以下編程抄落去就得:
// ==UserScript== // @name auto bank-in // @namespace hk.orz // @include http://apps.facebook.com/street-wars/* // @description by neo@orz.hk, please visit http://orz.hk // ==/UserScript== var last_load = new Date(); // setup a count down box var htmlElement = document.createElement('div'); htmlElement.id = 'timer'; htmlElement.style.color = 'white'; htmlElement.style.position = 'fixed'; htmlElement.style.width = '50px'; htmlElement.style.height = '20px'; htmlElement.style.textAlign = 'center'; htmlElement.style.paddingTop = '4px'; htmlElement.style.paddingTop = '2px'; htmlElement.innerHTML = 'start'; window.parent.document.body.appendChild(htmlElement); window.setTimeout(function() { tick() }, 1); function tick() { current = new Date(); minutes = (current - last_load) / 1000 / 60; // click the deposit button if there is money to save if (document.getElementsByName("amount").length > 1) if (document.getElementsByName("amount")[1].value != '0') document.getElementsByName("deposit")[0].click(); // display the minute htmlElement.innerHTML = minutes ; // we only refresh in first/last 5 minutes of an hour, as it is the revenue clearance period if (current.getMinutes() < 5 || current.getMinutes() > 55) { htmlElement.style.background = 'red'; // check every 3 minute if (minutes > 3) { location.href='http://apps.facebook.com/street-wars/bank.php'; } } else { htmlElement.style.background = 'green'; } // come back again every 10 seconds window.setTimeout(function() { tick()}, 10000); }
儲存完之後可以關閉個筆記本, 之後就去銀行:
http://apps.facebook.com/street-wars/bank.php
咁你就會見到facebook 左上角有個綠色或者紅色嘅 Box 喺度倒數。 見到即喺段script 正常運作, 只要依一頁唔 close, 段 script 就會每十秒 run 一次, 完成自動存錢。
因為通常收入大約搭正先結算, 所以大約嗰個時間先每隔 3分鐘 reload 頁面內容, 咁個 box就會顯示紅色; 平時就顯示綠色。如果發現個存款位置唔係 0 , 即係有錢可以存入銀行啦, 咁就會自動 click 個存錢button。
今次一定會等依個 post 夠 50個 comments 先再出自動做任務, 哈哈!
From Billy:
溫提:可以直接paste落notepad
改名做anyname.user.js
拖落firefox就用得







