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
/*! Cross-browser-compatible setZeroTimeout | |
* | |
* I took the original setZeroTimeout and made it cross-browser-compatible, using setTimeout(fn, 0) as a fallback in case postMessage is not supported. | |
* Mathias Bynens <http://mathiasbynens.be/> | |
* See <http://mathiasbynens.be/notes/settimeout-onload> | |
* | |
* Copyright statement below: | |
* | |
* See <http://dbaron.org/log/20100309-faster-timeouts> | |
* By L. David Baron <dbaron@dbaron.org>, 2010-03-07, 2010-03-09 |
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
/*! | |
* toggleAttr() jQuery plugin | |
* @link http://github.com/mathiasbynens/toggleAttr-jQuery-Plugin | |
* @description Used to toggle selected="selected", disabled="disabled", checked="checked" etc… | |
* @author Mathias Bynens <http://mathiasbynens.be/> | |
*/ | |
jQuery.fn.toggleAttr = function(attr) { | |
return this.each(function() { | |
var $this = $(this); | |
$this.attr(attr) ? $this.removeAttr(attr) : $this.attr(attr, attr); |
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 Hide Jimmy Wales. | |
// @match http://*.wikipedia.org/* | |
// ==/UserScript== | |
(function() { | |
var banner = document.getElementById('siteNotice'); | |
banner && banner.style.display = 'none'; | |
}()); |
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
// Original code from http://css-tricks.com/examples/FluidWidthYouTube/iframe.php | |
$(function() { | |
// find all videos | |
var allVideos = $("iframe[src^='http://www.youtube.com']"), | |
// The thing that is fluid width | |
body = $("body"), |
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
http://AI./ | |
└ IP: 209.59.119.34 | |
http://ARAB./ | |
└ IP: 127.0.53.53 | |
http://BH./ | |
└ IP: 10.10.10.10 | |
http://CM./ | |
└ IP: 195.24.205.60 | |
http://DK./ | |
└ IP: 193.163.102.58 |
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
/*! | |
* $.preload() function for jQuery – http://mths.be/preload | |
* Preload images, CSS and JavaScript files without executing them | |
* Script by Stoyan Stefanov – http://www.phpied.com/preload-cssjavascript-without-execution/ | |
* Slightly rewritten by Mathias Bynens – http://mathiasbynens.be/ | |
* Note that since this script relies on jQuery, the preloading process will not start until jQuery has finished loading. | |
*/ | |
jQuery.preload = function(array) { | |
var length = array.length, |
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
<!-- See http://mathiasbynens.be/notes/async-analytics-snippet --> | |
<!-- Gisted for P. Ireland --> | |
<script>var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script> |
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
'use strict'; | |
const pad = function(string) { | |
const totalCharacters = 4; | |
return string.length < totalCharacters ? | |
(Array(totalCharacters + 1).join('0') + string).slice(-totalCharacters) : | |
string; | |
} | |
const UNICODE_MIN = 0x0; |
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
// Load scripts asynchronously | |
jQuery.loadAsync = function(url, callback) { | |
// Don't use $.getScript since it disables caching | |
jQuery.ajax({ | |
'url': url, | |
'dataType': 'script', | |
'cache': true, | |
'success': callback || jQuery.noop | |
}); | |
}; |
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
/* | |
* See http://mathiasbynens.be/notes/async-analytics-snippet#comment-14 | |
*/ | |
<script> | |
var f = Function(), | |
clicky = { log: f, goal: f }, | |
clicky_site_id = XXXXXX; | |
(function(d, t) { | |
var c = d.createElement(t), |