Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
fix: Vazirmatn font not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-kokabi committed Feb 22, 2024
1 parent a0d22f0 commit bb39dfe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 11 additions & 1 deletion src/contents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ export const config = {
matches: ["https://twitter.com/*", "https://x.com/*"]
}


if (!document.getElementById('twifiner-font-vazirmatn')) {
const link = document.createElement("link");
link.id = "twifiner-font-vazirmatn";
link.rel = "stylesheet";
link.href = "https://fonts.googleapis.com/css2?family=Vazirmatn:[email protected]&display=swap";
document.head.appendChild(link);
}


const items = [
//global
{
Expand Down Expand Up @@ -604,7 +614,7 @@ const items = [
xpath: '//div[@data-testid="inlinePrompt"]/ancestor::div[@data-testid="cellInnerDiv"]',

applyStyle: async (element) => {
try {
try {
element.style.display = "none";
} catch (error) {}
}
Expand Down
4 changes: 1 addition & 3 deletions src/contents/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:[email protected]&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

0 comments on commit bb39dfe

Please sign in to comment.