Page 1 of 15 123411 ... LastLast

Thread: Platform Racing 3 Antilag!

  1. #1

    Default Platform Racing 3 Antilag!

    Platform Racing 3 Antilag!

    Here's a little trick I made to get rid of the lag from the Sparkworkz page! No more playing fullscreen with the game size waaaay too big...

    The Code
    Directions:
    1. Create a new favorite (Internet Explorer) or bookmark (most other browsers) with this text as the address:
      Code:
      javascript:pr3 = {ver: "4.2",debugPoint: 0,url: 'http://jiggmin.com/forum/showthread.php?t=47962',err: '',done: false};function _$_(id) {return document.getElementById(id);}function mark() {++pr3.debugPoint;}function tear() {pr3.debugPoint += 0.01;}function checkIfNull(obj) {if (pr3.done) {alert('Broseph, you already de-lagified everything.');throw "pr3"} else if (obj == null) {if (window.location.href.search(/^http:\/\/(www\.)?sparkworkz\.com\//) != -1 && window.location.href != 'about:blank') alert("It looks like everything didn't load before you clicked the script.\n\nWait a bit and try again.");else alert("You aren't even on Sparkworkz!");throw "pr3"}}function markObj(obj) {mark();checkIfNull(obj);return obj;}function removeObj(obj) {markObj(obj).parentNode.removeChild(obj);}(function (debug) {try {var crap = [_$_('banner1'), _$_('ad'), _$_('mainAd'), _$_('randomGameDragon')];var iTunesLink;if ((iTunesLink = markObj(_$_('wrap')).getElementsByTagName('a')[0])) crap.push(iTunesLink);for (var i in crap) {if (debug)alert('removing crap[' + i + ']');removeObj(crap[i]);}loadFlash();document.title += ' with antilag v ' + pr3.ver;} catch (e) {if (e != "pr3") {pr3.err = e.name + ': ' + e.message + ' $' + pr3.ver + '@' + pr3.debugPoint + '<' + window.navigator.userAgent + '>';alert('Uh oh... there was an error!\n\n' + pr3.err);if (confirm("Would you like to report this error?\nNote: This will open a new window in your browser.")) {if (prompt("Please copy the error message below. You will need to post the error in the PR3 Antilag thread.\n\nWould you like to close this game too?", pr3.err)) window.location.href = pr3.url;else {window.open(pr3.url, "pr3")}}}}})(false);
    2. Name it "PR3 antilag".
    3. Go to the Sparkworkz PR3 page and click the bookmark to activate the antilag. Have fun!


    Note: If you have the old antilag, then delete the old one before making the new one.

    Making a bookmark/favorite
    I see some people are having trouble making a new bookmark/favorite, so here are some instructions. After you open the new bookmark/favorite window using the instructions below, read "The Code" above.

    Firefox:
    1. At the top of the Firefox window, click "Bookmarks".
    2. Right-click anywhere in the menu.
    3. In the popup menu, click "New Bookmark...".


    Opera:
    1. While in Opera, hit Ctrl+Shift+B or go to Opera Menu > Bookmarks > Manage Bookmarks...
    2. Right-click on any bookmark.
    3. In the popup menu, click "New Bookmark".


    Google Chrome:
    1. While in Google Chrome, hit Shift+Ctrl+B or click the wrench icon on the top-right of the window and click Bookmark Manager.
    2. Right-click inside the Bookmark Manager and click "Add Page...". Note that you can also right click on the Bookmarks toolbar to get this menu up.


    Internet Explorer:
    Quote Originally Posted by megajosh2 View Post
    I just figured out a bit of a roundabout way to do it on Internet Explorer. Tell me if this works for you:

    1. Hit Ctrl+D on any webpage (even this one).
    2. For the name, put "PR3 Antilag".
    3. Go to Favorites, right click on the "PR3 Antilag" bookmark, and click Properties.
    4. Set the URL to the code for antilag (on the first post in this thread) and hit OK to save it.
    Changelog
    Version 4.2.1
    1. Added some extra checks to handle when everything isn't loaded on the Sparkworkz page.
    2. The last update broke the "You aren't even on Sparkworkz!" error message and that's been fixed.


    Version 4.2
    1. Removed that link to the iTunes store for PR3 that's screwing the layout up. It's on the server menu of PR3 anyway.
    2. Took out some code that isn't useful anymore.
    3. The title reflects what version of PR3 Antilag you're using.


    Version 4.1.1
    1. I forgot a piece of error checking when removing the Mochi Awards button. Whoopsie!


    Version 4.1
    1. I refactored the code a bit. You should experience less unnecessary error messages (like, for example, an error that wasn't prevented that concerns all the elements not being loaded yet).
    2. I nominated the Mochi Awards button for "far too annoying and distracting to stay at the bottom of the page". Nominate that, you son of a...


    Version 4
    1. Fixed a bug in checking if you're on Sparkworkz.
    2. Updated script to work with the new Sparkworkz layout.
    3. No more waiting for the "Skip Ad" link to show up!
    4. The title of the webpage now reflects that antilag is on.
    5. Minor update: The random game dragon has been slain.
    6. Minor update: I keep forgetting to update what the code says the version of the script is. DURR


    Version 3.2
    1. New error-handling code. Some error messages now have more clarification. New code to send error messages when something terrifying happens.


    Version 3
    1. Using a different method to remove <div>s.
    2. A bit of debugging code has been added. If something catastrophic happens, then it'll give you an error message and allow you to post it to this thread.


    Version 2
    1. The code is cleaner.
    2. The code now removes the header with the logo in it to clean up the page a bit.


    Version 1
    1. Original version.
    Last edited by megajosh2; 28th October 2011 at 08:31 PM.


  2. #2
    Cant play pr3 on iPod :'(

  3. The Following User Says Thank You to Vliro For This Useful Post:


  4. #3
    I want someone to test first.
    It can have viruses or a spyware.

  5. The Following 14 Users Say Thank You to Tri Oxide For This Useful Post:


  6. #4
    ^
    Pr2- Peanutman, Rank 46 Pr3- Peanutmanrox, Rank 32

  7. The Following 2 Users Say Thank You to Peanutman For This Useful Post:


  8. #5
    Dude, it's a bit of javascript to kill ads. I can make a video if you don't believe me.

  9. The Following 11 Users Say Thank You to megajosh2 For This Useful Post:


  10. #6
    Quote Originally Posted by bisser777 View Post
    I want someone to test first.
    It can have viruses or a spyware.
    I have coded b4, and that's not a virus, they need more coding

  11. #7
    java can **** *** ****, it's one of the biggest things on your comp that make you lag.

  12. The Following 5 Users Say Thank You to AreUTalking2Meh For This Useful Post:


  13. #8
    A virus would have to duplicate itself on your computer so many times that it ****s your computer up. Spyware would have to contact a server with information regarding what you're doing on your computer. Both of those would most likely not be implemented in Javascript from a browser. You'd need to at least run a file on your desktop somehow, and Javascript from a browser window isn't going to do that.

    Quote Originally Posted by AreUtalkin2Me? View Post
    java can **** *** ****, it's one of the biggest things on your comp that make you lag.
    JAVA IS NOT JAVASCRIPT.

  14. The Following 12 Users Say Thank You to megajosh2 For This Useful Post:


  15. #9
    Quote Originally Posted by megajosh2 View Post
    Dude, it's a bit of javascript to kill ads. I can make a video if you don't believe me.
    Please do

  16. The Following 4 Users Say Thank You to Person159 For This Useful Post:


  17. #10
    Quote Originally Posted by jmodrak View Post
    Please do
    Okay. I'll make a video right now and upload it to YouTube, since you silly billies are so paranoid.

    Edit: I've just finished the video. Now I'll upload it to YouTube.

    Edit: It's processing... here comes the link...
    Last edited by megajosh2; 16th July 2010 at 04:09 PM.

  18. #11
    My computer already has spyware and a few trojans...
    Anyone want any?!

  19. #12
    Here's the video of the Platform Racing 3 Antilag©®™ in action!

    http://www.youtube.com/watch?v=wukgI1554X0

  20. #13
    Or you can just use the fullscreen link.


  21. #14
    It get's rid of the adds? Fullscreen works fine. =D
    "This is not a valid image file."


  22. #15
    Or you can favorite the fullscreen mode.
    jajajajajajajajajajajaja

  23. #16
    Using full screen displays much more of the game at once, which means you'll probably lag less using the antilag on the Sparkworkz page because only the necessary amount of the game is being displayed.
    Platform Racing 3 Antilag v4.2.1!
    Last updated Fri, Oct 28rd 2011. If you haven't updated since then, you better make sure you do now!

    I have a rank 1 with a speed hat (meganoob2)!

  24. The Following 8 Users Say Thank You to megajosh2 For This Useful Post:


  25. #17
    Quote Originally Posted by megajosh2 View Post
    which means you'll probably lag less
    I've tried both methods and didn't see a noticable difference. Except in fullscreen you can resize the game which reduces lag anyway. In your method, you can't actually do that. Your method works regardless of update, which is it's strength.

  26. #18
    you cant lag less, the lag is in your computer, not the game
    I cant really draw my signature, because when i change the page it doesnt seem to follow.
    square wutermelon EPIC WIN GO SEAHAWKS
    http://img704.imageshack.us/img704/94/hectorc.jpg

  27. #19
    Actually yes, you can lag less if you reduce the resolution of a game, the same thing happens when you reduce the size of the browser window. Lag is caused by either the computer's performance or high connection latency. If it's the prior, resizing the window will help.

  28. #20
    Batteries not included usb hub's Avatar
    Posts
    9,355
    Blog Entries
    692
    Thanks
    10275
    Quote Originally Posted by Vliro View Post
    Cant play pr3 on iPod :'(
    can so. jessica rocks plays it on her ipod

Page 1 of 15 123411 ... LastLast