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:
- Use one of the following browsers: Firefox, Flock, any other that supports extensions
- Install the Greasemonkey Extension
- Restart Firefox
- Click here to install the script
If the file is not available follow these steps:- Open a plain text editor (Notepad, Notepad++...)
- Copy the code bellow to the editor
- Save the file as srf.user.js (the extension must be *.user.js)
- Drag the file to your browser (here, where you can see the websites)
- Install the script
- 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