Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install Tampermonkey
- Homepage: https://www.tampermonkey.net/
- Choose Browser
- Add Ad Block Script to Tampermonkey
- Github: https://github.com/pixeltris/TwitchAdSolutions
- Navigate to the "video-swap-new" folder and import the "video-swap-new.user.js" file.
- ----
- Install Stylus
- Chrome Store: https://chromewebstore.google.com/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en
- Firefox Addon: https://addons.mozilla.org/en-US/firefox/addon/styl-us/
- Or Github: https://github.com/openstyles/stylus/releases
- Open the Stylus Menu and select "Mange Styles"
- Click on "Import" on the left and paste the following (save it as "Ad Free Twitch"):
- @-moz-document domain("twitch.tv") {
- .resize-detector,
- div[class*="giftExpirationCallout"]
- {
- display: none !important;
- }
- /* Top Nav - Get Turbo */
- .top-nav__menu>.Layout-sc-1xcs6mc-0:nth-of-type(3)>.Layout-sc-1xcs6mc-0:nth-of-type(6)
- {
- display: none !important;
- }
- /* Themed Ads */
- div.subtember-gradient, div.holiday-gradient,
- .ubo-overlay
- {
- display: none !important;
- }
- #directory-banner[data-a-target="directory-banner-ad-slot"]
- {
- display: none !important;
- }
- /* Inline Stream Overlay Ads */
- .stream-display-ad__wrapper,
- div[data-a-target="outstream-ax-overlay"],
- #directory-rectangle:has(.online-video-ad-container)
- {
- display: none !important;
- }
- div[class^="ScTransitionBase"]:has(div[id="amazon-companion-ad-div"]),
- div[class^="InjectLayout-sc"][data-a-target="player-overlay-click-handler"],
- .avap-ads-container,
- div:has([aria-label="Leave feedback for this ad"]),
- div[class^="Layout-sc-"][style^="position: absolute;"]:has([data-a-target="outstream-ax-overlay"])
- {
- display: none !important;
- }
- .video-player--stream-display-ad_lower-third,
- .video-ref.video-player--stream-display-ad_squeezeback,
- .video-player__overlay, .video-player__container, div[data-a-target="video-ref"],
- video
- {
- min-height: 100% !important;
- min-width: 100% !important;
- height: 100% !important;
- width: 100% !important;
- }
- .video-player--stream-display-ad_vertical-video
- {
- inset-inline-start: unset !important;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment