Skip to content

Instantly share code, notes, and snippets.

@benjamingeiger
Created April 18, 2012 01:54
Show Gist options
  • Save benjamingeiger/2410509 to your computer and use it in GitHub Desktop.
Save benjamingeiger/2410509 to your computer and use it in GitHub Desktop.
Zebralisting plugin
// lib/main.js
var pageMod = require("page-mod");
var self = require("self");
pageMod.PageMod({
include: "*",
contentScriptWhen: 'ready',
contentScriptFile: [self.data.url("jquery-1.7.2.min.js"),
self.data.url("zebra.js")]
});
// data/jquery...js is present
// data/zebra.js
delete document.body.onload;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment