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
- CSS Class is not applying to element (border width,color,and style attributes)
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- Positioning child at bottom of parent with scroll
- Play multiple audio files in a slider
- How to set text over image?
- Website zoomed out on Android default browser
- Writing/Overwriting to specific XML file from ASP.NET code behind
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- CSS: Preventing a property to affect on element until the end of transition
- Polygon Button with pure CSS
- transform-origin doesnt apply in safari
- show/hide multiple div tags at once and change the size of the remaining div tag
- Mask the image/maps/div (circle) using css and jquery
Related Questions in GOOGLE-CHROME-EXTENSION
- detect requests calls in a url similar to network in chrome dev tools
- How to get chrome extension ID in dev and production?
- Can I create and publish extension to the Chrome Store from my website?
- webkitMediaStream Object Type lost while using sendMessage in Chrome Extension
- Send sqlresult from background to content script
- Adding eventListeners to checkboxes in for loop in chrome-extension
- Is it possible for chrome to nest tabs within a tab?
- JQuery .find() failing on an .ajax() result
- Chrome Extensions - Copy Link Google Search
- Why my color customized theme isn't working? (PC)
- chrome extensions Uncaught ReferenceError: $ is not defined
- Are there any Chrome-specific techniques to scope/isolate CSS?
- Can Chrome extension content script access all tabs?
- How to register service workers to a redirected script URL
- My Chrome Extension Keeps Saying Its Corrupted
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?