A GreaseMonkey Script to find a movie in the Internet Movie Database then check availability at UT Searching for Searching for Team: Matt Brodie Kate Bronstad Ray James
May 1, Presentation overview Where we started Where we went Problems encountered Learning the programs Perfecting the script Demonstration Conclusions/observations
May 1,
4 Inspirations Like an agent Berners-Lee, T., Hendler, J. and Lassila, O. "The Semantic Web". Scientific American, May 2001.The Semantic Web Are You Ready for Web 2.0? Ryan Singel: “A new, more collaborative Internet..” Angela Kille: Greasemonkey ppt ppt
May 1, Where we started Netflix to UT and back greasemonkey.mozdev.org greasemonkey.mozdev.org userscripts.org userscripts.org j-san.net/files/imdblinksinnetflix.user.js The ubiquitous Movie Dude Building pieces into a whole Tarnation
May 1, Greasemonkey GM is a Firefox extension Uses Javascript Idea is customize or enhance the browser to meet user needs Our script includes UT, VV and almost APL and has options
May 1, The script that isn’t yet utimdb.user.js utimdb.user.js //==UserScript== University of Texas links in IMDB//// UT holdings information for DVDs of IMDB movies //==/UserScript== (function() { var libLeadingURLPart …
May 1, function makeLibLink(movieName) { if (movieName != null && movieName.length > 0) { doLookUp: function(movieName) { GM_xmlhttpRequest ({ method:'GET', url: libLeadingURLPart + movieName + libTrailingURLPart, onload: function(results) { page = results.responseText; if (notFound.test(page)) { var container = document.createElement("span");
May 1, Where we went Getting a script to load Angela the guardian angel Amazon to UT Using Secure Shell Editing: matching )’s Refining: dumping Netflix
May 1, What we found helpful Dive into Greasemonkey JavaScript books & Web pages Hours of manipulation, tweaking Advice of others Similar working scripts Side by side comparison Counting pieces
May 1, Useful sites
May 1,
May 1, Demonstration Open Foxfire browser Make sure Greasemonkey is up URL: swproj.html Install user script Find a movie Check availability at UT or …
May 1, Conclusion/observations If we can do it, anyone can Team up with someone who knows javascript Start with something similar Work it, rework it, rework it again Edit it, re-edit it, re-edit it again Enjoy the glory of others using it
May 1, Annotated Resources The shell link is from here: Shell used this to detect javascript errors within broswer A movie finding user script: Script that we based ours on. Greasemonkey: Dive into greasemonkey, a most helpful source, the bible of greasemonkey
May 1, More resources 1) 2) From Angela's script learned how to use gm_xmlhttp requests with UT, from other script learned how to place links in IMDB, but it didn't work. Non-working script for the original UT links in Netflix idea. Userscripts.org - Universal Repository full of GM scripts
May 1, Yet more resources Pascarello, Eric. JavaScript: Your visual blueprint for building dynamic web pages. 2004, 2nd ed, Wiley Publishing, Inc. Indianapolis, IN Pollock, John. JavaScript: a beginner's guide McGraw-Hill Co. Berkeley, CA Musciano, Chuch & Kennedy, Bill HTML & XHTML—The Definitive Guide, 5th ed., O’Reilly, Cambridge, MA, a brief general summary on Javascript FavIcon from Pics – favicon icons for your website used this to make favicons
May 1, Last of the resources W3, used this as a general javascript resource. The data: URI kitchen used this to make URI(s) for favicon(s). Aardvark, used this to see the code on some pages where it was hidden because of frames. A complete, online and downloadable resource.
May 1, The last session.
May 1, Questions or Comments?