Skip to content

Instantly share code, notes, and snippets.

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 ' +
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};
@DClark5218
DClark5218 / 0_reuse_code.js
Created September 28, 2013 16:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console