Any GreaseMonkey Junkies out there?
darryl
Registered Users Posts: 997 Major grins
GreaseMonkey allows for some great enhancements to SmugMug, like:
Adding thumbs to StatCounter:
http://dgrin.com/showthread.php?t=73366
Bigger Thumbs for Bulk Caption/Keyword Editing:
http://www.dgrin.com/showthread.php?p=1035489#post1035489
Wondering if anybody else has messed with it enough (looking at you Nimai and Dev :-) to help me fix a script where I'm trying to hide the Built-in Categories when you Create a new Gallery. I got it working in the Firebug console, but it fails as a Greasemonkey script.
Background: http://www.dgrin.com/showthread.php?p=1068081#post1068081
Non-functional script:
Error I'm getting from Firefox is: document.createForm was undefined. :-{
Adding thumbs to StatCounter:
http://dgrin.com/showthread.php?t=73366
Bigger Thumbs for Bulk Caption/Keyword Editing:
http://www.dgrin.com/showthread.php?p=1035489#post1035489
Wondering if anybody else has messed with it enough (looking at you Nimai and Dev :-) to help me fix a script where I'm trying to hide the Built-in Categories when you Create a new Gallery. I got it working in the Firebug console, but it fails as a Greasemonkey script.
Background: http://www.dgrin.com/showthread.php?p=1068081#post1068081
Non-functional script:
// ==UserScript== // @name Hide SmugMug Categories // @namespace http://www.darryl.com/ // @description Hide certain SmugMug built-in Categories that you aren't using // @include http://*.smugmug.com/gallery/create.mg* // ==/UserScript== var tohide = new Array('Airplanes', 'Animals', 'Aquariums', 'Architecture', 'Art', 'Arts and Crafts', 'Births', 'Boats', 'Business', 'Cars', 'Children', 'Competitions', 'Computers', 'Dance', 'Electronics', 'Events', 'Family', 'Fashion', 'Flowers', 'Food', 'Friends', 'Funerals', 'Genealogy', 'Grandchildren', 'Groups', 'History', 'Hobbies', 'Holidays', 'Humor', 'Jewelry', 'Journalism', 'Landscapes', 'Machines', 'Military', 'Motorcycles', 'Movies', 'Music', 'Nature', 'Other', 'Parties', 'People', 'Pets', 'Photography', 'Politics', 'Portfolio', 'Portraits', 'Professional', 'Religion', 'School', 'Spirituality', 'Sports', 'Still Life', 'Street Scenes', 'Theater', 'Trains', 'Travel', 'Trucks', 'Underwater', 'Vacation', 'Video Games', 'Weather', 'Weddings', 'Woodworking', 'Zoos') ; var form = document.createForm ; for (i=0;i<=100;i++) { found = Array.indexOf (tohide, form.CategoryID.options[i].text) ; if (found != -1) { form.CategoryID.options[i].style.display = 'none' ; } }
Error I'm getting from Firefox is: document.createForm was undefined. :-{
0
Comments