[Greasemonkey] Silkroad Online Forums Script - Resize images

Anything related to Silkroad Online Forums. Report problems and bugs, or ask questions. Discuss latest features and additions.
Post Reply
User avatar
Nixie
Frequent Member
Posts: 1108
Joined: Fri Aug 03, 2007 7:58 am
Quick Reply: Yes
Location: Off Topic
Contact:

[Greasemonkey] Silkroad Online Forums Script - Resize images

Post 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
Last edited by Nixie on Wed Dec 31, 2008 2:52 am, edited 4 times in total.
<< banned for proof of botting. -cin >>

/Pi
Senior Member
Posts: 4590
Joined: Fri May 18, 2007 3:49 am
Quick Reply: Yes
Location: Off Topic

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

Post by /Pi »

FINALLY!

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

Thanks a lot. :love:

User avatar
Nixie
Frequent Member
Posts: 1108
Joined: Fri Aug 03, 2007 7:58 am
Quick Reply: Yes
Location: Off Topic
Contact:

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

Post 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.
<< banned for proof of botting. -cin >>

Post Reply

Return to “Site Discussion”