MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / removePreloadedLink

Function removePreloadedLink

popup-window/popup-window.user.js:602–607  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

600 }
601 }
602 function removePreloadedLink(link) {
603 const preloadElement = document.querySelector(`link[href="${link}"]`)
604 if (preloadElement) {
605 document.head.removeChild(preloadElement)
606 }
607 }
608 function closePopupOnScroll() {
609 if (state.popupWindow && !state.popupWindow.closed) {
610 closePopupWindow()

Callers 1

closePopupWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected