On 16/11/2025 18:35, Ihor Radchenko wrote:
Max Nikulin writes:
I do not think it is a good idea to use alternative front-ends as href
attribute in HTML as it is fetched from web server. E.g.
<https://github.com/alphapapa/org-ql> identify specific resource. It is
up to users to install a browser extension that redirects some requests
to alternative sites they prefer and they trust. [...]
Do you have ideas how to implement what you propose?
<https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/Redirect>
This would require add-on.
Sure. It gives users full control and minimizes annoyance in comparison
to dialogs varying across sites.
What I meant to ask is a way to implement
what you propose on WORG website side.
You question was above the paragraph related to JS code loaded from web
sites. Some dialog may be shown in response to intercepted click,
auxclick, contextmenu events (addEventListener). Perhaps
<https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm>
is too rude and some DOM elements should be created to render popup.
User choice may be saved to local storage.
The task is more tricky than what e.g. Google does to set link target to
"clean" URL after user click is taken into account to adjust page rank.
I have no idea how to achieve original URL for "Bookmark link" and
alternative front-end for "Open link in new tab".
That is why I believe
that a site that do not have restrictions imposed by FSF may be a better
option (more friendly to users).
Maybe. Note that Org does not have to follow GNU package
requirements. Org mode is not a GNU package after all.
I believed that the plan is to make Org mode a GNU package.
What about providing JS-free link as an additional alternative; not
fully replacing the original youtube/reddit/github link?
Once I tried figure out how to provide links to texinfo manuals in two
variants: emacs/shell command and https: link to HTML page. I failed to
find convenient variant that is not distracting.
P.S. E.g. Org and Markdown out of the box do not have means to mark
links so that they should not increase rank of target pages. (For me
content of a page usually is more important than the site where it is
published to decide if special attributes should be applied to the link.)
Sorry, I have no idea what you are talking about.
FSF tries to discourage using of sites with non-free JS. There is a
convention for links
<https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel#nofollow>
"Indicates that the current document's original author or publisher does
not endorse the referenced document."
Simple markup languages have no convenient way to use this attribute
selectively. (Actually I would use it to mark instructions that users
should not use.) This attribute is must have by default when user
comments are allowed without pre-moderation. Otherwise the site becomes
too attractive for spammers.