jump to navigation

DeviantART - Print Upload v0.1 November 11, 2005

Posted by Lucanos in : programming, javascript, greasemonkey, deviantART, Print Upload , add a comment

Which piece of art do you want to commercialise today?“™

This GreaseMonkey userscript adds a link to your deviations (only visible to you - the deviation owner) allowing for the quick and easy, well, easier, uploading of deviations into the deviantART Store.

Version History:

How It Does What It Does:

  1. Looks for the “Send To Scraps” Button (which indicates that the shown Deviation is both yours and not (yet) a Scrap, as such it is eligible to offer via the store.
  2. Checks whether the “Buy Prints” button is shown. If not then it can be assumed that you haven’t yet uploaded prints.
  3. Locates the relevant section of the source code.
  4. Inserts the required code to produce the button and associated “div”s.
  5. Profit!

Enjoy!

Photobucket - Customisable Thumbnail Size November 8, 2005

Posted by Lucanos in : programming, javascript, greasemonkey , 1 comment so far

This GreaseMonkey userscript allows the user to specify their own thumbnail size for Photobucket.com.
NOTE: This script operates by accessing the full-resolutions of the images being processed and then squeezing them into the requested size on screen. As such this script is rather bandwidth-demanding, and is not recommended for people with bandwidth limits/slow connections.

Version History:

Configuration:

  1. In Firefox go to “Tools“.
  2. Select “Manage User Scripts“.
  3. Select “Photobucket.com Thumbnail Resizer“.
  4. Click the “Edit” Button.
    Your computer will open the Userscript file using your default HTML editor.
  5. In the coding find the line:
    var RequestedLongestEdge = “320“; // in pixels
  6. Modify the number in this line (in this case 320) to reflect your desired length for the longest edge (this measure is in pixels).
  7. Save the file.
  8. Reload your Photobucket page.

How It Does What It Does:

  1. Access the Array of Images
  2. Loop through them looking for images with filenames starting “th_” (which appears to be what Photobucket does to designate thumbnails
  3. Remove the “th_” if present (makes the thumbnail the original file)
  4. Determine the orientation of the image
  5. Make the longest side (width if landscape, height if portrait) the specified length

Enjoy!