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

Function setSearchParameter

source/features/action-pr-link.tsx:8–12  ·  view source on GitHub ↗
(anchorElement: HTMLAnchorElement, name: string, value: string)

Source from the content-addressed store, hash-verified

6import observe from '../helpers/selector-observer.js';
7
8function setSearchParameter(anchorElement: HTMLAnchorElement, name: string, value: string): void {
9 const parameters = new URLSearchParams(anchorElement.search);
10 parameters.set(name, value);
11 anchorElement.search = String(parameters);
12}
13
14async function addForRepositoryActions(prLink: HTMLAnchorElement): Promise<void> {
15 const prNumber = prLink.textContent.slice(1);

Callers 2

addForRepositoryActionsFunction · 0.85
addForPrFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected