Skip to content

Instantly share code, notes, and snippets.

@DClark5218
Created October 7, 2013 09:30
Show Gist options
  • Save DClark5218/6865100 to your computer and use it in GitHub Desktop.
Save DClark5218/6865100 to your computer and use it in GitHub Desktop.
javascript: (function () { function d() { window.alert("Sorry, the report is unable to run.") } var a = document.createElement("script"); a.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"); a.setAttribute("id", "iprReportQuery"); document.getElementsByTagName("head")[0].appendChild(a); var b = 0; var c = setInterval(function () { var a = document.getElementById("iprReportQuery"); window.console.log(a); var e = typeof a == "undefined"; if (!e) { var f = jQuery.noConflict(true); var g = typeof f == "undefined"; window.console.log(f); if (!g) { clearInterval(c); window.console.log("jQuery " + f.fn.jquery + " has been injected."); f(document).ready(function (a) { var description = a('meta[property|="og:description"]').attr('content') || ''; console.log('description is ' + description); var title = a('meta[property|="og:title"]').attr('content') || ''; console.log('title is ' + title); var image = a('meta[property|="og:image"]').attr('content') || ''; console.log('image is ' + image); var url = a('meta[property|="og:url"]').attr('content') || ''; console.log('url is ' + url); var qStr = encodeURI( "description=" + description + "&title=" + title + "&image=" + image + "&url=" + url); var e = "http://www.ipullrank.com/tools/og-parse.php?" + qStr; window.console.log(e); var g = '
Close This Window
'; f("body").append(g); f("#iprCloseMe").bind("click", function () { f("#reportWindow").fadeOut("slow") }); f("#reportWindow").fadeIn("slow") }); return }++b; if (b == 10) { clearInterval(c); window.console.log("Sorry, unable to inject jQuery now."); d() } } }, 500) })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment