Hello there,
I have a JavaScipt file as “content_scripts”, I want to add some fonts, I created a Css file and used Font-face to add fonts, then i edited the “content_scripts” as you see bellow :
Thank you so much Niklas,
But it didn’t work for me. maybe it’s better to share the source code with you.
this is the js file : https://github.com/QWERTYUIOPYOZO/ReFont/blob/master/src/refont.js
it uses the system files to change the web pages fonts but i want to define fonts with css Font-Face to use in extension. But all the ways I tried, never answered.
Thank you so much bro <3
excuse me, but i don’t understand JavaScript. so i don’t know where to paste these codes and where i should set the font files.
thanks again for helping.