mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-04 04:47:52 +01:00
Handle footnote backlinks w/o css classes. Fixes #3084
This commit is contained in:
parent
6b77602694
commit
e5a21cfee6
@ -157,7 +157,7 @@
|
|||||||
document.addEventListener("click", (ev) =>
|
document.addEventListener("click", (ev) =>
|
||||||
{
|
{
|
||||||
if (!(ev.target && ev.target instanceof HTMLAnchorElement)) return;
|
if (!(ev.target && ev.target instanceof HTMLAnchorElement)) return;
|
||||||
if (!ev.target.matches(".footnotes .reversefootnote, .footnotes .footnoteBackLink, .footnotes .footnote-return")) return;
|
if (!ev.target.matches(".footnotes .reversefootnote, .footnotes .footnoteBackLink, .footnotes .footnote-return, .footnotes a[href^='#']")) return;
|
||||||
const id = idFromHash(ev.target);
|
const id = idFromHash(ev.target);
|
||||||
if (!id) return;
|
if (!id) return;
|
||||||
const fnref = document.getElementById(id);
|
const fnref = document.getElementById(id);
|
||||||
|
@ -375,7 +375,8 @@ img[src*="share-buttons"] {
|
|||||||
|
|
||||||
.newsfoot-footnote-popover .reversefootnote,
|
.newsfoot-footnote-popover .reversefootnote,
|
||||||
.newsfoot-footnote-popover .footnoteBackLink,
|
.newsfoot-footnote-popover .footnoteBackLink,
|
||||||
.newsfoot-footnote-popover .footnote-return {
|
.newsfoot-footnote-popover .footnote-return,
|
||||||
|
.newsfoot-footnote-popover a[href^='#fn'] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user