diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz deleted file mode 100644 index d4b6c86..0000000 Binary files a/.yarn/install-state.gz and /dev/null differ diff --git a/README.md b/README.md index 917f8be..6fb6da9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This extension hides trending information from twitter timelines to make your mind calm. この拡張機能はTwitterのタイムラインからトレンド情報を隠して、あなたの心を穏やかにしてくれます。 -![](design/Share_SNS_en.png) +![](images/about.png) 1. Hide "Explore" tab from the left column 2. Hide trends and who to follow from the right column diff --git a/app/manifest.json b/app/manifest.json index f47f9fb..f603491 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -2,7 +2,7 @@ "name": "__MSG_appName__", "short_name": "__MSG_appShortName__", "description": "__MSG_appDescription__", - "version": "1.5.2", + "version": "1.5.3", "manifest_version": 3, "default_locale": "en", "icons": { @@ -25,19 +25,14 @@ { "matches": [ "https://x.com/*", + "https://mobile.x.com/*", "https://twitter.com/*", "https://mobile.twitter.com/*" ], - "js": [ - "scripts/contentscript.js" - ], - "css": [ - "styles/contentscript.css" - ], + "js": ["scripts/contentscript.js"], + "css": ["styles/contentscript.css"], "run_at": "document_end" } ], - "permissions": [ - "storage" - ] -} \ No newline at end of file + "permissions": ["storage"] +} diff --git a/app/styles/contentscript.scss b/app/styles/contentscript.scss index 936641e..d16b45d 100644 --- a/app/styles/contentscript.scss +++ b/app/styles/contentscript.scss @@ -7,7 +7,7 @@ body { &.isTrendsHidden { div[data-testid="sidebarColumn"] > div > div > div > div > div.css-175oi2r { - > div:not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-child(3)):not(.r-195d4m8):not(.r-ahm1il):not(.r-1h3ijdo):not(.r-1mwlp6a):not(.r-1ninfw3) { + > div:not(:first-child):not(:last-child):not(:nth-child(2)):not(.r-195d4m8):not(.r-ahm1il):not(.r-1h3ijdo):not(.r-1mwlp6a):not(.r-1ninfw3) { display: none !important; } @@ -28,19 +28,35 @@ body { } &.isReactionNumberHidden { - div[data-testid="primaryColumn"] article:not(:hover) div[role="group"] div[role="button"] span { - opacity: 0 !important; - transition-property: transform, opacity !important; - } - - article[data-testid="tweet"] div:has(>div>div>div>div>a>time) ~ div > div > div:has(>span) { - display: none; + div[data-testid="primaryColumn"] article:not(:hover) button { + &[data-testid="reply"] , + &[data-testid="retweet"] , + &[data-testid="unretweet"] , + &[data-testid="like"] , + &[data-testid="unlike"], + &[data-testid="bookmark"], + &[data-testid="removeBookmark"] { + span[data-testid="app-text-transition-container"] { + opacity: 0 !important; + transition-property: transform, opacity !important; + } + } } &.isReactionNumberAlwaysHidden { - div[data-testid="primaryColumn"] article div[role="group"] div[role="button"] span { - opacity: 0 !important; - transition-property: transform, opacity !important; + div[data-testid="primaryColumn"] article button { + &[data-testid="reply"] , + &[data-testid="retweet"] , + &[data-testid="unretweet"] , + &[data-testid="like"] , + &[data-testid="unlike"], + &[data-testid="bookmark"], + &[data-testid="removeBookmark"] { + span[data-testid="app-text-transition-container"] { + opacity: 0 !important; + transition-property: transform, opacity !important; + } + } } } } @@ -59,6 +75,13 @@ body { display: none; } } + div[role="dialog"] { + a[href$="/analytics"] { + span[data-testid="app-text-transition-container"] { + display: none; + } + } + } } &.isReactionNumberDetailHidden { @@ -71,15 +94,19 @@ body { } div[role="dialog"] { - div[role="group"]:not(:hover) div[role="button"] { - &[data-testid="reply"] span[data-testid="app-text-transition-container"], - &[data-testid="retweet"] span[data-testid="app-text-transition-container"], - &[data-testid="unretweet"] span[data-testid="app-text-transition-container"], - &[data-testid="like"] span[data-testid="app-text-transition-container"], - &[data-testid="unlike"] span[data-testid="app-text-transition-container"] + div[role="group"]:not(:hover) button { + &[data-testid="reply"], + &[data-testid="retweet"], + &[data-testid="unretweet"], + &[data-testid="like"], + &[data-testid="unlike"], + &[data-testid="bookmark"], + &[data-testid="removeBookmark"] { - opacity: 0 !important; - transition-property: transform, opacity !important; + span[data-testid="app-text-transition-container"] { + opacity: 0 !important; + transition-property: transform, opacity !important; + } } } a[href$="/retweets"]:not(:hover) span[data-testid="app-text-transition-container"], @@ -99,17 +126,21 @@ body { } div[role="dialog"] { - div[role="group"] div[role="button"] { - &[data-testid="reply"] span[data-testid="app-text-transition-container"], - &[data-testid="retweet"] span[data-testid="app-text-transition-container"], - &[data-testid="unretweet"] span[data-testid="app-text-transition-container"], - &[data-testid="like"] span[data-testid="app-text-transition-container"], - &[data-testid="unlike"] span[data-testid="app-text-transition-container"] + div[role="group"] button { + &[data-testid="reply"], + &[data-testid="retweet"], + &[data-testid="unretweet"], + &[data-testid="like"], + &[data-testid="unlike"], + &[data-testid="bookmark"], + &[data-testid="removeBookmark"] { - opacity: 0 !important; - transition-property: transform, opacity !important; + span[data-testid="app-text-transition-container"] { + opacity: 0 !important; + transition-property: transform, opacity !important; + } } - } + } a[href$="/retweets"] span[data-testid="app-text-transition-container"], a[href$="/retweets/with_comments"] span[data-testid="app-text-transition-container"], a[href$="/likes"] span[data-testid="app-text-transition-container"] { @@ -187,8 +218,8 @@ body { } &.isWhoToFollowHidden { - div[data-testid="primaryColumn"] > div > div > div > section > div > div > div > div > div { - div[data-testid="UserCell"], + div[data-testid="primaryColumn"] > div > div > div > div > section > div > div > div > div { + *[data-testid="UserCell"], a[href*="/i/connect_people?user_id="] { display: none; } diff --git a/design/Screenshot_01_en.png b/design/Screenshot_01_en.png deleted file mode 100644 index 960fdfb..0000000 Binary files a/design/Screenshot_01_en.png and /dev/null differ diff --git a/design/Screenshot_01_ja.png b/design/Screenshot_01_ja.png deleted file mode 100644 index 37d3b1f..0000000 Binary files a/design/Screenshot_01_ja.png and /dev/null differ diff --git a/design/Screenshot_02_en.png b/design/Screenshot_02_en.png deleted file mode 100644 index e622f59..0000000 Binary files a/design/Screenshot_02_en.png and /dev/null differ diff --git a/design/Screenshot_02_ja.png b/design/Screenshot_02_ja.png deleted file mode 100644 index 47b0ee8..0000000 Binary files a/design/Screenshot_02_ja.png and /dev/null differ diff --git a/design/Screenshot_03_en.png b/design/Screenshot_03_en.png deleted file mode 100644 index b12cb03..0000000 Binary files a/design/Screenshot_03_en.png and /dev/null differ diff --git a/design/Screenshot_03_ja.png b/design/Screenshot_03_ja.png deleted file mode 100644 index 18e45f5..0000000 Binary files a/design/Screenshot_03_ja.png and /dev/null differ diff --git a/design/Share_SNS_2_ja.png b/design/Share_SNS_2_ja.png deleted file mode 100644 index 91e80f4..0000000 Binary files a/design/Share_SNS_2_ja.png and /dev/null differ diff --git a/design/Share_SNS_ja.png b/design/Share_SNS_ja.png deleted file mode 100644 index 1de1d8d..0000000 Binary files a/design/Share_SNS_ja.png and /dev/null differ diff --git a/design/calm-twitter_design.sketch b/design/calm-twitter_design.sketch deleted file mode 100644 index 2d88620..0000000 Binary files a/design/calm-twitter_design.sketch and /dev/null differ diff --git a/design/icon-128.png b/design/icon-128.png deleted file mode 100644 index 8d82793..0000000 Binary files a/design/icon-128.png and /dev/null differ diff --git a/design/icon-16.png b/design/icon-16.png deleted file mode 100644 index 5ac295c..0000000 Binary files a/design/icon-16.png and /dev/null differ diff --git a/design/icon-19.png b/design/icon-19.png deleted file mode 100644 index 8e73d00..0000000 Binary files a/design/icon-19.png and /dev/null differ diff --git a/design/icon-38.png b/design/icon-38.png deleted file mode 100644 index 00b600b..0000000 Binary files a/design/icon-38.png and /dev/null differ diff --git a/design/promotion_l.jpg b/design/promotion_l.jpg deleted file mode 100644 index 04f41f9..0000000 Binary files a/design/promotion_l.jpg and /dev/null differ diff --git a/design/promotion_markey.jpg b/design/promotion_markey.jpg deleted file mode 100644 index 9532c4c..0000000 Binary files a/design/promotion_markey.jpg and /dev/null differ diff --git a/design/promotion_s.jpg b/design/promotion_s.jpg deleted file mode 100644 index 9329200..0000000 Binary files a/design/promotion_s.jpg and /dev/null differ diff --git a/design/Share_SNS_en.png b/images/about.png similarity index 100% rename from design/Share_SNS_en.png rename to images/about.png diff --git a/package-lock.json b/package-lock.json index e8d9eb0..70b61df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "calm-twitter", - "version": "1.3.0", + "version": "1.5.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "calm-twitter", - "version": "1.3.0", + "version": "1.5.3", "devDependencies": { "@types/chrome": "^0.x.x", "babel-cli": "6.x.x", diff --git a/package.json b/package.json index 4217264..503c6f2 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { "name": "calm-twitter", "private": true, - "version": "1.5.1", - "packageManager": "yarn@4.0.0-rc.43", + "version": "1.5.3", "description": "This extension hides trending information from twitter timelines to make your mind calm.", "scripts": { "start": "npm run dev:chrome", @@ -62,4 +61,4 @@ "webpack-stream": "7.x.x", "yargs": "17.x.x" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 3093449..0000000 --- a/yarn.lock +++ /dev/null @@ -1,11 +0,0 @@ -# This file is generated by running "yarn install" inside your project. -# Manual changes might be lost - proceed with caution! - -__metadata: - version: 7 - -"calm-twitter@workspace:.": - version: 0.0.0-use.local - resolution: "calm-twitter@workspace:." - languageName: unknown - linkType: soft