I want to make a user style sheet as a Chrome extension, which will override the default font-display CSS property with font-display: swap for any @font-face rule. It should work on any web page, regardless of the way of loading web fonts (<link rel="stylesheet">, @import, inline @font-face). How can I do that?
How to apply the CSS property 'font-display' globally?
1k views Asked by niutech At
1
There are 1 answers
Related Questions in CSS
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Is there any way to glow this bulb image like a real light bulb
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- How to increase quality of mathjax output?
- Hover animation resetting( seemingly reverting back to original CSS and then again to hover)when moving mouse horizontaly accross a part of an element
- Storing selected language in localStorage
- How to clip grid cell and provide scroll as well?
- KeyboardAvoidingView makes a messy the flexbox
- Rotate an object around another object in javascript
- Understanding Scroll Anchoring Behavoir
- how to use only block layout in this css code?
Related Questions in GOOGLE-CHROME-EXTENSION
- How to send data from content.js to background.js
- How can I make an array in my extension using information from a webpage?
- Is it possible to manipuate 3rd party Chrome Extensions Network Reqeuests?
- How to call a function in javascript for google chrome extension?
- Creating Chrome extension, but display text from Javascript file is not showing up on HTML's display. The HTML is the InnerHTML of another HTML file
- Error received when sending message across JS files: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist
- How do I highlight email address strings through a chrome extension?
- How do i load a Chrome extension when manifest.json is in a subfolder (app) instead of main folder
- Chrome extension MV3: persistent service worker die after wake up from hibernation
- Attempting to Bundle a Require Command For a Chrome Extension
- Embedded google map throws net::ERR_BLOCKED_BY_CLIENT in chromium(Brave) browser
- Reading the user's console errors from a chrome extension
- Persistent Browser Extension Reinstalls Itself: How to Eradicate ‘YOfficeStop’ Permanently on Windows 7?
- Can be their an extension to save pages in as offline in the browser itself?
- How can I modify javascript native fetch function from an extension?
Related Questions in FONT-FACE
- Is there @font-face support in gmail — via iOS Mail
- Wordpress font not loading in Safari
- How to update all label's text properties after changing default_font in Kivy?
- Property 'add' does not exist on type 'FontFaceSet'
- <stdin>:14:11: ERROR: [plugin: angular-css-resource] Could not resolve "open-sans/cyrillic-italic_300.woff2" issue while Update angular 16 to 17
- Change font-display - when I don't control @font-face stylesheet
- CSS ascent-override and descent-override workaround for Safari
- Use custom fonts when converting SVG to GraphicNode in Batik
- include a local custom font in bookdown
- Font-face icons not displayed correctly after jdk and struts update
- Add font in the browserleaks.com\fonts in the chromium browser code
- Does it make sense to create worker.js to handle promises?
- Detecting Warnings from new FontFace.load() / document.fonts.add()
- string of only numbers not parsed correctly by CSS
- Browser default font loads instead of fallback font
Related Questions in WEBFONTS
- Is there @font-face support in gmail — via iOS Mail
- Change font-display - when I don't control @font-face stylesheet
- Results of locating small objects with pyautogui change depending on browser's window size
- Performance issues on Chrome when painting many characters at 80-130px font-size range
- Font Assets not loaded on mobile
- Different browsers are using different fonts
- Browser default font loads instead of fallback font
- How to load google or custom fonts in emails
- I am not getting "CSS rules to specify families" in google fonts
- Nabla font doesn’t have the correct fill color on iPhones
- Partial display of text
- Create react app how to make font accessible on other devices
- Webfonts not working in mail loaded via stylesheet `link`
- @font-face doesn't seem to be displayed, although it is being downloaded
- Unable to Identify Icon Set Family
Related Questions in GOOGLE-WEBFONTS
- Fonts displaying strange + character
- Uploading Font as JSON on Server to call for WebApp: Specific Example for Dissolving font
- How to subset a Google icon font for optimal dowload size?
- google sheets, 2 font type name in 1 cell with script
- Google font not working on Mobile browser
- Loading fonts before rendering in React app
- why the same font at different web brower have different looks?
- How can I install Roboto font locally in my Hugo Wowchemy Site?
- FontFaceSet : check Could not resolve font family names including digits
- Variable Font Hosting, Syntax and why does Google not provide WOFF2 download for self hosting varibale fonts?
- How do I add custom fontstyle in react app
- wordpress 6 theme.json custom fonts are not working
- How do I get the full version of the Roboto font?
- How to use a web font in dev tools (Chrome)
- Google fonts not showing on Firefox (duplicated)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
One way is to use JavaScript in order to enumerate all
@font-facerules in a content script:Does anybody know the CSS-only way?