Skip to content

Commit

Permalink
Drobne poprawki
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Apr 4, 2019
1 parent e9a8414 commit 67dc228
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description":"extension name."
},
"extensionDescription":{
"message":"Automatically aceepts cookie policy/GDPR on pages available in Polish.",
"message":"Automatically accepts cookie policy/GDPR on pages available in Polish.",
"description":"Description of extension."
},
"reportIssueOnGitHub":{
Expand Down
25 changes: 0 additions & 25 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,30 +122,6 @@ function redirect(redirectPoint, pathName, urlArg, cookieName)
}
}

function removeFromShadow(shadowHostArg, element, urlArg)
{
if(getUrlCondition(urlArg))
{
var readyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
var shadowHost = document.querySelectorAll(shadowHostArg);
if(shadowHost[0])
{
var cookieConsent = document.querySelector(shadowHostArg).shadowRoot.querySelector(element);
if(cookieConsent)
{
for (var i=0; i<shadowHost.length; ++i)
{
shadowHost[i].shadowRoot.querySelector(element).remove();
}
}
clearInterval(readyStateCheckInterval);
}
}
}, 1000);
}
}

addToStorage("gdpr_popup", "true", "totalcasino.pl");
addToStorage("rodoConfirmation", "true", "gry.lotto.pl");
bakeCookie("acceptedCookies", "true", "365", "vivaldi.com");
Expand All @@ -169,4 +145,3 @@ clickInteractive(".termsagree", "odr.pl");
clickTimeout('.btn[name="agree"]', "guce.oath.com\/collectConsent");
redirect("/aktualnosci.dhtml", "", "=https://powiatkamienski.pl/");
redirect("/x-set-cookie", "true", "f1racing.pl", "x-id-cookie-yes=");
removeFromShadow(".twitter-tweet", ".Interstitial", "sportowefakty.wp.pl|wirtualnemedia.pl");
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.28",
"version": "1.29",
"default_locale": "en",
"icons": {
"16": "icons/icon16.png",
Expand Down
4 changes: 2 additions & 2 deletions updates/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"[email protected]": {
"updates": [
{
"version": "1.28",
"version": "1.29",
"applications": { "gecko": { "strict_min_version": "56.0" } },
"update_link": "https://github.com/PolishFiltersTeam/PolishCookieConsent/releases/download/v1.28/PolishCookieConsent_firefox.xpi"
"update_link": "https://github.com/PolishFiltersTeam/PolishCookieConsent/releases/download/v1.29/PolishCookieConsent_firefox.xpi"
}
]
}
Expand Down

0 comments on commit 67dc228

Please sign in to comment.