Skip to content

Instantly share code, notes, and snippets.

@EndangeredMassa
Last active November 4, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EndangeredMassa/e13209f3f110ac470265 to your computer and use it in GitHub Desktop.
Save EndangeredMassa/e13209f3f110ac470265 to your computer and use it in GitHub Desktop.
Custom CSS/JS for Sites

Custom CSS/JS for Sites

All sites use Styler to customize CSS and JS unless otherwise specified.

.article-sidebar,
.sideshare-wrapper,
.sharetools,
.h-fixed,
.pager,
#share-article-below
{display: none !important;}
/* slimmer nav */
.nav,
.header-search,
.header-search-toggle,
.header-logo-tt-desktop
{ display: none !important; }
.header { height: 80px !important; }
/* remove ads */
.main-article-share-counts,
.share-bar-desktop,
.sign-up-wrapper
{ display: none !important; }
/* remove extra widgets */
.comments-center,
.dig-deeper,
#network-coverage,
.resources-bar,
.locking-left-bar
{ display: none !important; }
/* hide login requiring modal */
#login, .modal-dialog.modal-lg, .modal-backdrop { display: none !important; }
/* hide right column with trending, people you may know, and suggested posts */
#rightCol { display: none !important; }
/* hide unused nav sections */
#appsNav,#groupsNav,#interestsNav { display: none !important; }
/* render tabs as 2 spaces wide */
.js-file-line { tab-size: 2; }
.see-also,
.sidebar-inset,
#share-nav,
#newsletter-signup,
#more-in-channel
{ display: none; }
.videocontent-wrapper,
.sticky_social,
.page-sidebar,
.article-body iframe,
.trial-link,
#discussion
{ display: none !important; }
#ribbon,
.trending-module,
#whats-next
{ display: none; }
/* remove overlay */
.mfp-wrap, .mfp-bg { display: none !important; }
/* remove banner */
#banner { display: none; }
.primary-container { margin-top: 26px; }
/* hide unwanted sections */
.widget_omg_related_posts { display: none !important; }
.sharedaddy { display: none; }
.tag-links { display: none; }
.sidebar { display: none; }
.colophon { display: none; }
.global-navigation { display: none; }
.Nags {display: none;}
.ModalManager {display: none}
// Reddit Enhancement Suite!
// http://redditenhancementsuite.com/download-chrome.html
/* auto expand description */
.truncatedAudioInfo__wrapper { max-height: 9999px !important; }
.truncatedAudioInfo__collapse { display: none !important; }
/* hide right side bar */
.l-sidebar-right { display: none !important; }
/* hide obnoxious follow/tumblr fixed buttons */
.tmblr-iframe--controls { display: none !important; }
/* hide obnoxious follow fixed footer button */
.tmblr-iframe--follow-teaser { display: none !important; }
/* hide like notes */
.notes { display: none !important; }
/* hide search box */
.search { display: none !important; }
/* kill hero element */
.creative-hero { display: none; }
/* fill image box when fails to load*/
.thumb .cap img {width: 240px !important; height: 136px !important; }
/* hide notifications */
#noty_bottomCenter_layout_container { display: none !important; }
/* hide recommended channels */
.js-recommended-channels { display: none !important; }
.wtf-module {display: none !important;}
.Footer {display: none !important;}
.Trends {display: none !important;}
.js-moments-tab {display: none !important;}
/* Hide the "added to watch later" overlay on link */
.appbar-guide-notification { display: none !important; }
$(function(){
function later(f){
setTimeout(f, 5000);
}
// expand descriptions on video list page
$('.yt-ui-ellipsis,.yt-ui-ellipsis-2')
.removeClass('yt-ui-ellipsis')
.removeClass('yt-ui-ellipsis-2');
// expand description on video page
$('.yt-uix-expander-collapsed')
.removeClass('yt-uix-expander-collapsed')
// turn annotations off
var settings = document.querySelectorAll(".ytp-settings-button").item(0);
settings.click();
settings.click();
later(function(){
var checkbox = document.querySelectorAll("div[role='menuitemcheckbox']")[1];
if(checkbox.getAttribute("aria-checked") === "true") {
checkbox.click();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment