Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lilousky committed Feb 20, 2022
1 parent 884601a commit f071b6d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
20 changes: 20 additions & 0 deletions fix_error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
console.log("Loaded");
var elements = document.getElementsByTagName('*');

for (var i = 0; i < elements.length; i++) {
var element = elements[i];

for (var j = 0; j < element.childNodes.length; j++) {
var node = element.childNodes[j];

if (node.nodeType === 3) {
var text = node.nodeValue;
var replacedfix = text.replace('Fixed error', 'added retardedness');

if (replacedfix !== text) {
element.replaceChild(document.createTextNode(replacedfix), node);
}

}
}
}
Binary file added icons/ATWD98_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "Fixes Errors on the wiiki",
"manifest_version": 2,
"name": "Error Fixer",
"version": "1.0",
"homepage_url": "http://wiki.tockdom.com/wiki/Special:Contributions/AlmostTWD98",
"icons": {
"48": "icons/ATWD98_48.png"
},
"content_scripts": [
{
"matches": [
"*://*.tockdom.com/*"
],
"js": [
"fix_error.js"
],
"run_at": "document_idle"
}
]
}

0 comments on commit f071b6d

Please sign in to comment.