remove amazon

This commit is contained in:
Hezekiah Michael 2022-07-18 05:58:49 -04:00
parent ac484c8b54
commit 823f242e25
4 changed files with 3 additions and 10 deletions

View File

@ -461,7 +461,6 @@ const socialNetworkPatterns = [
"*://*.google.com/*",
"*://*.bing.com/*",
"*://duckduckgo.com/*",
"*://*.amazon.com/*",
"*://*.goodreads.com/*",
];

View File

@ -31,7 +31,7 @@ function fixupSiteStyles() {
.assigned-label-transphobic { outline: 2px solid var(--ShinigamiEyesTransphobic) !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(`
.assigned-label-transphobic { outline: 1px solid var(--ShinigamiEyesTransphobic) !important; }
.assigned-label-t-friendly { outline: 1px solid var(--ShinigamiEyesTFriendly) !important; }
@ -94,7 +94,6 @@ function init() {
'duckduckgo.com',
'bing.com',
'goodreads.com',
'amazon.com',
].includes(hostname) ||
domainIs(hostname, 'tumblr.com') ||
domainIs(hostname, 'wikipedia.org') ||
@ -434,10 +433,7 @@ function getIdentifierFromElementImpl(element: HTMLAnchorElement, originalTarget
if (element.classList.contains('authorName')) return element.textContent;
if (element.classList.contains('author')) 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';

View File

@ -44,8 +44,7 @@
"*://*.google.no/*",
"*://*.google.pt/*",
"*://*.google.se/*",
"*://*.goodreads.com/*",
"*://*.amazon.com/*"
"*://*.goodreads.com/*"
],
"css": [
"content.css"

View File

@ -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="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="amazon.com">Amazon</label>
<label class="website-checkbox"><input type="checkbox" data-site="wikipedia.org">Wikipedia
<i>(topics)</i></label>
<label class="website-checkbox"><input type="checkbox" data-site="youtube.com">YouTube</label>