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:
- v0.1 - 11 November 2005
Initial release.
How It Does What It Does:
- 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.
- Checks whether the “Buy Prints” button is shown. If not then it can be assumed that you haven’t yet uploaded prints.
- Locates the relevant section of the source code.
- Inserts the required code to produce the button and associated “div”s.
- Profit!
Enjoy!
Photobucket - Customisable Thumbnail Size November 8, 2005
Posted by Lucanos in : programming, javascript, greasemonkey , 1 comment so farThis 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:
- v0.1 - 08 November 2005
Initial release.
Configuration:
- In Firefox go to “Tools“.
- Select “Manage User Scripts“.
- Select “Photobucket.com Thumbnail Resizer“.
- Click the “Edit” Button.
Your computer will open the Userscript file using your default HTML editor. - In the coding find the line:
“var RequestedLongestEdge = “320“; // in pixels“ - Modify the number in this line (in this case 320) to reflect your desired length for the longest edge (this measure is in pixels).
- Save the file.
- Reload your Photobucket page.
How It Does What It Does:
- Access the Array of Images
- Loop through them looking for images with filenames starting “th_” (which appears to be what Photobucket does to designate thumbnails
- Remove the “th_” if present (makes the thumbnail the original file)
- Determine the orientation of the image
- Make the longest side (width if landscape, height if portrait) the specified length
Enjoy!