Castle Age Add Bookmarklet

Add someone to Castle Age.

Source (heartrate.se)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Afunction%2520get_id_from_game%2528%2529%257Btry%257Bvar%2520content%253Ddocument.getElementById%2528%2527app10979261223_content_row%2527%2529%253Bvar%2520as%253Dcontent.getElementsByTagName%2528%2527a%2527%2529%253Bfor%2528i%253D0%253Bi%253Cas.length%253Bi%252B%252B%2529%257Bif%2528as%255Bi%255D.innerHTML%253D%253D%2527Profile%2527%2529%257Bmatch%253D%252F%255B%253B%2526%255Duser%253D%2528%255Cd%252B%2529%252F.exec%2528as%255Bi%255D.href%2529%253Bif%2528match%2529return%2520match%255B1%255D%253B%257D%257D%257Dcatch%2528err%2529%257B%257Dtry%257Bvar%2520content%253Ddocument.getElementById%2528%2527app_content_16421175101%2527%2529.innerHTML%253Breturn%252F%255B%253F%253B%2526%255Dopponent_id%253D%2528%255Cd%252B%2529%252F.exec%2528content%2529%255B1%255D%253B%257Dcatch%2528err%2529%257B%257Dreturn%2520null%253B%257Dfunction%2520get_id_from_fb%2528%2529%257Bfunction%2520f%2528expr%2529%257Btry%257Breturn%252Fid%253D%2528%255B0-9%255D%252B%2529%252F.exec%2528eval%2528expr%2529%2529%255B1%255D%253B%257Dcatch%2528e%2529%257Breturn%2520null%253B%257D%257Dreturn%2520f%2528%2522document.getElementById%2528%2527profileimage%2527%2529.parentNode.innerHTML%2522%2529%257C%257Cf%2528%2522document.getElementById%2528%2527profile_name%2527%2529.parentNode.innerHTML%2522%2529%257C%257Cnull%253B%257Dfunction%2520get_id%2528%2529%257Breturn%2520get_id_from_fb%2528%2529%257C%257Cget_id_from_game%2528%2529%253B%257Did%253Dget_id%2528%2529%253Bif%2528id%2529%257Blocation.href%253D%2527http%253A%252F%252Fapps.facebook.com%252Fcastle_age%252Frecruit.php%253Faction%253Dcreate%2526ids%255B%255D%253D%2524ID%2527.replace%2528%2527%2524ID%2527%252Cid%2529%253B%257Delse%257Balert%2528%2527Could%2520not%2520find%2520an%2520id%2521%2520You%2520need%2520to%2520be%2520on%2520a%2520profile%2520page%2520for%2520this%2520to%2520work.%2527%2529%253B%257D


Rate it:


Tags:

Comments

Comments so far. Add yours.