a greasemonkey script to find a movie in the internet movie database then check availability at ut...

Post on 20-Jan-2018

217 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

May 1,

TRANSCRIPT

A GreaseMonkeyScript to find a movie in the InternetMovie Databasethen checkavailability at UT

Searching forSearching for

Team: Matt Brodie

Kate Bronstad

Ray James

May 1, 2006 2

Presentation overview Where we started Where we went Problems encountered

Learning the programs Perfecting the script

Demonstration Conclusions/observations

May 1, 2006 3

May 1, 2006 4

Inspirations Like an agent

Berners-Lee, T., Hendler, J. and Lassila, O. "The Semantic Web". Scientific American, May 2001.

Are You Ready for Web 2.0? Ryan Singel:“A new, more collaborative Internet..”

Angela Kille: Greasemonkey ppt

May 1, 2006 5

Where we started Netflix to UT and back greasemonkey.mozdev.org userscripts.org j-san.net/files/imdblinksinnetflix.user.js The ubiquitous Movie Dude Building pieces into a whole Tarnation

May 1, 2006 6

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, 2006 7

The script that isn’t yet utimdb.user.js

//==UserScript==//@name University of Texas links in IMDB//////@description Adds UT holdings information for DVDs of IMDB movies//@include http://*.imdb.com/*//@include http://imdb.com/*//==/UserScript==

(function(){var libLeadingURLPart …

May 1, 2006 8

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, 2006 9

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, 2006 10

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, 2006 11

Useful sites

May 1, 2006 12

May 1, 2006 13

Demonstration

Open Foxfire browser Make sure Greasemonkey is up URL:http://

www.ischool.utexas.edu/~mbrodie/swproj.html

Install user script Find a movie Check availability at UT or …

May 1, 2006 14

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, 2006 15

Annotated ResourcesThe shell link is from here:http://www.squarefree.com/bookmarklets/webdevel.htmlShell used this to detect javascript errors within broswer

A movie finding user script:http://adamv.com/dev/grease/moviedude/moviedude15.user.jsScript that we based ours on.

Greasemonkey:http://diveintogreasemonkey.org/toc/Dive into greasemonkey, a most helpful source, the bible of greasemonkey

May 1, 2006 16

More resources1) http://www.ischool.utexas.edu/~akille2) http://userscripts.org/scripts/show/573From 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.

http://www.j-san.net/files/imdblinksinnetflix.user.jsNon-working script for the original UT links in Netflix idea.

Userscripts.org - Universal Repositoryhttp://userscripts.org/full of GM scripts

May 1, 2006 17

Yet more resourcesPascarello, 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. 2001. 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 websitehttp://www.htmlkit.com/ used this to make favicons

May 1, 2006 18

Last of the resourcesW3, used this as a general javascript resource. http://www.w3schools.com/default.asp

The data: URI kitchen http://software.hixie.ch/utilities/cgi/data/dataused this to make URI(s) for favicon(s).

http://karmatics.com/aardvark/Aardvark, used this to see the code on some pages where it was hidden because of frames.

http://www.webreference.com/javascript/reference/core/

A complete, online and downloadable resource.

May 1, 2006 19

The last session.

May 1, 2006 20

QuestionsQuestionsoror

Comments?Comments?

top related