🐛 Fix compatibility issues with a small number of address jumps.
This commit is contained in:
3
src-tauri/src/inject/event.js
vendored
3
src-tauri/src/inject/event.js
vendored
@@ -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) {
|
||||
|
||||
2
src-tauri/src/inject/style.js
vendored
2
src-tauri/src/inject/style.js
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user