Fontiran
Improve font style for Persian users with premium fonts on fontiran.com
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"name": "Fontiran",
"version": "5.0.2",
"manifest_version": 3,
"description": "Improve font style for Persian users with premium fonts on fontiran.com",
"icons": {
"16": "assets/images/fontiran-16.png",
"128": "assets/images/fontiran-128.png"
},
"background": {
"service_worker": "assets/scripts/background.js"
},
"web_accessible_resources": [
{
"resources": [
"assets/scripts/jquery-3.5.1.min.js"
],
"matches": [
"*://*/*"
]
}
],
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"exclude_matches": [
"https://twitter.com/*",
"https://mail.google.com/*",
"https://www.youtube.com/*",
"https://*.wikipedia.org/*",
"https://*.google.com/*",
"https://web.whatsapp.com/*",
"https://trello.com/*"
],
"js": [
"assets/scripts/jquery-3.5.1.min.js",
"assets/scripts/anyPageLoad.js"
],
"run_at": "document_end",
"all_frames": true
},
{
"matches": [
"https://*.google.com/*"
],
"exclude_matches": [
"https://mail.google.com/*"
],
"js": [
"assets/scripts/sites/google/google.min.js"
],
"run_at": "document_end",
"all_frames": true
},
{
"matches": [
"https://twitter.com/*"
],
"js": [
"assets/scripts/sites/twitter/twitter.min.js"
],
"run_at": "document_start",
"all_frames": true
},
{
"matches": [
"https://web.whatsapp.com/*"
],
"js": [
"assets/scripts/sites/whatsapp/whatsapp.min.js"
],
"run_at": "document_start",
"all_frames": true
},
{
"matches": [
"https://trello.com/*"
],
"js": [
"assets/scripts/sites/trello/trello.min.js"
],
"run_at": "document_start",
"all_frames": true
},
{
"matches": [
"https://mail.google.com/*"
],
"js": [
"assets/scripts/sites/gmail/gmail.min.js"
],
"run_at": "document_end",
"all_frames": true
},
{
"matches": [
"https://www.youtube.com/*"
],
"js": [
"assets/scripts/sites/youtube/youtube.min.js"
],
"run_at": "document_end",
"all_frames": true
},
{
"matches": [
"https://*.wikipedia.org/*"
],
"js": [
"assets/scripts/sites/wikipedia/wikipedia.min.js"
],
"run_at": "document_end",
"all_frames": true
}
],
"permissions": [
"storage",
"activeTab",
"tabs"
],
"action": {
"default_icon": {
"19": "assets/images/fontiran-19.png",
"38": "assets/images/fontiran-48.png"
},
"default_title": "Fontiran Font Tester",
"default_popup": "popup.html"
},
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self';font-src 'self' data:;style-src 'self' 'unsafe-inline';"
}
}