Lately I have not written anything (it comes to writing code) and began to miss ... you think it's normal considering that I am a software engineer. So much speculation what to do, first I decided to expand ScreenShootMe brush and the ability to write, however, to some extent shifted the focus from the main idea of the application and is labor intensive, and I want FF to begin and maintain colorpicker slider functionality HTML5, to save myself unnecessary pain. Later I found out that a colleague is 40 Level in FarmVille ... not that it is the only colleague who play FarmVille, but definitely higher Level. tables Because I have fermichka I remembered tables that fact in timeline-a permanently out of FB messages bonuses in FarmVille and some of them are worth it, but it's annoying to check your non-stop for FB FV bonus and to click on them like crazy . This naturally left thinking way for automation of the process ... the bot.
After a short netolkova Research, came to the conclusion that the FB API-it may be convenient and easy to use, but it certainly would take some time to get used to it and to write something, and writing PHP or another scripting language means additional constraints for the average verified user, who has not seen a programming language in your life or not installed the required software to drive the bot. Here already very narrow tables choice to ... um ... Javascript and browser.
v.0.1: I set out to write an html file to open FB in one frame and parses links for FarmVille ... has not happened, I do not know whether tables because Froude detekshan or something else, but browsers no longer allow to tinker / read html code pages other than the current domain. tables
v.0.3: While looking for info about FB API-it came across a sandbox, where you can test the various functionalities - http://developers.facebook.com/tools.php and one of the things that caught my eye is that Implementation of the request is used AJAX, a not just postbek. This of course means that I can write js code to put in addressbar-and or bookmarklet and updated information for some time to parse and open some of the links in new iframe-s, tables which is the end completely!
3. Copy / Paste code below into addressbar-a (for all who see the browser first - then press Enter) javascript: visited = {}; function process () {var code = document.getElementById ('trace'). innerHTML; var m = null; while (m = / \ <href\> (http: \ / \ / apps \. facebook \. com \ / onthefarm \ /. +?) \ <\ / href \> ;/ gi.exec (code)) tables {if (! visited [m [1]]) {var ifr = document.createElement ('iframe'); ifr.src = (m [1]. replace (/ & / g, '&')). replace (/ & / g, '&'); container.appendChild (ifr); visited [m [1]] = true;}} setTimeout ('container.innerHTML = \' \ '' 60 * 1000);} function refresh () {callMethod (); setTimeout (process, 5 * 1000);} container = document.createElement tables ('div'); document.getElementsByTagName ('body') [0] . appendChild (container); setInterval (refresh, tables 120 * 1000); void (0);
Briefly what makes the code - every 2 minutes updated timeline-and check whether there are new url-and which are for FarmVille. If there are any open them in iframe-s tables (if you click on "Get bonus" links in FB). You can activate it practically anywhere (unless you are using Mosaic) and to collect kolektabals or oil or whatever else was there.
In conclusion I will say that while re-reading your post I realized that obviously love to write stupid, meaningless and useless apps ... or rather, tables if I have to choose between making something meaningful and something stupid thereto at May we will focus on the second but ... this is in the spirit of my blog yet
View 10.03.2010
Lucho
Canvas chillout Chrome dev django documentation firefox Football house html5 Javascript Mozilla Mozilla Labs OpenFest Python tables Ruby on Rails ScreenShootMe screenshot software development software engineering StackOverflow TED W3C web WebSockets tables webtool WHATWG World Cup Bulgaria Bureaucracy evolutionism Conference Creationism University Television FMI globule life COMMERCE M-Tel mobile operators music background job learning Fun Facts
Created by Tommaso Baldovino
No comments:
Post a Comment