Advertisement
Guest User

Web Annoyances -- CSS

a guest
Apr 8th, 2018
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.20 KB | None | 0 0
  1. /* I apply this in Stylus to *ALL* websites.  
  2.  * It removes various annoying crap, with minimal breakage (though no guarantees.)
  3.  */
  4.  
  5.  
  6. /* Generally annoying shit */
  7.  
  8. [id*="adpayload"],
  9. [id*="myModal"],
  10. a[href*="revcontent.com"],
  11. a[href*="taboola.com"] {
  12.     display: none !important;
  13. }
  14.  
  15. /* Cookie crap */
  16. [class*="cookieChoice"], [id*="cookieChoice"],
  17. [class*="cookiePolicy"], [id*="cookiePolicy"],
  18. [class*="catapult-cookie-bar"], [id*="catapult-cookie-bar"],
  19. [class*="cookie-warning"], [id*="cookie-warning"],
  20. [class*="cookies-policy"], [id*="cookies-policy"] {
  21.     display: none;
  22. }
  23.  
  24. /* Share crap */
  25. amp-social-share,
  26. .topbar-stay-informed,
  27. .widget.social,
  28. [class*="article__sharing"], [id*="article__sharing"],
  29. [class*="content-share"], [id*="content-share"],
  30. [class*="follow-bar"], [id*="follow-bar"],
  31. [class*="follow_us"], [id*="follow_us"],
  32. [class*="header-share"], [id*="header-share"],
  33. [class*="Layout__social"], [id*="Layout__social"],
  34. [class*="module-share"], [id*="module-share"],
  35. [class*="post-share"], [id*="post-share"],
  36. /* [class*="sharing"], [id*="sharing"], */
  37. /* [class*="social"], [id*="social"], */
  38. [class*="ReaderControls"], [id*="ReaderControls"],
  39. [class*="sharebar"], [id*="sharebar"],
  40. [class*="shareBar"], [id*="shareBar"],
  41. [class*="share-bar"], [id*="share-bar"],
  42. [class*="share-block"], [id*="share-block"],
  43. [class*="share-button"], [id*="share-button"],
  44. [class*="shareIcon"], [id*="shareIcon"],
  45. [class*="share-icon"], [id*="share-icon"],
  46. [class*="shareItem"], [id*="shareItem"],
  47. [class*="share-kit"], [id*="share-kit"],
  48. [class*="share-list"], [id*="share-list"],
  49. [class*="share__list"], [id*="share__list"],
  50. [class*="share-widget"], [id*="share-widget"],
  51. [class*="ShareWidget"], [id*="ShareWidget"],
  52. [class*="sharewrapper"], [id*="sharewrapper"],
  53. [class*="share-container"], [id*="share-container"],
  54. [class*="share-tool"], [id*="share-tool"],
  55. [class*="sharing-buttons"], [id*="sharing-buttons"],
  56. [class*="sharelink"], [id*="sharelink"],
  57. [class*="sharing-display"], [id*="sharing-display"],
  58. [class*="sharingtb"], [id*="sharingtb"],
  59. [class*="sharingtoolbar"], [id*="sharingtoolbar"],
  60. [class*="sharingrow"], [id*="sharingrow"],
  61. [class*="social-blocks"], [id*="social-blocks"],
  62. [class*="social-button"], [id*="social-button"],
  63. [class*="social-container"], [id*="social-container"],
  64. [class*="social-icon"], [id*="social-icon"],
  65. [class*="social-inline"], [id*="social-inline"],
  66. [class*="social_inline"], [id*="social_inline"],
  67. [class*="social-kit"], [id*="social-kit"],
  68. [class*="social-link"], [id*="social-link"],
  69. [class*="social-list"], [id*="social-list"],
  70. [class*="social-media-menu"], [id*="social-media-menu"],
  71. [class*="social-menu"], [id*="social-menu"],
  72. [class*="social-options"], [id*="social-options"],
  73. [class*="social-row"], [id*="social-row"],
  74. [class*="social-scroll"], [id*="social-scroll"],
  75. [class*="social-share"], [id*="social-share"],
  76. [class*="social-sharing"], [id*="social-sharing"],
  77. [class*="social-sidebar"], [id*="social-sidebar"],
  78. [class*="social_sidebar"], [id*="social_sidebar"],
  79. [class*="social-siderail"], [id*="social-siderail"],
  80. [class*="social_sticky"], [id*="social-sticky"],
  81. [class*="social_sticky"], [id*="social_sticky"],
  82. [class*="social-tool"], [id*="social-tool"],
  83. [class*="social_widget"], [id*="social_widget"],
  84. [class*="social-wrap"], [id*="social-wrap"],
  85. [class*="social-wrp"], [id*="social-wrp"],
  86. [class*="socialPanel"], [id*="socialPanel"],
  87. [class*="socials"], [id*="socials"],
  88. [class*="targeted-share"], [id*="targeted-share"],
  89. [class*="toaster"],[id*="toaster"],
  90. [class*="the_champ_sharing"], [id*="the_champ_sharing"],
  91. [class*="facebook-page-plugin"], [id*="facebook-page-plugin"] {
  92.     display: none;
  93.     outline: 4px solid red;
  94. }
  95.  
  96. /* Trying this -- 2018-01-23 */
  97. [class="header"] [class*="social"],
  98. [id="header"] [id*="social"] {
  99.     display: none;
  100. }
  101.  
  102. /* Ads, by adloader status */
  103. aside [data-role*="adloader"] {
  104.     display: none !important;
  105.     background: #fcc
  106. }
  107.  
  108. /* Interstitial nags */
  109.  
  110. [class*="promotion-inset"], [id*="promotion-inset"] {
  111.     display: none;
  112. }
  113.  
  114. /* Newsletter / email reqs */
  115. [class*="embed_signup"], [id*="embed_signup"],
  116. [class*="email-newsletter"], [id*="email-newsletter"],
  117. [class*="newsletter-signup"], [id*="newsletter-signup"],
  118. [class*="nudge"], [id*="nudge"] {
  119.     display: none;
  120. }
  121.  
  122. /* Upsell crap */
  123. [class*="upsell"], [id*="upsell"],
  124. [class*="Upsell"], [id*="Upsell"],
  125. [class*="UpSell"], [id*="UpSell"] {
  126.     display: none;
  127. }
  128.  
  129. /* Spinners */
  130. [class*="spinner"], [id*="spinner"] {
  131.     display: none;
  132. }
  133.  
  134. /* Horizontal scrollbars.  WTF asshats? */
  135. [class*="progress-bar"], [id*="progress-bar"],
  136. [class*="wtr-progress"], [id*="wtr-progress"] {
  137.     display: none;
  138. }
  139.  
  140.  
  141. /* gifs: So, it has come to this ... (xkcd) */
  142.  
  143. img[src$=".gif"] {
  144.     opacity: 0;
  145.     transition-delay: 3s;
  146.     transition-duration: 1s;
  147.     transition-timing-function: ease;
  148.     transition-property: opacity;
  149.     display: block;
  150. }
  151.  
  152. img[src$=".gif"]:hover {
  153.     transition-delay: 0.3s;
  154.     transition-duration: 0.3s;
  155.     opacity: 1;
  156. }
  157.  
  158. img[src$=".gif"]::after {
  159.     opacity: 1;
  160.     content: "gif";
  161.     display: block;
  162.     text-align: center;
  163.     color: #000;
  164.     background: #fff;
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement