Skip to content

Commit acaf5d6

Browse files
feat: hide "from **" text below link cards (#181)
1 parent 9c02343 commit acaf5d6

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

rspack.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ const config = defineConfig({
101101
new RunCommandsPlugin(),
102102
new CopyRspackPlugin({
103103
patterns: [
104+
{
105+
context: "./src/css/",
106+
from: "**/*",
107+
to: "chrome/css/"
108+
},
109+
{
110+
context: "./src/css/",
111+
from: "**/*",
112+
to: "firefox/css/"
113+
},
104114
{
105115
context: "./public/",
106116
from: "**/*",

src/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[data-testid="card.wrapper"]:has([data-testid="card.layoutLarge.media"]) + a {
2+
display: none;
3+
}

src/manifest/v2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"https://mobile.x.com/*",
1818
"https://pro.x.com/*"
1919
],
20-
"js": ["js/loader.js"]
20+
"js": ["js/loader.js"],
21+
"css": ["css/style.css"]
2122
}
2223
],
2324
"web_accessible_resources": ["js/main.js"]

src/manifest/v3.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"https://mobile.x.com/*",
2626
"https://pro.x.com/*"
2727
],
28-
"js": ["js/loader.js"]
28+
"js": ["js/loader.js"],
29+
"css": ["css/style.css"]
2930
}
3031
],
3132
"web_accessible_resources": [

0 commit comments

Comments
 (0)