forked from nishanthvijayan/Drumpfinator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Commit.Make trump drumpf again.
- Loading branch information
Nishanth Vijayan
committed
Feb 29, 2016
0 parents
commit 85c3e83
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Drumpfinator | ||
Replace Trump with Drumpf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
document.body.innerHTML = document.body.innerHTML.replace(/trump/g, 'drumpf').replace(/Trump/g, 'Drumpf'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var self = require("sdk/self"); | ||
var pageMod = require("sdk/page-mod"); | ||
|
||
pageMod.PageMod({ | ||
include: "*", | ||
contentScriptFile: self.data.url("replacer.js") | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"title": "Drumpfinator", | ||
"name": "Drumpfinator", | ||
"version": "0.0.1", | ||
"description": "Add this to your browser and replace all instances of Trump with Drumpf.", | ||
"main": "index.js", | ||
"author": "Nishanth Vijayan", | ||
"engines": { | ||
"firefox": ">=38.0a1", | ||
"fennec": ">=38.0a1" | ||
}, | ||
"license": "MIT", | ||
"keywords": [ | ||
"jetpack" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var main = require("../"); | ||
|
||
exports["test main"] = function(assert) { | ||
assert.pass("Unit test running!"); | ||
}; | ||
|
||
exports["test main async"] = function(assert, done) { | ||
assert.pass("async Unit test running!"); | ||
done(); | ||
}; | ||
|
||
exports["test dummy"] = function(assert, done) { | ||
main.dummy("foo", function(text) { | ||
assert.ok((text === "foo"), "Is the text actually 'foo'"); | ||
done(); | ||
}); | ||
}; | ||
|
||
require("sdk/test").run(exports); |