🐛 Fix compatibility issues with a small number of address jumps.

This commit is contained in:
Tw93
2023-06-04 15:14:07 +08:00
parent e369d8239a
commit 1ebba7dfc2
2 changed files with 4 additions and 1 deletions

View File

@@ -128,7 +128,8 @@ document.addEventListener('DOMContentLoaded', () => {
}
});
document.addEventListener('click', (e) => {
// Prevent some special websites from executing in advance, before the click event is triggered.
document.addEventListener('mousedown', (e) => {
const anchorElement = e.target.closest('a');
if (anchorElement && anchorElement.href) {

View File

@@ -153,10 +153,12 @@ window.addEventListener('DOMContentLoaded', (_event) => {
margin-top:24px;
}
#react-root [data-testid="placementTracking"] article,
#react-root a[href*="quick_promote_web"],
#react-root [data-testid="AppTabBar_Explore_Link"],
#react-root a[href*="/lists"][role="link"][aria-label],
#react-root a[href*="/i/communitynotes"][role="link"][aria-label],
#react-root a[href*="/i/verified-orgs-signup"][role="link"][aria-label] {
display: none !important;
}