Skip to content

Commit

Permalink
Release 3.0.52 - "www."-Domain-Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrie committed Sep 1, 2019
1 parent 3dfdba4 commit a5c71ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions cookies.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,22 +288,22 @@ li.cookieEntry.hidden {
.dark li.cookieEntry:hover .cookieKey,
.dark li.cookieEntry:hover .cookieValue,
.dark li.cookieEntrySublist:hover .cookieKey,
.dark li.cookieEntrySublist:hover .cookieValue {
.dark li.cookieEntrySublist:hover .cookieValue,
li.cookieEntry.inactive-cookie:hover,
li.cookieEntrySublist.inactive-cookie:hover {
color: #fff;
}

li.cookieEntry:hover .cookieValue,
li.cookieEntrySublist:hover .cookieValue {
color: #fff;
}

li.cookieEntrySublist:hover .cookieValue,
li.cookieEntry:hover .secure-cookie,
li.cookieEntry:hover .cookie-domain,
li.cookieEntry:hover .cookie-domain
li.cookieEntrySublist:hover .secure-cookie,
li.cookieEntrySublist:hover .cookie-domain {
color: #af2000;
color: #fff;
}


.dark li.cookieEntry:hover .secure-cookie,
.dark li.cookieEntry:hover .cookie-domain,
.dark li.cookieEntrySublist:hover .secure-cookie,
Expand Down Expand Up @@ -514,7 +514,7 @@ button#permittedCookies {
background-color: #45a;
color: #fff;
font-size: 0.95em;
padding: 0px 7px 2px 7px;
padding: 4px 8px;
position: absolute;
top: 23px;
right: -8px;
Expand Down
12 changes: 6 additions & 6 deletions cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ async function clearCookiesAction (action, data, cookies, domainURL, currentTab,
if (data['flagCookies_autoFlag'] !== undefined && data['flagCookies_autoFlag'][contextName] !== undefined && urlInFlag) {
for (let domainKey of Object.keys(cookieData[contextName][rootDomain])) {
for (let cookie of cookieData[contextName][rootDomain][domainKey]) {
let cookieDomain = domainKey.startsWith('.') ? domainKey.replace('.', '') : domainKey
let cookieDomain = domainKey.startsWith('.') ? domainKey.replace('.', '') : domainKey.replace('www.', '')
let startHttp = cookieDomain.startsWith('http')
let isManagedCookieHttp = false
let isManagedCookieHttps = false
Expand All @@ -446,7 +446,7 @@ async function clearCookiesAction (action, data, cookies, domainURL, currentTab,
if (cookieDomain === rootDomain) cookie['fgRoot'] = true
else if (cookie['fgRoot'] !== undefined) delete cookie['fgRoot']

if (accountDomain !== null && accountDomain.indexOf(cookieDomain) !== -1) {
if (accountDomain !== null && accountDomain.indexOf(cookieDomain.replace('www.', '')) !== -1) {
cookie['fgProfile'] = true
cookie['fgDomain'] = accountDomain
}
Expand Down Expand Up @@ -527,7 +527,7 @@ async function clearCookiesAction (action, data, cookies, domainURL, currentTab,
if (useChrome) {
let cookieDomainTrim

if (cookie.domain.startsWith('.')) cookieDomainTrim = cookie.domain.replace('.', '')
if (cookie.domain.startsWith('.')) cookieDomainTrim = cookie.domain.replace('.', '').replace('www.', '')
else cookieDomainTrim = cookie.domain.replace('www.', '').replace(/(http|https):\/\//, '')

let details = { url: 'https://' + cookieDomain + cookie.path, name: cookie.name }
Expand Down Expand Up @@ -567,7 +567,7 @@ async function clearCookiesAction (action, data, cookies, domainURL, currentTab,

let cookieDomainTrim

if (cookie.domain.startsWith('.')) cookieDomainTrim = cookie.domain.replace('.', '')
if (cookie.domain.startsWith('.')) cookieDomainTrim = cookie.domain.replace('.', '').replace('www.', '')
else cookieDomainTrim = cookie.domain.replace('www.', '').replace(/(http|https):\/\//, '')

let details = { url: 'https://' + cookieDomainTrim + cookie.path, name: cookie.name, storeId: activeCookieStore }
Expand Down Expand Up @@ -623,7 +623,7 @@ async function clearCookiesAction (action, data, cookies, domainURL, currentTab,
} else if (data['flagCookies_flagGlobal'] !== undefined && data['flagCookies_flagGlobal'][contextName] !== undefined && data['flagCookies_flagGlobal'][contextName] === true) {
for (let domainKey of Object.keys(cookieData[contextName][rootDomain])) {
for (let cookie of cookieData[contextName][rootDomain][domainKey]) {
let cookieDomain = domainKey.startsWith('.') ? domainKey.replace('.', '') : domainKey
let cookieDomain = domainKey.startsWith('.') ? domainKey.replace('.', '') : domainKey.replace('www.', '')
let startHttp = cookieDomain.startsWith('http')
let isManagedCookieHttp = false
let isManagedCookieHttps = false
Expand Down Expand Up @@ -819,7 +819,7 @@ async function clearCookiesAction (action, data, cookies, domainURL, currentTab,
} else {
for (let domainKey of Object.keys(cookieData[contextName][rootDomain])) {
for (let cookie of cookieData[contextName][rootDomain][domainKey]) {
let cookieDomain = domainKey.startsWith('.') ? domainKey.replace('.', '') : domainKey
let cookieDomain = domainKey.startsWith('.') ? domainKey.replace('.', '') : domainKey.replace('www.', '')
let startHttp = cookieDomain.startsWith('http')
let isManagedCookieHttp = false
let isManagedCookieHttps = false
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"homepage_url": "https://github.com/jrie/flagCookies",
"manifest_version": 2,
"name": "Flag Cookies",
"version": "3.0.51",
"version": "3.0.52",
"permissions": ["cookies", "tabs", "webRequest", "<all_urls>", "storage", "unlimitedStorage", "notifications", "contextualIdentities"],
"background": {
"scripts": [
Expand Down

0 comments on commit a5c71ed

Please sign in to comment.