Classic Neo

Discussion in 'Code Snippets and Tutorials' started by Heya_old, May 16, 2009.

  1. Heya_old

    Heya_old Level IV

    Joined:
    Mar 31, 2008
    Messages:
    928
    Likes Received:
    46
    I really need to finish it, but... I'm REALLY REALLY lazy, lmao. So... yeah, sooner or later, i'll fix the glitches and what not, here's v1.0 of Classic Neo. If you find any bugs, post them here, and i'll add them to the known bugs list below xD I'll try to fix as many as i can. If you wana update the version, simply delete the gm and stylish scripts, and add anything i added to the adblock list :)

    So heres how this works. Youmight say, why didn't you just make this a gm script. I could of, but.. gm doesn't run till the page is loaded, so you get a delayed effect. with a combination of adblock, stylish script, and gm script, you don't get that delay. Its like using neopets 5 years ago... You will not have those lags in loads of the side bar, and stuff like that... Only lag you might get is the old shops banner thing, but... I'll try to find a better way around that.

    For this, you'll need...
    [*]Firefox
    [*]Greasemonkey
    [*]Stylish
    [*]Ad Block

    Current Version: 1.0

    In Firefox, Download this GM Script:
    Make sure gm is turn on, that script is enabled, and its at the top of your list! Can't stress that enough, it will work best if its at the top of your list :)

    Then, create a new stylish script with this Stylish script:
    Code (Text):
    1. @namespace url(http://www.w3.org/1999/xhtml);
    2.  
    3. @-moz-document domain("neopets.com") {
    4.  
    5. #ban_bottom, .ad_wrapper, .ad_wrapper_fixed, .adBox2, .adBox, #template_nav, .sidebarModule, .copyright{
    6. position:absolute !important;
    7. left:0px !important;
    8. top:0px !important;
    9. }
    10.  
    11. #ban_bottom, .ad_wrapper, .ad_wrapper_fixed, .adBox2, .adBox , #template_nav, .sidebarModule, .copyright, .footerForm, .sf {
    12. display:none !important;
    13. }
    14.  
    15. body{
    16. background-color:#ffffff !important;
    17. }
    18.  
    19. .sidebar {
    20. position:absolute !important;
    21. left:225px !important;
    22. top:45px !important;
    23. height:48px !important;
    24. width:478px !important;
    25. }
    26.  
    27. #header {
    28. position:absolute !important;
    29. left:0px !important;
    30. top:0px !important;
    31. background-image:url(http://i42.tinypic.com/259c2fk.jpg) !important;
    32. height:44px !important;
    33. width:728px !important;
    34. border:0px solid #000000 !important;
    35. }
    36.  
    37. #ban {
    38. position:absolute !important;
    39. left:0px !important;
    40. top:44px !important;
    41. background-image:url(http://i40.tinypic.com/2zgvta9.jpg) !important;
    42. height:480px !important;
    43. width:130px !important;
    44. }
    45.  
    46. .user {
    47. position:absolute !important;
    48. left:460px !important;
    49. top:12px !important;
    50. }
    51.  
    52. #nst {
    53. position:absolute !important;
    54. left:-300px !important;
    55. top:487px !important;
    56. }
    57.  
    58. .content {
    59. position:absolute !important;
    60. left:135px !important;
    61. top:120px !important;
    62. width: 600px !important;
    63. }
    64.  
    65. #footer {
    66. position:absolute !important;
    67. left:0px !important;
    68. top:518px !important;
    69. background-image:url(http://images.neopets.com/t/1.gif) !important;
    70. height:15px !important;
    71. width:130px !important;
    72. }
    73.  
    74. .contentModuleHeader {
    75. background-color:#ffffff !important;
    76. color:#000000 !important;
    77. border:0px solid #000000 !important;
    78. }
    79.  
    80. .contentModuleTable {
    81. border:0px solid #000000 !important;
    82. }
    83.  
    84. .contentModule {
    85. border:0px solid #000000 !important;
    86. }
    87.  
    88. .contentModuleHeaderAlt {
    89. background-color:#DDDD77 !important;
    90. color:#000000 !important;
    91. border:0px solid #000000 !important;
    92. }
    93.  
    94. .topic {
    95. width:550px !important;
    96. }
    97.  
    98. }
    That script will do most of the work, make sure that stylish and the script are both enabled also.

    Now, the last for is for Ad Block. You should Ad Block these images:

    Code (Text):
    1. http://images.neopets.com/themes/*
    2. http://images.neopets.com/shopkeepers/myitems_newimage.gif
    3. http://images.neopets.com/shopkeepers/marketplace_newimage.gif
    Known Glitches
    [*]Missing Banner on objects.phtml page
    [*]Neoboards are really messed up, lmao
    [*]Games room is messed up, cause tnt had to make that full page advertisement *rolls eyes*

    If you find ones not listed here, just post, and i'll try to fix it for the next release :)

    The goal is to make this 100% perfect, no glitches, but that might take /some/ time and work, but by testing it, and using it now, you'll help me achive that :)

    +rep if you want, donations always make me wana work harder :D

    but i don't expect anything, just glad i can bring joy to some people :)
     
    bonds, Zer0, Fexxel and 1 other person like this.
  2. bonds

    bonds Newbie

    Joined:
    May 23, 2009
    Messages:
    12
    Likes Received:
    0
  3. Jubixion

    Jubixion Level II

    Joined:
    Jun 11, 2009
    Messages:
    205
    Likes Received:
    14
    Sorry to bump this up, but I just want to clarify that GM scripts starts to run once the source code has been received. It does not wait for images or etc. to load in a page before it runs. GreaseMonkey is still one of the best ways to cheat in neopets.
     
  4. Heya_old

    Heya_old Level IV

    Joined:
    Mar 31, 2008
    Messages:
    928
    Likes Received:
    46
    it does, as you can see if you ever run a danm gm script. if it really does wait until the source is reveled, then thats after the images, cuase you can tell a difference with adblock on everything, and no adblock... huge difference.
     
  5. Jubixion

    Jubixion Level II

    Joined:
    Jun 11, 2009
    Messages:
    205
    Likes Received:
    14
    Well I guess my com doesn't really show a huge difference then. But then again, I've read the greasemonkey page and some professional or someone did mention about it running as soon as the source is loaded. Maybe he's com was fast or something lol. Anyway good effort in doing this up :) great idea!
     
  6. jazzeh

    jazzeh Level I

    Joined:
    Jan 1, 2008
    Messages:
    144
    Likes Received:
    15
    jubixion is correct.

    heya is correct as well.

    GM runs after the page has been recieved, before images. (Setup an alert script and the page will hold off showing (uncached) images until you click to continue) Adblock works as a filter to the page source. Filtering as the page is being recieved. Using adblock to do as much work as it can allows GM to start doing it's part much faster.
     
    Zer0 likes this.