MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / isImgUrl

Function isImgUrl

scripts/showImageOnHoverLink.js:17–19  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

15 contentScript: {
16 onDocumentStart_: (details) => {
17 function isImgUrl(url) {
18 return url.match(/\.(jpeg|jpg|gif|png)$/) != null;
19 }
20
21 const id = "show-image-on-hover-link";
22 let div = document.createElement("div");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected