diff --git a/data/inject.js b/data/inject.js index 7a04eb5..0997cee 100644 --- a/data/inject.js +++ b/data/inject.js @@ -20,6 +20,7 @@ if ( document.documentElement.dataset.fgdvcre = true; }`; document.documentElement.appendChild(script); + script.remove(); // make sure the script is injected if (document.documentElement.dataset.fgdvcre !== 'true') { document.documentElement.dataset.fgdvcre = true; @@ -38,6 +39,7 @@ if ( ` }); top.document.documentElement.appendChild(script); + script.remove(); } delete document.documentElement.dataset.fgdvcre; } diff --git a/manifest.json b/manifest.json index a7a2493..d528e7b 100755 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "manifest_version": 2, - "name": "User-Agent Switcher", + "name": "User-Agent Switcher and Manager", "short_name": "useragent-switcher", "version": "0.2.3", - "description": "Spoofs User-Agent strings of your browser", + "description": "Spoofs User-Agent strings of your browser with a new one globally, randomly or per hostname", "permissions": [ "tabs",