Created
November 2, 2010 02:44
-
-
Save netpro2k/659195 to your computer and use it in GitHub Desktop.
Add a GetGlue Widget to icefilms pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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