Page 1 of 1

[Greasemonkey] Silkroad Online Forums Script - Resize images

Posted: Mon Dec 29, 2008 9:05 pm
by Nixie
About:
Long time ago StealMySoda released his script which can be found here. I know, his has some more features, but in my opinion they're not needed. I may add features by request.

Now to my script itself. It will resize any image that will be posted in a normal post, quote or an attachment (new feature).

Steps To Install:
  1. Use one of the following browsers: Firefox, Flock, any other that supports extensions
  2. Install the Greasemonkey Extension
  3. Restart Firefox
  4. Click here to install the script
    If the file is not available follow these steps:
    1. Open a plain text editor (Notepad, Notepad++...)
    2. Copy the code bellow to the editor
    3. Save the file as srf.user.js (the extension must be *.user.js)
    4. Drag the file to your browser (here, where you can see the websites)
    5. Install the script
  5. You're done

Credits:
  • StealMySoda - for the base script
  • Nixie (TheSpy <safilix@gmail.com>) - for the edit
  • Moderator - didn't delete or lock my testing thread in Off-Topic
  • Members - didn't spam in my testing thread in Off-Topic

The code is in the spoiler tag.
Spoiler!


Change log:
  • v0.1 - Release
  • v0.2 - Little fix (script would start on any page on the forums, now it loads just when replying or viewing a thread/topic)
  • v0.3 - Update
    • Repeating loops were put into one single loop
    • Images will open in a new window (reason: resizing will just ruin the layout)

Older versions: (not recommended to use)

To do:
  • User can set the maximum width of images without to edit the source file itself

Known bugs:
  • Images are not resized after they're loaded for the first time

Re: [Greasemonkey] Silkroad Online Forums Script - Resize images

Posted: Wed Dec 31, 2008 1:58 am
by /Pi
FINALLY!

I'm loving it. Tested it here: viewtopic.php?f=58&t=104711

Thanks a lot. :love:

Re: [Greasemonkey] Silkroad Online Forums Script - Resize images

Posted: Wed Dec 31, 2008 2:22 am
by Nixie
As happy as you are, I just went through the code and guess what. I used that many loops, when entering 56k threads your browser may eventually freeze. You may expect a little update in a few minutes.

Edit: here you go. If you have already installed a previous version, just click install link above, it will overwrite your old copy.