Skip to content

Instantly share code, notes, and snippets.

arantius arantius

Block or report user

Report or block arantius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View amo-stats-analyze.py
#!/usr/bin/env python
import csv
import re
import sys
################################################################################
# Good reference: http://www.get-firefox.eu/default_025.html
app_ids={
View farsidefix.py
#!/usr/bin/env python
import Image
import ImageEnhance
import logging
import math
edge_buffer=25
black_threshold=96
search_indicator=None
View user-script-analyze.py
#!/usr/bin/env python
import fnmatch
import operator
import re
import string
import sys
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
View user-include-test.user.js
// ==UserScript==
// @name Custom Include Tester
// @namespace test
// @description Test custom includes with 0.8 -> 0.9 upgrade path
// @exclude *
// ==/UserScript==
alert("If you're seeing this, then user-set include/exclude rules work.");
View greasemonkey-works.user.js
// ==UserScript==
// @name Greasemonkey Works
// @namespace test
// @description If you see an alert when loading appropriate pages, then this script works, and thus Greasemonkey works!
// @include http://www.example.com/
// ==/UserScript==
alert("If you're seeing this, then Greasemonkey works.");
View javascript-function-kinds.js
const GLOBAL_CONSTANT_NAME = 1;
function plainGlobalFunction() { };
function GlobalConstructor() { };
GlobalConstructor.prototype.anonymousAssignedToPrototype = function() { };
GlobalConstructor.prototype.namedAssignedToPrototypeOL = function GlobalConstructor_namedAssignedToPrototypeOL() { };
GlobalConstructor.prototype.namedAssignedToPrototypeNL =
function GlobalConstructor_namedAssignedToPrototypeNL() { };
View GM_setValue-Test.user.js
// ==UserScript==
// @name GM_setValue Test
// @description Test what happens to GM_setValue() values, across installs.
// ==/UserScript==
var i = GM_getValue('i', 0);
i++;
GM_setValue('i', i);
dump('GM_setValue Test has run ' + i + ' times.\n');
View x=y=0
// ==UserScript==
// @name test: var x = y = 0;
// @include *
// ==/UserScript==
var x = y = 0;
alert('a');
View eval test
// ==UserScript==
// @name eval test
// @include *
// ==/UserScript==
eval("alert('eval test')")
You can’t perform that action at this time.