Skip to content

Instantly share code, notes, and snippets.

View savetheclocktower's full-sized avatar

Andrew Dupont savetheclocktower

View GitHub Profile
module PDoc
module Generators
module Html
module Helpers
module BaseHelper
end
module LinkHelper
end
// ==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;
// ==UserScript==
// @name Mock Geolocation
// @description MONKEYS!
// @version 2009-01-19
// @namespace http://andrewdupont.net/greasemonkey
// @include *
// ==/UserScript==
// Mock geolocation. Ugh.
if (!('geolocation' in navigator)) {
// IE-specific WTFs are a whole can of worms, but this one towers above all...
function handler() {
alert(window.event === window.event); // alerts 'false'
}
// In Safari, try...
var enum;
//-> SyntaxError: Parse error
(function() {
window.setTimeout(wtf, 0);
function wtf() {
alert("wtf");
}
})();
// ==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/*
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
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.
<!DOCTYPE HTML>
<html>
<head>
<title>Test page</title>
<script type="text/javascript">
if (HTMLDivElement) {
HTMLDivElement.prototype.foo = function() { alert('aha!'); };
}
</script>
<style>