Skip to content

Commit

Permalink
Merge pull request #56 from yusukesaitoh/release/1.5.3
Browse files Browse the repository at this point in the history
update version
  • Loading branch information
yusukesaitoh authored May 19, 2024
2 parents a4fec59 + 5018fd6 commit 2d3f3f9
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 58 deletions.
Binary file removed .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 6 additions & 11 deletions app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
]
}
"permissions": ["storage"]
}
91 changes: 61 additions & 30 deletions app/styles/contentscript.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}
}
}
}
Expand All @@ -59,6 +75,13 @@ body {
display: none;
}
}
div[role="dialog"] {
a[href$="/analytics"] {
span[data-testid="app-text-transition-container"] {
display: none;
}
}
}
}

&.isReactionNumberDetailHidden {
Expand All @@ -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"],
Expand All @@ -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"] {
Expand Down Expand Up @@ -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;
}
Expand Down
Binary file removed design/Screenshot_01_en.png
Binary file not shown.
Binary file removed design/Screenshot_01_ja.png
Binary file not shown.
Binary file removed design/Screenshot_02_en.png
Binary file not shown.
Binary file removed design/Screenshot_02_ja.png
Binary file not shown.
Binary file removed design/Screenshot_03_en.png
Binary file not shown.
Binary file removed design/Screenshot_03_ja.png
Binary file not shown.
Binary file removed design/Share_SNS_2_ja.png
Binary file not shown.
Binary file removed design/Share_SNS_ja.png
Binary file not shown.
Binary file removed design/calm-twitter_design.sketch
Binary file not shown.
Binary file removed design/icon-128.png
Binary file not shown.
Binary file removed design/icon-16.png
Binary file not shown.
Binary file removed design/icon-19.png
Binary file not shown.
Binary file removed design/icon-38.png
Binary file not shown.
Binary file removed design/promotion_l.jpg
Binary file not shown.
Binary file removed design/promotion_markey.jpg
Binary file not shown.
Binary file removed design/promotion_s.jpg
Binary file not shown.
File renamed without changes
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "calm-twitter",
"private": true,
"version": "1.5.1",
"packageManager": "[email protected]",
"version": "1.5.3",
"description": "This extension hides trending information from twitter timelines to make your mind calm.",
"scripts": {
"start": "npm run dev:chrome",
Expand Down Expand Up @@ -62,4 +61,4 @@
"webpack-stream": "7.x.x",
"yargs": "17.x.x"
}
}
}
11 changes: 0 additions & 11 deletions yarn.lock

This file was deleted.

0 comments on commit 2d3f3f9

Please sign in to comment.