Silkroad Online Forums

A community forum for the free online game Silkroad Online. Discuss Silkroad Online, read up on guides, and build your character and skills.

Faq Search Members Chat  Register Profile Login

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Greasemonkey] Silkroad Online Forums Script - Resize images
PostPosted: Mon Dec 29, 2008 9:05 pm 
Banned User
User avatar
Offline

Joined: Aug 2007
Posts: 1108
Location:
Off Topic
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

_________________
<< banned for proof of botting. -cin >>


Last edited by Nixie on Wed Dec 31, 2008 2:52 am, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: [Greasemonkey] Silkroad Online Forums Script - Resize images
PostPosted: Wed Dec 31, 2008 1:58 am 
Senior Member
Offline

Joined: May 2007
Posts: 4590
Location:
Off Topic
FINALLY!

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

Thanks a lot. :love:


Top
 Profile  
 
 Post subject: Re: [Greasemonkey] Silkroad Online Forums Script - Resize images
PostPosted: Wed Dec 31, 2008 2:22 am 
Banned User
User avatar
Offline

Joined: Aug 2007
Posts: 1108
Location:
Off Topic
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 >>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group