From 194bbaf47257e1890242e960c6b857c34becd469 Mon Sep 17 00:00:00 2001 From: Ray Lothian Date: Wed, 15 Aug 2018 16:40:00 +0430 Subject: [PATCH] fixes #9 --- data/inject.js | 2 ++ manifest.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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",