Giter VIP home page Giter VIP logo

yt-anti-anti-adblock's Introduction

YT Anti-Anti-Adblock

Greasy Fork Tampermonkey / Violentmonkey Greasemonkey GitHub closed issues Version Greasy Fork Rating

Simplistic user-script to remove YouTube's "Adblockers are not allowed" popup.


โ“ What does it do?

It automatically closes the anti-adblock popups and un-pauses (or loads) the video for you.
Hopefully even fast enough so that you don't even notice ๐Ÿ˜ธ

  • It removes the closable "Ad blockers are not allowed on YouTube" popup.
  • It removes the closable three-strikes popup.
  • And it removes the non-closable "Ad blockers violate YouTube's Terms of Service".
  • It also supports playlists and timestamps and stuff.
  • Oh and the script auto updates. Which is neat. I guess.

Note: This is not a replacement for your Ad-Blocker.


โœ”๏ธ Compatibility

This script has been tested and is compatible with the following extensions and userscripts:


โ“ Why not use xyz?

Existing solutions either didn't work (e.g. a semi transparent window was still there and scrolling was disabled) or they were overkill (e.g. a complete youtube-only adblocker) or they only killed one type of popup.

Hence: โœจ YouTube Anti-Anti-Adblock โœจ


๐Ÿ“ก Installation

  1. Install Tampermonkey for your browser:

    Note: ViolentMonkey works too!

  2. Install the script:

    Click to install

    If the button doesn't work for some reason: click here.

๐Ÿด You can also find the script on Greasy Fork!


๐Ÿ’  Feature requests & Issues

Feature request or discovered a bug? Please open an Issue here on GitHub.


:octocat: Contributors

Made with contrib.rocks.


๐Ÿ’ป Development

If you're interested in helping out (thanks!):

  • Clone the repository: git clone https://github.com/NullDev/YT-Anti-Anti-Adblock.git
  • Open it in your favourite IDE
  • Install the dependencies for linting with npm i
  • Link the script in Tampermonkey

Basically, in your Tampermonkey dashboard you create a new script that looks like this:

// ==UserScript==
// @name           YouTube Anti-Anti-Adblock
// @name:de        YouTube Anti-Anti-Adblock
// @namespace      yt-anti-anti-adblock
// @version        1.2.2
// @description    Removes all the "ad blockers are not allowed on youtube" popups.
// @description:de Entfernt alle "Werbeblocker sind auf YouTube nicht erlaubt" popups.
// @author         NullDev
// @copyright      Copyright (c) 2023 NullDev
// @license        MIT
// @match          *://*.youtube.com/*
// @homepageURL    https://github.com/NullDev/YT-Anti-Anti-Adblock
// @supportURL     https://github.com/NullDev/YT-Anti-Anti-Adblock/issues/new/choose
// @icon           https://raw.githubusercontent.com/NullDev/YT-Anti-Anti-Adblock/master/icon.png
// @grant          none
// @run-at         document-idle
// @require        file://C:/Users/XXX/PATH/TO/REPOSITORY/YT-Anti-Anti-Adblock/yt-anti-anti-adblock.user.js
// ==/UserScript==

Pay attention to the // @require line and edit the path accordingly.

  • Windows: file://C:/.../...
  • Linux: file:///.../...

Note: Make sure you DO NOT provide a @updateURL and @downloadURL field!

Then make sure the Tampermonkey extension has permissions for file paths.
And finally, just code in your IDE and Tampermonkey will autoupdate it. (You need to reload YouTube though)

Now all thats left to do is grab an open issue and start coding. ๐Ÿ˜ธ


yt-anti-anti-adblock's People

Contributors

nulldev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rsoorajs

yt-anti-anti-adblock's Issues

[BUG] The latest updates to youtube causes script to break

Thought I'd let you know, if you weren't already aware, but due to the latest updates to chrome and youtube, it appears that youtube now detects the script as if it is embedding videos in another site. Now triggering the screenshotted message. It doesn't do this with all videos, at least so far, but some aren't able to be played.

image

[BUG] Pause doesn't work

Describe the bug
I can't pause the video. Neither with space nor with clicking on the video nor with the "k" key nor with the Pause-Button itself.

To Reproduce
Steps to reproduce the behavior:
Go on a video and try to pause it with any of the methods I described above.

Expected behavior
You should be able to pause the video.

Screenshots

chrome_cqM2qTmPUl.mp4

Additional info

  • OS: Windows 11
  • Browser & Version: Google Chrome 118.0.5993.118
  • AdBlockers & Other Extensions: uBlock Origin

Additional context

[BUG] Playlists autoskip

Describe the bug
If a video from a playlist is clicked, the next one plays instantly, then the next one, etc.

I need to figure out what loads the next video and when. It's NOT an xmlhttprequest, history.push/replaceState and it's also not triggered by video.addEventListener("ended")

Once I know what/how its loaded, I can block it and implement my own "next video" logic

[BUG] Scroll up after clicking

Describe the bug
Youtube pages scroll up after clicking.

Additional info

  • OS: Windows 10
  • Browser Opera, Lates Version
  • AdBlockers: No

[BUG] Youtube music doesnt work very well

When i play first song its allright but when a want to play another song it show that the new song is playng but the cover art
from the old song its still there and I can still hear the old song but after i disable script (or refresh the page) its load the new song just fine

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://music.youtube.com'
  2. Run 'any song you want'
  3. Try to 'play another song'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Additional info

  • OS: [e.g. Windows 11]
  • Browser & Version [ Opera :idk what version Sorry ]
  • AdBlockers & Other Extensions: [Adguard,Sponsor block,G app launcher]

Additional context
On Youtube.com the sricpt works great

[BUG] Videos aren't marked as "watched"

Describe the bug
As the title already says. The Videos I watch, aren't marked as watched. They still get recommended to me on the front page. And there is no sign that they have been watched.

To Reproduce
Steps to reproduce the behavior:

  1. Open a video from the front page.
  2. Watch it and close the tab.
  3. Go back to the front page and see that the video is still getting recommended for you to watch.

Expected behavior
When I open a video and watch it, usually YouTube marks it as watched. When it's marked, it won't get recommended anymore.

Additional info

  • OS: Windows 11
  • Browser & Version: Opera GX 102.0.4880.117,
  • AdBlockers & Other Extensions: uBlock Origin

[BUG] Theatre Mode not working, also whole task bar different

Describe the bug
Theatre mode is not avaible in any video. Also the hotkey "t" not.
Also the whole task bar is different and some functions are not avaible.

image
With script

image
Without script

To Reproduce
Steps to reproduce the behavior:

  1. Go to YouTube
  2. Run any video
  3. Try to go in theatre mode
  4. See the bug

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional info

  • OS: Win 10
  • Browser & Version Google Chrome 119.0.6045.124
  • AdBlockers & Other Extensions: AdBlock Plus, uBlock Origin, uBlock,

Additional context

[ENHANCEMENT] Playlists

Currently, playlists won't play the next video automatically because we had to disable it due to #1
Now, we need to manually load the next video to play. But that's not all unfortunately.
We also need:

  • support for shuffle button
  • support for loop button
  • add a button for previous video
  • add a button for next video

[BUG] Comments with timestamp doesn't work again

Describe the bug

the issue #11 seems to have returned.

To Reproduce

same as #11, click timestamp on comments. it will error at checkAndSeekTimestamp as

Uncaught TypeError: can't access property "seekTo", window[playerID] is null

Expected behavior

timestamps work.

Screenshots

image

Additional info

  • this extension: 1.4.3
  • OS: Ubuntu 23.04
  • Browser & Version: Firefox Developer Edition 122.0b4
  • AdBlockers & Other Extensions: Ublock Origin, ViolentMonkey, SponsorBlock

Every few days Videos stop playing

Every few days Videos stop playing.
If i deactivate the script and reload the site - Youtube shows the Adblock-Popup.
I must confirm this.
Than i activate the script again.
I am using Violentmonkey with Opera.

[BUG] Video restarts automatically

Describe the bug
When a video is finished, no end card is shown. It automatically restarts the video.

To Reproduce
Steps to reproduce the behavior:
Go to the end of a video.

Expected behavior
I want to see the end card.

Screenshots

chrome_2Pdg9kld0L.mp4

Additional info

  • OS: Windows 11
  • Browser & Version: Google Chrome 118.0.5993.118
  • AdBlockers & Other Extensions: uBlock Origin

Additional context

[BUG] Adguard Compatibility: Video does not un-pause automatically

Describe the bug
When watching any YouTube video, the video does not un-pause automatically. User interaction is required on every video.

To Reproduce
Steps to reproduce the behavior:

  1. Download Adguard Desktop
  2. Adguard Desktop>Settings>Extensions>Add extension; paste this link and click install:
    https://update.greasyfork.org/scripts/478457/YouTube%20Anti-Anti-Adblock.user.js
  3. Open Firefox and watch any YouTube video

Expected behavior
Video plays as it normally would, no need to un-pause it at every video.

Additional info

  • OS: Windows 11
  • Browser & Version: Firefox v120.0.1 64-bit
  • AdBlockers & Other Extensions: Adguard Desktop, Enhancer for YouTube, Return YouTube Dislike, Sponsorblock for YouTube, YouTube Non-Stop

[BUG] top bar is showing up on videos

Describe the bug
the top bar with channel info is showing up, also the buttons are smaller

To Reproduce
Steps to reproduce the behavior:

  1. Click on a video
  2. on the top of the player, it will show an info area (screenshot 1), also the bottom will be smaller, youtube broke embeds i would assume

Expected behavior
(This is from an unrefreshed tab)
image

Screenshots
image

Additional info

  • OS: Windows 10
  • Browser & Version: Opera GX (i cant find the version)
  • AdBlockers & Other Extensions: Sponsorblock and Ublock origin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.