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 best solutions below
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
- Firefox Windows / Linux inconstancies
- My @font-face not working at all
- How to load own font from CSS file into JavaFX application (I'm using now JDK 8u45)
- HTML custom @font-face not displaying correct font
- Loading font-face before img src
- google chrome undetermined behavior with persian font-face; some parts are showing as squares
- Using Font Awesome icons in Mailchimp campaign
- How to add custom font at wordpress
- How to use font-face on a local server (xampp)?
- css font face does not work awesomium.net
- How browser decides what to use: http or https (tinymce load of @font-face error)
- How actually @font-face work?
- Loading bootstrap font .eot in IE8
- Diacritics doesn't incorrect font with @font-face
- What can be the reason for @font-face failing to work?
Related Questions in WEBFONTS
- Avoid Symbols in Google font
- Failed to decode downloaded font on Heroku
- Woff causes missing letter
- Difference between EOT lite und EOT compressed
- strange issue with fonts in ionic app
- How to insert font awesome icon into text input?
- Internet Explorer iconfont problems
- Firefox rendering of OpenType font does not match the font specification
- using google web fonts on mac computer
- Text running into itself
- How can I apply webfonts to an email Header?
- Problems with Dynamic Text in SVG when font is not SVG
- Choosing a specific style of a font in CSS when developing locally
- Font Family not working
- extra bold font showing as regular bold in Chrome
Related Questions in GOOGLE-WEBFONTS
- Avoid Symbols in Google font
- Unicode character not rendered in webfont
- Google Web Fonts is not working on Android 4.2.2 with Khmer language
- Font looks different when site is server over https
- Can I use google web fonts api or any type of custom fonts in ebay?
- Including Web Fonts With Moovweb
- Google web-fonts huge during pre-load
- css code for alternate windows safari fonts
- Forcing (or highly encouraging) the browser to load webfonts directly from cache
- Latency with Local fonts vs Google fonts for @font-face
- @font-face with google web fonts
- How to apply the CSS property 'font-display' globally?
- (Google) Webfont only works locally
- ie9 doctype and fonts?
- Google webfonts and windows xp
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)
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?
One way is to use JavaScript in order to enumerate all
@font-facerules in a content script:Does anybody know the CSS-only way?