Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Mar 23, 2023
1 parent 5b4cb4a commit 94fe084
Show file tree
Hide file tree
Showing 42 changed files with 7,001 additions and 1,752 deletions.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions content-scripts/extension-context/init.js → JS/extension/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ chrome.runtime.sendMessage({
});

extension.inject([
'/content-scripts/website-context/core.js',
'/content-scripts/website-context/functions.js',
'/content-scripts/website-context/youtube-features/appearance.js',
'/content-scripts/website-context/youtube-features/themes.js',
'/content-scripts/website-context/youtube-features/player.js',
'/content-scripts/website-context/youtube-features/playlist.js',
'/content-scripts/website-context/youtube-features/channel.js',
'/content-scripts/website-context/youtube-features/shortcuts.js',
'/content-scripts/website-context/youtube-features/blacklist.js',
'/content-scripts/website-context/youtube-features/settings.js',
'/content-scripts/website-context/init.js',
'/content-scripts/website-context/mutations.js'
'/JS/web-accessible/core.js',
'/JS/web-accessible/functions.js',
'/JS/web-accessible/www.youtube.com/appearance.js',
'/JS/web-accessible/www.youtube.com/themes.js',
'/JS/web-accessible/www.youtube.com/player.js',
'/JS/web-accessible/www.youtube.com/playlist.js',
'/JS/web-accessible/www.youtube.com/channel.js',
'/JS/web-accessible/www.youtube.com/shortcuts.js',
'/JS/web-accessible/www.youtube.com/blacklist.js',
'/JS/web-accessible/www.youtube.com/settings.js',
'/JS/web-accessible/init.js',
'/JS/web-accessible/mutations.js'
], function () {
extension.ready = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,9 @@ html[data-page-type=video][it-transcript='true'][it-sidebar-left='true']:not([it
{ left:-10px !important;}
}

/* ADS */

html[it-player-ads="block_all"] *[target-id*='engagement-panel-ads'] {display: none !important;}
html[it-player-ads="block_all"] .ytd-ad-slot-renderer {display: none !important;}

/*--------------------------------------------------------------
# RELATED VIDEOS
--------------------------------------------------------------*/

html[it-related-videos='hidden'] #related > ytd-watch-next-secondary-results-renderer > #items,
html[it-related-videos=hidden] div#secondary div#panels,
html[it-related-videos=hidden] div#secondary div#donation-shelf {
Expand Down Expand Up @@ -105,7 +99,6 @@ html[it-related-videos='collapsed'] #related > ytd-watch-next-secondary-results-
/*--------------------------------------------------------------
# NO PAGE MARGIN
--------------------------------------------------------------*/

html[data-page-type=video][it-no-page-margin='true'] ytd-watch-flexy:not([fullscreen]) #columns.ytd-watch-flexy,
html[data-page-type=video][it-no-page-margin='true'] ytd-watch-flexy:not([fullscreen]) #primary.ytd-watch-flexy {
max-width: 99% !important; margin: 1px !important; }
Expand Down Expand Up @@ -137,7 +130,6 @@ html[data-page-type=video][it-no-page-margin='true'] ytd-watch-flexy:not([fullsc
/*--------------------------------------------------------------
# MOVE SIDEBAR LEFT
--------------------------------------------------------------*/

html[it-sidebar-left='true'] #columns>#primary,
html[it-sidebar-left='true'] #head>#upnext
{
Expand All @@ -149,15 +141,13 @@ html[it-sidebar-left='true'] #columns>#secondary {margin-left: calc(0.5vw + 4px)
/*--------------------------------------------------------------
# MOVE THUMBNAILS RIGHT
--------------------------------------------------------------*/

html[it-thumbnails-right='true'] ytd-watch-next-secondary-results-renderer ytd-thumbnail {
order: 7 !important;
}

/*--------------------------------------------------------------
# HIDE THUMBNAILS
--------------------------------------------------------------*/

html[it-thumbnails-hide='true'] ytd-watch-next-secondary-results-renderer ytd-thumbnail,
html[it-thumbnails-hide='true'] ytd-watch-next-secondary-results-renderer ytd-playlist-thumbnail {
display: none !important;
Expand All @@ -166,15 +156,13 @@ html[it-thumbnails-hide='true'] ytd-watch-next-secondary-results-renderer ytd-pl
/*--------------------------------------------------------------
# LIVECHAT
--------------------------------------------------------------*/

html[it-livechat='hidden'] ytd-live-chat-frame#chat {
display: none !important;
}

/*--------------------------------------------------------------
# HIDE PLAYLIST
--------------------------------------------------------------*/

html[it-hide-playlist='true'] ytd-playlist-panel-renderer#playlist {
display: none !important;
}
Loading

0 comments on commit 94fe084

Please sign in to comment.