MCPcopy Create free account
hub / github.com/hoothin/UserScripts / createBlur

Function createBlur

BingBgForBaidu/BingBgForGoogle.user.js:289–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 });
288 let blurStyle;
289 function createBlur() {
290 if (!blurStyle) {
291 blurStyle = document.createElement("style");
292 blurStyle.innerText = `
293 body::before{
294 content: " ";
295 display: block;
296 position: absolute;
297 left: 0;
298 top: 0;
299 right: 0;
300 bottom: 0;
301 background: inherit;
302 filter: blur(5px);
303 z-index: -1;
304 }`;
305 }
306 document.head.appendChild(blurStyle);
307 }
308 if (GM_getValue("blur")) {
309 createBlur();
310 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected