Skip to content

Commit

Permalink
feat(snippets): add 3 element hiding snippets (#531)
Browse files Browse the repository at this point in the history
Co-authored-by: Nam Anh <phamnamanh25@gmail.com>
  • Loading branch information
Resxt and kyrie25 committed Jul 9, 2023
1 parent 510aa3c commit 31e3643
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/assets/snippets/hide-podcast-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions src/resources/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,40 @@ export default [
"code": ".x-progressBar-progressBarBg { height: 100% !important; } .x-progressBar-sliderArea { height: 100% !important; } .x-progressBar-fillColor { height: 100% !important; }",
"preview": "resources/assets/snippets/thicker-bars.png",
},
{
"title": "Hide friends activity button",
"description": "Hides the friends activity button next to your profile picture",
"code": "button.encore-over-media-set.main-topBar-buddyFeed {display: none;}",
"preview": "resources/assets/snippets/hide-friends-activity-button.png",
},
{
"title": "Fullscreen hide playing from",
"description": "Hides the playing from card while in fullscreen view",
"code": ".npv-header.npv-header {display: none;}",
"preview": "resources/assets/snippets/fullscreen-hide-playing-from.png",
},
{
"title": "Fullscreen hide next up",
"description": "Hides the next up card while in fullscreen view (appears shortly before switching to the next song)",
"code": ".npv-up-next.fade-in-and-out-transition-enter-done {display: none;}",
"preview": "resources/assets/snippets/fullscreen-hide-next-up.png",
},
{
"title": "Hide podcast tab",
"description": "Hides the podcast tab in Your Library",
"code": "[href='/collection/podcasts'] {display: none;}",
"preview": "resources/assets/snippets/hide-podcast-tab.png",
},
{
"title": "Hide profile username",
"description": "Hides your username next to your profile picture",
"code": "span.Type__TypeElement-sc-goli3j-0.TypeElement-mestoBold-type.main-userWidget-displayName {display: none !important;}",
"preview": "resources/assets/snippets/hide-profile-username.png",
},
{
"title": "Hide now playing view button",
"description": "Hides the now playing view button in the playbar (only triggers after you click somewhere/do something)",
"code": "button.Button-sc-1dqy6lx-0.Button-sm-16-buttonTertiary-iconOnly-useBrowserDefaultFocusStyle.main-genericButton-button:has(span):has(svg):has(path[d='M11.196 8 6 5v6l5.196-3z']) {display: none;}",
"preview": "resources/assets/snippets/hide-now-playing-view-button.png",
},
];

0 comments on commit 31e3643

Please sign in to comment.