Mafia Wars - Direct Links (Disabled)

By LordSnooze Last update Nov 22, 2009 — Installed 5,328 times.

Zynga is encoding links

in
Subscribe to Zynga is encoding links 4 posts, 3 voices



LordSnooze Script's Author
FirefoxWindows

Zynga is making links harder to bookmark and harder to use in scripts. Yes, they will cut down on the cheaters, but they are also hurting scripts like this which are only trying to provide shortcuts.

The old encoding (now removed?)....
This has to do with the "&tmp=" portion of the link. Zynga has made the value of tmp unique to sections of the game. Depending on what you click on, tmp will be set to a certain value.

For example...
If you click on Properties in the game, the url portion of tmp is already generated to a random number based on a formula and is set to something, say, 23455 (as in &tmp=23455). This code is unique to Properties. So if I try to set 23455 (the same number) in the link to be used for Inventory, the link will not work. Inventory has its own unique code which is generated randomly.

In Direct Links right now, tmp is not set. Everything but jobs works fine. I don't know how to crack the code and I prefer not to "hard code" a tmp that DOES work. "Hard coding" in the programming world are bad words and I tend not to do it.

----------------
Latest encoding...
Now, the majority of the arguments in the url is encoded.
http://apps.facebook.com/inthemafia/remote/html...

Now we can't modify any thing in the url to change the arguments that are submitted to the server. So I'm still using the old format but, I'm guessing that it's only a matter of time until Zynga doesn't allow any links to be submitted unless it has the encoded structure as noted above with "query_params=".

Sigh.

 
danbopes User
FirefoxWindows

As far as the query_string= url, it's simply a base64 encoded string. We can use javascript to generate the correct link. As far as the tmp=number goes, I am not sure, but I will be looking into it.

I included a basic fix for the Base64 links for almost all the links, as well as a fix for the Heal (NY) link, you can view it here:

http://omnicomicsandcards.com/mafiawars.js

Thanks for working on this helpful addon.

 
MaxOmus User
FirefoxWindows

Hmm, no go danbopes, cant get it working w/ your fix...

 
LordSnooze Script's Author
FirefoxWindows

I'm so glad Zynga reverted that base64 chaos! I heard they are attempting to bring it back. They have a few people testing the new version.

If they bring it back, this script will break again. (Along with quite a few others)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel