MCPcopy Index your code
hub / github.com/refined-github/refined-github / saveOriginalHref

Function saveOriginalHref

source/features/last-update-sort.tsx:11–13  ·  view source on GitHub ↗
(link: HTMLAnchorElement)

Source from the content-addressed store, hash-verified

9
10/** Keep the original URL on the element so that `shorten-links` can use it reliably #5890 */
11export function saveOriginalHref(link: HTMLAnchorElement): void {
12 link.dataset.originalHref ??= link.href;
13}
14
15async function updateLink(link: HTMLAnchorElement): Promise<void> {
16 if (link.host !== location.host) {

Callers 2

addDateParameterToLinkFunction · 0.85
updateLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected