Skip to content

Commit

Permalink
feat: hide suggested-for-you block
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Sep 11, 2024
1 parent 1b6a9c6 commit e7c0973
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions pages/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ <h1>Blueswan options</h1>
<visibility-select name="messages"></visibility-select>
<visibility-select name="notifications"></visibility-select>
<visibility-select name="notifications-list" without="hover"></visibility-select>
<visibility-select name="suggested-for-you" without="hover"></visibility-select>
<visibility-select name="blueswan" title="💙🦢" without="hover"></visibility-select>

<script defer src="../scripts/common.js"></script>
Expand Down
1 change: 1 addition & 0 deletions scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const names = [
"messages",
"notifications",
"notifications-list",
"suggested-for-you",
"blueswan",
];

Expand Down
11 changes: 11 additions & 0 deletions styles/content_scripts.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ body.notifications-list-hide div[data-testid="notificationsScreen"] div[role="li
width: 1px;
}

/* suggested-for-you */
body.suggested-for-you-hide
div.css-175oi2r:has(
> div.css-175oi2r
> div.css-175oi2r:nth-child(2)
> div.css-175oi2r:nth-child(2)
> a.css-146c3p1.r-1loqt21[href="/search"][aria-label="Browse more suggestions"]
) {
display: none;
}

/* blueswan emoji */
body.blueswan-show a.r-bplmwz.r-f727ji.r-19554kt {
&::after {
Expand Down

0 comments on commit e7c0973

Please sign in to comment.