figure out why this code: """ // ==UserScript== // @name Mega Global FiraCode Injector +…
- User
figure out why this code:
"""
// ==UserScript== // @name Mega Global FiraCode Injector + MinFontSize // @version 2.0 // @description Inject Fira Code globally + enforce minimum font size on all websites // @match :/// // @grant GM_xmlhttpRequest // ==/UserScript==
(function () { 'use strict';
// Font URL for Fira Code const fontFiles = { 400: 'https://fonts.gstatic.com/s/firacode/v22/uU9NCBsR6Z2vfE9aq3bh3dSD.woff2', 700: 'https://fonts.gstatic.com/s/firacode/v22/uU9NCBsR6Z2vfE9aq3bh09SDulI.woff2', }; // Preload the fonts const fetchAndInjectFont = async (weight) => { return new Promise((resolve, reject) => { GM_xmlhttpRequest({ method: "GET", url: fontFiles[weight], responseType: "blob", onload: function(response) { if (response.status === 200) { const blobUrl = URL.createObjectURL(response.response); resolve(blobUrl); } else { reject(`Failed to load font weight ${weight}`); } } }); }); }; const injectFonts = async () => { const fontWeights = await Promise.all([ fetchAndInjectFont(400), fetchAndInjectFont(700), ]); const globalStyles = ` @font-face { font-family: 'Fira Code'; font-weight: 400; src: url('${fontWeights[0]}') format('woff2'); } @font-face { font-family: 'Fira Code'; font-weight: 700; src: url('${fontWeights[1]}') format('woff2'); } * { font-family: 'Fira Code', monospace !important; font-size: 18px !important; line-height: 1.4 !important; } `; // Inject the styles into the document const styleElement = document.createElement('style'); styleElement.textContent = globalStyles; document.head.appendChild(styleElement); }; // Start injecting fonts injectFonts().catch(console.error);})();
""".
does not functioning at this site:
"""
SearXNG
clear search
""".
yeah:
"""
Content-Security-Policy: The page’s settings blocked the loading of a resource (media-src) at data: because it violates the following directive: “default-src 'none'” searx.org Cookie “” has been rejected as third-party. css2 downloadable font: failed to start download (font-family: "Fira Code" style:normal weight:700 stretch:100 src index:0): content blocked source: https://fonts.gstatic.com/s/firacode/v22/uU9NCBsR6Z2vfE9aq3bh3dSD.woff2 downloadable font: failed to start download (font-family: "Fira Code" style:normal weight:400 stretch:100 src index:0): content blocked source: Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'” searx.org Content-Security-Policy: The page’s settings blocked the loading of a resource (font-src) at because it violates the following directive: “font-src 'self'”
- Assistant