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

Function getAlternateUrl

source/features/one-click-diff-options.tsx:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15function getAlternateUrl(): string {
16 const url = new URL(location.href);
17
18 if (isHidingWhitespace()) {
19 url.searchParams.delete('w');
20 } else {
21 url.searchParams.set('w', '1');
22 }
23
24 return url.href;
25}
26
27function addShortcut(signal: AbortSignal): void {
28 registerHotkey('d w', getAlternateUrl(), {signal});

Callers 2

addShortcutFunction · 0.85
attachButtonsFunction · 0.85

Calls 2

isHidingWhitespaceFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected