diff --git a/apps/common.ts b/apps/common.ts index 97814bc4..1b67b4c9 100644 --- a/apps/common.ts +++ b/apps/common.ts @@ -100,7 +100,8 @@ export const $ = { anchor(text?: string): HTMLAnchorElement { const anchor = document.createElement("a"); // eslint-disable-next-line no-script-url - anchor.setAttribute("href", "javascript:void(0)"); // change link color. + anchor.removeAttribute("href"); + anchor.classList.add("gsb-anchor"); if (text !== undefined) { anchor.textContent = text; diff --git a/apps/styles/google.css b/apps/styles/google.css index 9b42e07f..e8a8657d 100644 --- a/apps/styles/google.css +++ b/apps/styles/google.css @@ -189,3 +189,7 @@ div[role="listitem"] { margin-left: 0 !important; white-space: normal !important; } + +.gsb-anchor { + cursor: pointer; +}