• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:03
CEST 04:03
KST 11:03
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris31Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
#2: Serral - Greatest Players of All Time #1: Maru - Greatest Players of All Time I hope balance council is prepping final balance Geoff 'iNcontroL' Robinson has passed away Aligulac - Europe takes the podium
Tourneys
Esports World Cup 2025 Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game—$20k event w/ live finals in Paris WardiTV Mondays RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
BSL Polish World Championship 2025 20-21 September BGH Auto Balance -> http://bghmmr.eu/ ASL Season 20 Ro24 Groups Flash On His 2010 "God" Form, Mind Games, vs JD No Rain in ASL20?
Tourneys
[Megathread] Daily Proleagues [IPSL] CSLAN Review and CSLPRO Reimagined! [ASL20] Ro24 Group F [ASL20] Ro24 Group D
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1117 users

Whitelist by Youtube Channel - GM script (UPDATED)

Blogs > dabom88
Post a Reply
dabom88
Profile Blog Joined July 2010
United States3483 Posts
Last Edited: 2014-06-22 23:57:05
June 22 2014 21:40 GMT
#1
Update to an older blog:
http://www.teamliquid.net/blogs/435906-whitelisting-by-channel-on-youtube-gm-tm-script

Turns out you can't edit older posts. So instead of having people confused by outdated instructions in the Opening Post, I decided to post a new blog. It's a good way of getting the message out there.

I love Adblock Plus. Such a handy add-on, and its ease of use on Firefox is one of the main reasons I use Firefox over Chrome (along with a lot of other handy little add-ons). Youtube is a big reason I will definitely keep ABP on by default. There are just some channels that don't deserve the ad revenue, like those who monetize videos with ads longer than the actual video. Or supporting any monetized video from IGN.

However, over the last few years, Youtube has become a big thing for a lot of good channels who rely on the ad revenue. And unfortunately, for people like me, the negatives of whitelisting all of youtube outweigh the benefits of supporting channels I care about. So what I did before was middle-click the ABP icon when I was about to watch a video on a channel that I specifically wanted to support.

The problem with this method was that I didn't always remember to do so. Of course, it's the internet, I want that sweet instant gratification, even if some precious approved views to channels were going wasted.

For a while, I used a Userscript by a user named schippi to whitelist specific Youtube channels. However, Youtube changed something in their Video Pages, which caused the script to no longer work. The problem was that the ID for a channel on a video was modified to use a weird string of characters instead of just the channel name.

A few months later, I found a new script from a user named AcasShows. He modified schippi's script to work with the new string of characters that identified a user's id.

I've been using it for a month or two now, and it works perfectly. But then Userscripts.org went down, and I didn't have an easy place to upload this script. But now I have found Greasyfork, which serves as a nice alternative, although it doesn't have ALL the good scripts Userscripts.org used to, yet. And I uploaded it there.

So here's the link to the script and code:
https://greasyfork.org/scripts/2734-youtube-whitelist-by-channel

Code:
+ Show Spoiler +
// ==UserScript==
// @name Youtube - Whitelist by Channel
// @namespace schippi (modified by AcasShows)
// @include http*://*.youtube.com/watch*
// @include http*://youtube.com/watch*
// @description Whitelist Youtube Videos from only channels you wish to support
// @version 1.1
// ==/UserScript==

var u = window.location.href;
if(u.search("user=") == -1){
if (!! document.getElementById("ud")) {
var user = document.getElementById("ud").getElementsByTagName("a")[0].getAttribute("href").split("/")[2];
window.location.href = u+"&user="+user;
}
else if (!! document.getElementById("body")) {
user = document.getElementById("watch7-user-header").getElementsByTagName("a")[0].getAttribute("href").split("/")[2]
window.location.href = u+"&user="+user;
}
else {
alert('script failed');
}

}


Instructions:
1. Install the Adblock Plus Extension for your internet browser.
Firefox: https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
Chrome: https://chrome.google.com/webstore/detail/adblock-plus/cfhdojbkjhnklbpkdaibdccddilifddb?hl=en-US

2. Install the Greasemonkey Extension for your internet browser
Firefox: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/?src=search

For Chrome, you can get TamperMonkey, but keep in mind, I have not tested this script for Chrome:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en

3. Install the Script: https://greasyfork.org/scripts/2734-youtube-whitelist-by-channel

4. Go to a video by a Channel you wish to whitelist

5. Visual Aid: http://i.imgur.com/J2lbl5e.jpg
Go to the link in the video that links to the Channel Page. Copy the URL, and then copy the string of characters in the portion of the URL after /channel/. That is the "Channel ID". Keep in mind, it WILL be a string of characters in the URL, not a simple channel name like it would be if you went to the channel page, where all the URLs simply use the username.

6. Paste the "Channel ID" to where it says "CHANNEL" into this Adblock Plus filter @@|https://www.youtube.com/watch*user=CHANNEL

7. Go to Adblock Plus >> Filter Preferences (Shortcut: Ctrl+Shift+F)

8. Go to Custom Filters >> Exception Rules and click "Add a Filter"

9. Add your new filter. For the example in the Visual Aid, the new filter would be @@|https://www.youtube.com/watch*user=UCy1Ms_5qBTawC-k7PVjHXKQ

Done! Do your part to make sure the channels you like are paid for their hard work. Otherwise, some of them wont be able to keep entertaining you for a living.

What this does is that whenever you go to a youtube link, it will refresh the page to include the user's "Channel ID" at the end of the url. If the video is by one of the channels you whitelisted, Adblock Plus will catch it and Adblock will be disabled.

Some Whitelists I added:
@@|https://www.youtube.com/watch*user=UCAI86CUHDIkKXGA6YpVBhYg
^ ESportsTV's Channel (Proleague's channel): https://www.youtube.com/user/ESportsTV
(Support Proleague and make sure to add this filter!)

@@|https://www.youtube.com/watch*user=UC3kJdy9_bXFg8flaSY3RAcQ
^ TotalBiscuit's Starcraft 2 and Axiom channel: https://www.youtube.com/user/TotalBiscuit

@@|https://www.youtube.com/watch*user=UCy1Ms_5qBTawC-k7PVjHXKQ
^ Total Biscuit's gaming channel: https://www.youtube.com/user/TotalHalibut

@@|https://www.youtube.com/watch*user=UC-teGPup3KKf9hoAg5yJk8Q
^ Team Liquid's channel: https://www.youtube.com/user/TeamLiquid

I feel that this is a great way to support the channels you want to support, while leaving Adblock on for the rest of Youtube. If you truly feel a channel has earned you whitelisting it, you can now just add just that channel to a whitelist without having to whitelist all of youtube.

If you feel that channel is no longer uploading videos that deserve your approved view, you can just remove the whitelist entry for that channel. Some channels do work hard for their videos and approved views, so please consider whitelisting just those channels you feel deserve your support. At the very least, you can install the script to give yourself the option to do so.

Other entries in my "How to improve your website browsing experience" series:

Watch Twitch/DM on VLC/MPC(good for low-end users): http://www.teamliquid.net/blogs/445573-watch-twitch-dm-on-vlc-mpcgood-for-low-end-users

How to get Twitch to play on SmartTVs via Serviio: http://www.teamliquid.net/blogs/437509-how-to-get-twitch-to-play-on-smarttvs-via-serviio

*****
You should not have to pay to watch the GSL, Proleague, or OSL at a reasonable time. That is not "fine" and it's BS to say otherwise. My sig since 2011. http://www.youtube.com/user/dabom88
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
SEL S2 Championship: Ro16
CranKy Ducklings118
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft238
SpeCial 157
RuFF_SC2 94
ProTech85
Nina 66
StarCraft: Brood War
Artosis 890
Nal_rA 279
Sharp 70
Icarus 11
Dota 2
monkeys_forever1041
League of Legends
JimRising 459
Counter-Strike
Stewie2K721
Super Smash Bros
hungrybox523
Mew2King14
Other Games
tarik_tv16181
summit1g8577
shahzam629
C9.Mang0328
ViBE235
Maynarde131
kaitlyn9
ROOTCatZ2
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• OhrlRock 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift3983
• Stunt258
Upcoming Events
The PondCast
7h 57m
WardiTV Summer Champion…
8h 57m
herO vs MaxPax
Clem vs Classic
Replay Cast
21h 57m
LiuLi Cup
1d 8h
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
1d 13h
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
Big Brain Bouts
1d 13h
Iba vs GgMaChine
TriGGeR vs Bunny
Reynor vs Classic
Serral vs Clem
BSL Team Wars
1d 16h
Team Hawk vs Team Dewalt
BSL Team Wars
1d 16h
Team Hawk vs Team Bonyth
SC Evo League
2 days
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
2 days
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[ Show More ]
[BSL 2025] Weekly
2 days
SC Evo League
3 days
Maestros of the Game
3 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
3 days
Team Bonyth vs Team Sziky
BSL Team Wars
3 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
5 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.