Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 11c474a

Browse files
committed
cleanup
1 parent 2cd4edf commit 11c474a

File tree

7 files changed

+3
-77
lines changed

7 files changed

+3
-77
lines changed

_locales/en/messages.json

Lines changed: 0 additions & 66 deletions
This file was deleted.

icons/icon128.png

-25.8 KB
Binary file not shown.

icons/icon16.png

-789 Bytes
Binary file not shown.

icons/icon19.png

-749 Bytes
Binary file not shown.

icons/icon48.png

-5.82 KB
Binary file not shown.

manifest.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
"manifest_version": 2,
55
"description": "This extension detects zero-width characters on a page, highlights the containing DOM element, and dislays a warning at the bottom-right of the DOM element.",
66
"homepage_url": "https://github.com/roymckenzie/detect-zero-width-characters-chrome-extension",
7-
"icons": {
8-
"16": "icons/icon16.png",
9-
"48": "icons/icon48.png",
10-
"128": "icons/icon128.png"
11-
},
12-
"default_locale": "en",
137
"content_scripts": [
148
{
159
"matches": [

src/inject/inject.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ chrome.extension.sendMessage({}, function(response) {
33
if (document.readyState === "complete") {
44
clearInterval(readyStateCheckInterval);
55

6-
// ----------------------------------------------------------
7-
// This part of the script triggers when page is done loading
8-
console.log("Hello. This message was sent from scripts/inject.js hehe");
9-
// ----------------------------------------------------------
6+
// Check Page
7+
checkPage();
108

9+
// Check page again when any input field is changed
1110
const inputs = document.querySelectorAll('input');
1211
[...inputs].forEach( function( input ) {
1312
input.addEventListener( 'change', checkPage );
1413
});
1514

16-
checkPage();
1715
}
1816
}, 10);
1917

0 commit comments

Comments
 (0)