Skip to content

Commit b850523

Browse files
feat: support X.com (#68)
1 parent 0193762 commit b850523

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

index.user.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script/addUserScriptComment.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const user_script_metadata = `// ==UserScript==
1010
// @author Robot-Inventor (ろぼいん / @keita_roboin)
1111
// @match https://twitter.com/*
1212
// @match https://mobile.twitter.com/*
13-
// @match https://tweetdeck.twitter.com/*
13+
// @match https://pro.twitter.com/*
14+
// @match https://x.com/*
15+
// @match https://mobile.x.com/*
16+
// @match https://pro.x.com/*
1417
// @icon https://raw.githubusercontent.com/Robot-Inventor/hide-view-count/main/public/image/icon512.png
1518
// @downloadURL https://raw.githubusercontent.com/Robot-Inventor/hide-view-count/main/index.user.js
1619
// @updateURL https://raw.githubusercontent.com/Robot-Inventor/hide-view-count/main/index.user.js

src/manifest/v2.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
},
1212
"content_scripts": [
1313
{
14-
"matches": ["https://twitter.com/*", "https://mobile.twitter.com/*", "https://pro.twitter.com/*"],
14+
"matches": [
15+
"https://twitter.com/*",
16+
"https://mobile.twitter.com/*",
17+
"https://pro.twitter.com/*",
18+
"https://x.com/*",
19+
"https://mobile.x.com/*",
20+
"https://pro.x.com/*"
21+
],
1522
"js": ["js/index.js"]
1623
}
1724
],

src/manifest/v3.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
},
1212
"content_scripts": [
1313
{
14-
"matches": ["https://twitter.com/*", "https://mobile.twitter.com/*", "https://pro.twitter.com/*"],
14+
"matches": [
15+
"https://twitter.com/*",
16+
"https://mobile.twitter.com/*",
17+
"https://pro.twitter.com/*",
18+
"https://x.com/*",
19+
"https://mobile.x.com/*",
20+
"https://pro.x.com/*"
21+
],
1522
"js": ["js/index.js"]
1623
}
1724
],

0 commit comments

Comments
 (0)