This commit is contained in:
Ray Lothian 2018-08-15 16:40:00 +04:30
parent cd868b3370
commit 194bbaf472
2 changed files with 4 additions and 2 deletions

View file

@ -20,6 +20,7 @@ if (
document.documentElement.dataset.fgdvcre = true; document.documentElement.dataset.fgdvcre = true;
}`; }`;
document.documentElement.appendChild(script); document.documentElement.appendChild(script);
script.remove();
// make sure the script is injected // make sure the script is injected
if (document.documentElement.dataset.fgdvcre !== 'true') { if (document.documentElement.dataset.fgdvcre !== 'true') {
document.documentElement.dataset.fgdvcre = true; document.documentElement.dataset.fgdvcre = true;
@ -38,6 +39,7 @@ if (
` `
}); });
top.document.documentElement.appendChild(script); top.document.documentElement.appendChild(script);
script.remove();
} }
delete document.documentElement.dataset.fgdvcre; delete document.documentElement.dataset.fgdvcre;
} }

View file

@ -1,10 +1,10 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "User-Agent Switcher", "name": "User-Agent Switcher and Manager",
"short_name": "useragent-switcher", "short_name": "useragent-switcher",
"version": "0.2.3", "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": [ "permissions": [
"tabs", "tabs",