Update bookmarklet text

This commit is contained in:
Nicholas Jitkoff 2022-07-28 09:36:23 -04:00
parent 66c7b917f4
commit a019b03b74
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ loadSyle(script.replace("js", "css")).then(() => {
el("div", {className:"description"}, params.info?.d ?? ""),
el("a", {className:"bookmarklet", href:url}, el("span", {className:"capsule", innerText:"" + title || "Bookmarklet"})),
el("p", {id:"emoji", innerText:"☝️"}),
el("p", {innerHTML:`This page contains a <a target="_blank" href="https://en.wikipedia.org/wiki/Bookmarklet">bookmarklet</a>.`}),
el("p", {innerHTML:`This page contains a bookmarklet. (<a target="_blank" href="https://en.wikipedia.org/wiki/Bookmarklet">learn more</a>)`}),
el("p", {className:"", innerText:`Drag this bookmarklet to your ${managerName} to use it.`}),
el("p", {className:"hint desktop", innerText:`(Hit ${cmdKey} to toggle the ${managerName} bar)`}),

View file

@ -21,7 +21,7 @@ export default async (request, context) => {
const ua = request.headers.get("user-agent");
let url = new URL(request.url);
let path = url.pathname;
let geo = context.geo.city + ", " + context?.geo?.subdivision?.code + ", " + context?.geo?.country?.code
let geo = context?.geo?.city + ", " + context?.geo?.subdivision?.code + ", " + context?.geo?.country?.code
let uaArray = Deno.env.get("UA_ARRAY")?.split(",") || [];
let uaMatch = uaArray.some(a => ua.indexOf(a) != -1);