Nov 18, 2012

Switch Issues & Workarounds

Share:

Many players have been reporting that their Switch bookmarklet is not working [1]. The culprit seems to be Timeline removal tools which are still very popular. As Facebook makes changes many of these tools cause things to not work. If you find you are unable to to switch a players profile from Facebook to Mafia Wars, using the Switch bookmarklet, try disabling your Timeline remover. The Switch bookmarklet can be found here. If you are unable to cut the umbilical cord and learn Timeline, try the Super Switch bookmarklets by Brandon Venery as they seem to be working fine. Super Switch will add a MW link and the modified ID Version will add a MW link and FB ID number next to any persons Facebook name. See below for instructions on how to install and use these tools.
superswitch
superswitch2
Below is a reprint of the Super Switch file written by Brandon Venery for the Script Mod Group.

"Super switch" shows both MW and FB links. Bookmark the full text below and click when on any fb page...

Script:  

javascript:(function(){ var names = document.getElementsByClassName('actorName'); for(var i = 0,len = names.length;i<len;i++){ var a = names[i].firstChild; var b = names[i].innerHTML; var m; if(a && !/\(MW\)/.test(b)){ if(m = /user.php\?id=([0-9]+)/.exec(b)){ names[i].innerHTML = b+'<a href=\'http://apps.facebook.com/inthemafia/track.php?next_controller=stats&next_action=view&next_params=%7B"user"%3A"'+m[1]+'"%7D\' target=\'new\'>(MW)</a>'; } } if(m = /user.php\?id=([0-9]+)/.exec(names[i].getAttribute('data-hovercard'))){ if(names[i].parentNode.childNodes[1].innerText == '(MW)'){continue;} var an = document.createElement('a'); an.href = 'http://apps.facebook.com/inthemafia/track.php?next_controller=stats&next_action=view&next_params=%7B"user"%3A"'+m[1]+'"%7D'; an.target = 'new'; an.class = 'testing'; an.innerText = '(MW)'; names[i].parentNode.insertBefore(an, names[i].parentNode.childNodes[1]); } } })();

Modified ID Version:

javascript: (function () { var names = document.getElementsByClassName('actorName'); for (var i = 0, len = names.length; i < len; i++) { var a = names[i].firstChild; var b = names[i].innerHTML; var m; if (a && !/\(MW\)/.test(b)) { if (m = /user.php\?id=([0-9]+)/.exec(b)) { names[i].innerHTML = b + '<a href=\'http://apps.facebook.com/inthemafia/track.php?next_controller=stats&next_action=view&next_params=%7B"user"%3A"' + m[1] + '"%7D\' target=\'new\'>(MW) '+m[1]+'</a>'; } } if (m = /user.php\?id=([0-9]+)/.exec(names[i].getAttribute('data-hovercard'))) { if (names[i].parentNode.childNodes[1].innerText == '(MW)') { continue; } var an = document.createElement('a'); an.href = 'http://apps.facebook.com/inthemafia/track.php?next_controller=stats&next_action=view&next_params=%7B"user"%3A"' + m[1] + '"%7D'; an.target = 'new'; an.class = 'testing'; an.innerText = '(MW) '+m[1]; names[i].parentNode.insertBefore(an, names[i].parentNode.childNodes[1]); } } })();

Chrome instructions:

Right click on the bookmark(favorites) bar and hit "Add Page"
In the "Name" section type "Super Switch" and in the "Url" section copy and paste the script above. From the "javascript:" all the way to the ";". Hit "Save".
Firefox instructions:

Right click on the Bookmarks toolbar and hit "New Bookmark"
In the "Name" section type "Super Switch" and in the "Location" section copy and paste the script above. From the "javascript:" all the way to the ";". Hit "Add". Skip to the usage instructions below.
Usage:

When you go to the Pound wall (or any war page with people making posts) just hit the Super Switch. By every persons name you will see this (MW). Hit that and goes directly to their MW profile. No need to go to their wall. Eliminates a step~!

10 comments:

  1. Thank you, Jennifer.

    ~ Frank

    ReplyDelete
  2. Thanks love switching


    ReplyDelete
  3. thanks love switching

    ReplyDelete
  4. I'm lost on this,ugh

    ReplyDelete
  5. FYI - it's not related to any Timeline Remover - Switch quit working for me this morning under FireFox and I don't and never have used one.

    ReplyDelete
  6. Still need a switch version that works from individual profile pages though, when checking people out who are asking for mafia adds, etc.

    ReplyDelete
  7. There's only one problem We can only see the mw & fbid with the modified or super switch on peoples who make the post not when they only comments, we definately need to get switch the old style to work again, of course it doesnt mean both super and modified switch its not appreciated. its cool too (y)

    AnonymousDecember 7, 2012 12:06 PM
    FYI - it's not related to any Timeline Remover - Switch quit working for me this morning under FireFox and I don't and never have used one.

    Its possible as switch from spockholm is working like charmed with me and i used remover since day one i was forced to get the timeline yes i know its quit working now

    ReplyDelete
  8. I fixed mine simply by upgrading my firefox. After a few days of beating myself up. :)

    ReplyDelete
  9. Super Switch seems to be conflicting with Mozilla browsers for some reason.. "see more" links are not click-able and the the search field in FB groups is not accessible.. Ive been looking for weeks for a solution until i reset my browsers and all problems were corrected. I began adding addons and scripts one by one until it no longer worked.. Removed the Super Switch and it worked. Added it back and the problems returned. This is a great script and if it can be modified to correct this issue it would be appreciated..Thanks

    ReplyDelete

Comments are moderated and will not be published until they are reviewed. Please don't use bad language or insult others. For faster feedback on questions, visit our fan page.