Skip to content

Instantly share code, notes, and snippets.

Tomislav Jovanovic zombie

Block or report user

Report or block zombie

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 Intent to ship: userScripts extensions API
Intent to ship: userScripts extensions API
In bug 1514809, I recently enabled the new browser.userScripts
API by default for all channels. It was developed behind the
`extensions.webextensions.userScripts.enabled` pref, with most
of the work done by Luca Greco.
The feature will be in the next Firefox 68 Beta this Friday,
and reach release in July. Until more detailed documentation
is available on MDN, check out this introduction:
zombie / gist:7759981
Last active Dec 30, 2015
View gist:7759981
const tabs = require('sdk/tabs');
const { PageMod } = require('sdk/page-mod');
let s = "var x = 'start';" +
"addEventListener('DOMContentLoaded', () => x = 'ready');" +
"onload = () => x = 'end';";
let url = "data:text/html,<script>" + s + "</script> hey there";
let whens = ['start', 'ready', 'end'];
zombie / gist:7438632
Created Nov 12, 2013
ES6, destructuring assignment, Error instances and JSON.stringify()
View gist:7438632
let test1 = new Error('ubik', 'testing', 123);
let test2 = { name, message, fileName, lineNumber } = test1;
zombie / gist:3000409
Created Jun 27, 2012
firefox GCLI bug command
View gist:3000409
* bugzilla command
* use: bug #id
name: 'bug',
description: 'Shows a Mozilla Bugzilla bug',
params: [
View gist:2713981
View gist:2713980
klsdfjaskl; ;laskdjf ;lasdjkfl ;sdkjf;l ksjdf
View assignment_array.js
var arr = ["yea, yea", "we knew this worked"];
var [a, b] = arr;
// a == "yea, yea"
// b == "we knew this worked"
zombie / heatmap-ajax.js
Created Nov 4, 2010
unobtrusive js for
View heatmap-ajax.js
(function() {
var base='/', cache={};
$('.button').each(function one() {
var h = $(this).attr('href');
h = (h[0]!='/') ? (base+h) : (h=='/freq' ? '/freq/' : h);
if (!cache[h]) $.get(h, function(d) {
cache[h] = $(d.replace(/^[\s\S]*<body>|<scr.+ipt>/g, ''));
$(this).click(function() {
You can’t perform that action at this time.