Skip to content

Instantly share code, notes, and snippets.

@netpro2k
Created November 2, 2010 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netpro2k/659195 to your computer and use it in GitHub Desktop.
Save netpro2k/659195 to your computer and use it in GitHub Desktop.
Add a GetGlue Widget to icefilms pages
// ==UserScript==
// @name GetGlue IceFilms Widget
// @author Dominick D'Aniello
// @namespace http://netpro2k.com/
// @description Add a GetGlue Widget to icefilms pages
// @include http://www.icefilms.info/ip.php?v=*
// ==/UserScript==
var st = document.createElement('script');
st.setAttribute('type', 'text/javascript');
st.innerHTML = "var imdbUrl = $('#videotitle a[href*=imdb]').attr('href'); var title = $('#videotitle a[href*=imdb]').attr('title'); $('#videoframe').after('<script src=\\'http://widgets.getglue.com/checkin.js\\' type=\\'text/javascript\\'></script><a href=\\'http://getglue.com\\' class=\\'glue-checkin-widget\\' data-type=\\'feed\\' data-objectId=\\'' + imdbUrl + '\\' data-title=\\'' + title + '\\'>Check-in on GetGlue</a>');";
document.body.appendChild(st);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment