From 535f8bfb43ace2cb5ff8a13b96a10311b63b9dbf Mon Sep 17 00:00:00 2001 From: Haku Date: Wed, 24 Nov 2021 21:34:52 -0500 Subject: [PATCH] no longer attempts to inject buttons onto no-template pages --- build/manifest.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build/manifest.json b/build/manifest.json index b3410f1..c792180 100644 --- a/build/manifest.json +++ b/build/manifest.json @@ -14,16 +14,22 @@ "https://*.nationstates.net/*" ], "content_scripts": [ + { + "matches": ["https://www.nationstates.net/*"], + "exclude_matches": ["https://forum.nationstates.net/*", "https://www.nationstates.net/template-overall=none/*"], + "run_at": "document_idle", + "js": ["scripts/buttons.js"] + }, { "matches": ["https://www.nationstates.net/*"], "exclude_matches": ["https://forum.nationstates.net/*"], - "run_at": "document_end", - "js": ["scripts/buttons.js", "scripts/main.js"] + "run_at": "document_idle", + "js": ["scripts/helpers.js", "scripts/main.js"] }, { "matches": ["https://www.nationstates.net/page=blank/raspberry=settings"], "exclude_matches": ["https://forum.nationstates.net/*"], - "run_at": "document_end", + "run_at": "document_idle", "js": ["scripts/settings.js"] } ]