Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Dupont savetheclocktower

View GitHub Profile
View forum-f3-t19.html
<!DOCTYPE HTML>
<html>
<head>
<title>Test page</title>
<script type="text/javascript">
if (HTMLDivElement) {
HTMLDivElement.prototype.foo = function() { alert('aha!'); };
}
</script>
<style>
View gist:648005
Tools by Andrew Dupont begins here.
Book 1 - Stuff
Chapter 1 - Generic Objects
Section 1 - Unscrewing
A thing can be unscrewable. A thing is usually not unscrewable.
A thing can be screw-removing. A thing is usually not screw-removing.
View gist:502828
Process: Quick Search Box [778]
Path: /Applications/Quick Search Box.app/Contents/MacOS/Quick Search Box
Identifier: com.google.qsb
Version: 2.0.0 (2.0.0.3766)
Code Type: X86-64 (Native)
Parent Process: launchd [239]
Date/Time: 2010-07-31 20:27:18.348 -0500
OS Version: Mac OS X 10.6.4 (10F569)
Report Version: 6
View redditkeyboardnavigation.user.js
// ==UserScript==
// @name Reddit Keyboard Navigation
// @namespace http://andrewdupont.net/greasemonkey
// @description Navigate Reddit comments. Expand, collapse, and reply
// without having to pinpoint tiny links with your mouse.
// @author Andrew Dupont
// @include http://reddit.com/*
// @include https://reddit.com/*
// @include http://*.reddit.com/*
// @include https://*.reddit.com/*
View bb_wtf.js
(function() {
window.setTimeout(wtf, 0);
function wtf() {
alert("wtf");
}
})();
View reserved_word.js
// In Safari, try...
var enum;
//-> SyntaxError: Parse error
View window.event.wtf.js
// IE-specific WTFs are a whole can of worms, but this one towers above all...
function handler() {
alert(window.event === window.event); // alerts 'false'
}
View mock_geolocation.user.js
// ==UserScript==
// @name Mock Geolocation
// @description MONKEYS!
// @version 2009-01-19
// @namespace http://andrewdupont.net/greasemonkey
// @include *
// ==/UserScript==
// Mock geolocation. Ugh.
if (!('geolocation' in navigator)) {
View gist:186236
// ==UserScript==
// @name Score Monitor
// @namespace http://andrewdupont.net/greasemonkey
// @description Monitors fantasy football scores.
// @include http://*.football.cbssports.com/scoring/live/*
// @author Andrew Dupont
// ==/UserScript==
(function () {
if (!window.fluid) return;
View gist:182548
module PDoc
module Generators
module Html
module Helpers
module BaseHelper
end
module LinkHelper
end
You can’t perform that action at this time.