remove amazon
This commit is contained in:
parent
ac484c8b54
commit
823f242e25
@ -461,7 +461,6 @@ const socialNetworkPatterns = [
|
|||||||
"*://*.google.com/*",
|
"*://*.google.com/*",
|
||||||
"*://*.bing.com/*",
|
"*://*.bing.com/*",
|
||||||
"*://duckduckgo.com/*",
|
"*://duckduckgo.com/*",
|
||||||
"*://*.amazon.com/*",
|
|
||||||
"*://*.goodreads.com/*",
|
"*://*.goodreads.com/*",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ function fixupSiteStyles() {
|
|||||||
.assigned-label-transphobic { outline: 2px solid var(--ShinigamiEyesTransphobic) !important; }
|
.assigned-label-transphobic { outline: 2px solid var(--ShinigamiEyesTransphobic) !important; }
|
||||||
.assigned-label-t-friendly { outline: 1px solid var(--ShinigamiEyesTFriendly) !important; }
|
.assigned-label-t-friendly { outline: 1px solid var(--ShinigamiEyesTFriendly) !important; }
|
||||||
`);
|
`);
|
||||||
} else if (hostname == 'rationalwiki.org' || domainIs(hostname, 'wikipedia.org') || hostname == 'amazon.com' || hostname == 'goodreads.com') {
|
} else if (hostname == 'rationalwiki.org' || domainIs(hostname, 'wikipedia.org') || hostname == 'goodreads.com') {
|
||||||
addStyleSheet(`
|
addStyleSheet(`
|
||||||
.assigned-label-transphobic { outline: 1px solid var(--ShinigamiEyesTransphobic) !important; }
|
.assigned-label-transphobic { outline: 1px solid var(--ShinigamiEyesTransphobic) !important; }
|
||||||
.assigned-label-t-friendly { outline: 1px solid var(--ShinigamiEyesTFriendly) !important; }
|
.assigned-label-t-friendly { outline: 1px solid var(--ShinigamiEyesTFriendly) !important; }
|
||||||
@ -94,7 +94,6 @@ function init() {
|
|||||||
'duckduckgo.com',
|
'duckduckgo.com',
|
||||||
'bing.com',
|
'bing.com',
|
||||||
'goodreads.com',
|
'goodreads.com',
|
||||||
'amazon.com',
|
|
||||||
].includes(hostname) ||
|
].includes(hostname) ||
|
||||||
domainIs(hostname, 'tumblr.com') ||
|
domainIs(hostname, 'tumblr.com') ||
|
||||||
domainIs(hostname, 'wikipedia.org') ||
|
domainIs(hostname, 'wikipedia.org') ||
|
||||||
@ -434,9 +433,6 @@ function getIdentifierFromElementImpl(element: HTMLAnchorElement, originalTarget
|
|||||||
if (element.classList.contains('authorName')) return element.textContent;
|
if (element.classList.contains('authorName')) return element.textContent;
|
||||||
if (element.classList.contains('author')) return element.textContent;
|
if (element.classList.contains('author')) return element.textContent;
|
||||||
if (element.classList.contains('gr-book__authorLink')) return element.textContent;
|
if (element.classList.contains('gr-book__authorLink')) return element.textContent;
|
||||||
} else if (hostname == 'amazon.com') {
|
|
||||||
if (element.classList.contains('contributorNameID')) return element.textContent;
|
|
||||||
if (element.classList.contains('._cDEzb_p13n-sc-css-line-clamp-1_2o7X6')) return element.textContent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.classList.contains('tumblelog')) return element.textContent.replace('@', '') + '.tumblr.com';
|
if (element.classList.contains('tumblelog')) return element.textContent.replace('@', '') + '.tumblr.com';
|
||||||
|
@ -44,8 +44,7 @@
|
|||||||
"*://*.google.no/*",
|
"*://*.google.no/*",
|
||||||
"*://*.google.pt/*",
|
"*://*.google.pt/*",
|
||||||
"*://*.google.se/*",
|
"*://*.google.se/*",
|
||||||
"*://*.goodreads.com/*",
|
"*://*.goodreads.com/*"
|
||||||
"*://*.amazon.com/*"
|
|
||||||
],
|
],
|
||||||
"css": [
|
"css": [
|
||||||
"content.css"
|
"content.css"
|
||||||
|
@ -68,7 +68,6 @@
|
|||||||
<label class="website-checkbox"><input type="checkbox" data-site="tumblr.com">Tumblr</label>
|
<label class="website-checkbox"><input type="checkbox" data-site="tumblr.com">Tumblr</label>
|
||||||
<label class="website-checkbox"><input type="checkbox" data-site="twitter.com">Twitter</label>
|
<label class="website-checkbox"><input type="checkbox" data-site="twitter.com">Twitter</label>
|
||||||
<label class="website-checkbox"><input type="checkbox" data-site="goodreads.com">Goodreads</label>
|
<label class="website-checkbox"><input type="checkbox" data-site="goodreads.com">Goodreads</label>
|
||||||
<label class="website-checkbox"><input type="checkbox" data-site="amazon.com">Amazon</label>
|
|
||||||
<label class="website-checkbox"><input type="checkbox" data-site="wikipedia.org">Wikipedia
|
<label class="website-checkbox"><input type="checkbox" data-site="wikipedia.org">Wikipedia
|
||||||
<i>(topics)</i></label>
|
<i>(topics)</i></label>
|
||||||
<label class="website-checkbox"><input type="checkbox" data-site="youtube.com">YouTube</label>
|
<label class="website-checkbox"><input type="checkbox" data-site="youtube.com">YouTube</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user