YouTube uBlock Whitelist

To whitelist YouTube channels in uBlock Origin

Auteur
Blake Mattson
Installations quotidiennes
0
Installations (total)
479
Notes
0 0 0
Version
1.7
Créé
07/02/2018
Mis à jour
07/02/2018
Taille
2,71 ko
Licence
http://creativecommons.org/licenses/by-sa/4.0/
S'applique à

Old version was out of date and no longer functional.

This is a 'fork' of https://greasyforks.org/en/scripts/22308-youtube-whitelist-channels-in-ublock-origin based on https://greasyforks.org/en/scripts/13226-youtube-whitelist-channels-in-ublock-origin with adaption from https://greasyforks.org/en/forum/discussion/8985

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^="owner-name"] a');if (null !== e) {var t = e.getAttribute("href") || "";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.

长期地址
遇到问题?请前往 GitHub 提 Issues。