Skip to content

Instantly share code, notes, and snippets.

@ignisf
Created June 27, 2013 23:51
Show Gist options
  • Save ignisf/5881389 to your computer and use it in GitHub Desktop.
Save ignisf/5881389 to your computer and use it in GitHub Desktop.
var pageMod = require('sdk/page-mod');
var {data} = require('sdk/self');
sites = [/http:\/\/www\.dnevnik\.bg.*/,
/http:\/\/www\.capital\.bg.*/,
/http:\/\offnews\.bg.*/];
scripts = ['noCommentBG.js',
'dnevnik.js',
'capital.js',
'offnews.js'].map(data.url);
pageMod.PageMod({
include: sites,
contentScriptFile: scripts
});
@ignisf
Copy link
Author

ignisf commented Jun 27, 2013

скриптовете се преизползват 1:1
трябва ти следната директорийна структура:

addon-sdk (submodule на SDK-то на firefox)
data
  noCommentBG.js
  dnevnik.js
  capital.js
  offnews.js
doc
lib
  main.js (tova otgore)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment