Greasy Fork is available in English.

YouTube - whitelist channels in uBlock Origin

To whitelist YouTube channels in uBlock Origin

Δημιουργός
gorhill
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
2.432
Βαθμολογίες
7 2 1
Έκδοση
1.5
Δημιουργήθηκε την
20/10/2015
Ενημερώθηκε την
07/04/2016
Άδεια
http://creativecommons.org/licenses/by-sa/4.0/
Εφαρμόζεται σε

No longer maintained: assume it does not work properly, so don't bother installing.

Source: https://github.com/gorhill/uBlock/wiki/How-to-whitelist-a-web-site#a-youtube-channel

Install the user script.

Add the following bookmarklet to your toolbar: it will create a whitelist directive for you to add to uBlock Origin for the channel owner of the current Youtube page:

  • Chromium-based browsers: right-click on the toolbar, select "Add page..."
  • Firefox-based browsers: right-click on the toolbar, select "New Bookmark..."
  • Fill in the fields:
    • Name: uBO: YT channel whitelist directive (change as you wish)
    • URL/location: see below.
    • Click "Save" or "Add".

Bookmarklet URL/location:

javascript:(function() {"use strict";var e = document.querySelector('[id^="watch"][id$="-container"] [itemprop="channelId"][content]');if (null !== e) {var t = e.getAttribute("content") || "";if ('' !== t) return void prompt("uBO whitelist directive for this channel:","youtube.com/*user=" + encodeURIComponent(t) + "*")}alert("No Youtube user name found on this page.")})();

Once you click this bookmarklet while on a Youtube page, it will extract the channel owner's name and create a valid directive to be pasted in the Whitelist pane of uBlock Origin if you want to whitelist the Youtube channel.