Jump to content
To encourage social distancing, you must leave two blank lines at the start and end of every post, and before and after every quote. Failure to comply may result in non-essential parts of the forum closing. Click for more details. ×
Search In
  • More options...
Find results that contain...
Find results in...
LIL_NAZ

Ad-block + Greasemonkey = you chose the channel (not needed for chrome users))

Or just get this adblock 

https://getadblock.com

And whitelist channels you want in the preferences..

dXLGhnt.png

Recommended Posts

Posted · Original PosterOP

I have found a code snippet by firynth (dont know were) and it dose the simple thing of out the username of the channel in the video you are watching (it will ad &user=LinusTechTips note: it is the userneme from youtube.com/user/LinusTechTips) and with adblocks filter you can make exception so it will display ads on the channels you have specified.

 

Greasemonkey / Tampermonky script

// ==UserScript==// @[member='name']        Youtube opt in Ads per channel fixed// @[member='Names']pace   firynth// @[member='include02']     http://www.youtube.com/*// @[member='include02']     https://www.youtube.com/*// @exclude     https://www.youtube.com/embed/*// @exclude     http://www.youtube.com/embed/*// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js// @require     https://gist.github.com/raw/2625891/waitForKeyElements.js// @[member='versions']     1// @[member='Grant']       GM_addStyle// ==/UserScript==function checkUserAndRelocate (jNode) {    if ( ! /user=/.test (window.location.href) ) {        var elem        = document.querySelector (            "#watch7-content link[href*='/user/']"        );        if (elem) {            var user    = elem.href.match (/\/user\/(\w+)\W?/);            if (user  &&  user.length > 1) {                location.replace (location.href + "&user=" + user[1]);            }        }    }}function checkUserAndRelocateOld (jNode) {    if ( ! /user=/.test (window.location.href) ) {        if($("#watch7-content link[href*='/user/']").length == 0)        {            var elem = $('#watch7-content meta[itemprop="channelId"]').attr("content");            if(elem) {                if (elem  &&  elem.length > 1) {                    location.replace (location.href + "&user=" + elem);                }            }        }    }}waitForKeyElements ("#watch7-content", checkUserAndRelocate);waitForKeyElements ('#watch7-content meta[itemprop="channelId"]', checkUserAndRelocateOld);

Adblock plus filter

@@||youtube.com/watch*user=(inster user hear w/ no bracets)$document//ex: @@||youtube.com/watch*user=LinusTechTips$document

hope it helps!

 

edit:

add the script

if you have Firefox then go to the about:addons pages ad click the userscript tab and click the new user script and copied the long code and press the button on the dialog that says use script from clipboard.(if it did not show up then you have copied the code wrong) then save it!

 

if you have chrome click the tampermonkey button and click add new script and past it in and save it!

 

add the adblock filter

if you have Firefox then go to the adblock plus button en click on it, you will see a option for filter preferences then click the tab custom filters and add a group then double click on it and you will see a button i the top right corner called add filter and past the snippet of code ther and that sould be it!

 

hope that help! total forgot the steps

ps: sorry for my English the spell checker dose not work hear for some reason.

pss: i fix it now every thing should be spelled right I'm dyslexic and English is not my first languages not a good combo for writhing fast.

Link to post
Share on other sites

should i make 2 separate scripts  


 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

thought this was a cool idea and then realised i use safari and its extensions are super locked down lol.. ads for me!! does that mean i own shares in LMG lol


Gaming PC: • AMD Ryzen 7 2700x • 16gb Corsair Vengeance RGB Pro 3200mhz • Founders Edition 2080ti • 2x Crucial 1tb nvme ssd • Corsair HX650w • Lian Li o-11• Corsair K70 • Corsair M65 Pro RGB • Asus ROG XG32VQ • SteelSeries Arctis Pro Wireless

Laptop: Microsoft Surface Pro 7• Intel Core i5 1035G4• 8gb DDR4 • 256gb M.2 NVME SSD

Link to post
Share on other sites

Just make one for LTT and post it here, will replace LTT links if i have to because i have no idea where to add this 
 

 

@@||youtube.com/watch*user=(inster user hear w/ no bracets)$document//ex: @@||youtube.com/watch*user=LinusTechTips$document

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites
Posted · Original PosterOP

should i make 2 separate scripts  

no the long script is for tampermonky / greasemonky and the short one is for adblock plus filter.

Link to post
Share on other sites

I have found a code snippet by firynth (dont know were) and it dose the simple thing of out the username of the channel in the video you are watching (it will ad &user=LinusTechTips note: it is the userneme from youtube.com/user/LinusTechTips) and with adblocks filter you can make exeption so it will display ads on the chanels you have specifide.

 

Greasemonkey / Tampermonky script


@@||youtube.com/watch*user=(inster user hear w/ no bracets)$document//ex: @@||youtube.com/watch*user=LinusTechTips$document

hope it helps!

how can i add that to abp? . there's no where i can see that i know of to add it 


 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites
Posted · Original PosterOP

 

Just make one for LTT and post it here, will replace LTT links if i have to because i have no idea where to add this 

 

 

@@||youtube.com/watch*user=(inster user hear w/ no bracets)$document//ex: @@||youtube.com/watch*user=LinusTechTips$document

if you have Firefox then go to the adblock plus button en click on it, you will see a option for filter preferences then click the tab custom filters and add a group then double click on it and you will see a button i the top right corner called add filter and past the snippet of code there. sorry for not being clear about the adblock part. i wrote a fuller tutorial in the first post

Link to post
Share on other sites

thought this was a cool idea and then realised i use safari and its extensions are super locked down lol.. ads for me!! does that mean i own shares in LMG lol

HAHAHA, no, you just need to find the file and click 'show package contents'

The Knightmare MK II: Motherboard: Asrock 960GM-VGS3 FX, CPU: AMD Athlon II 2.8Ghz Dual Core, RAM: Crucial DDR3 4GB 1600Mhz, Graphics Card: EVGA GTX 750 SC, Storage: 80GB HDD from an old acer T180,128GB KingFast SSD, 250GB HDD from a Toshiba Satellite, Power Supply Unit: Cooler Master 500W 12V Elite, Case: Acer T180, OS: Windows 7, Windows XP

"My game vs my brains, who gets more fatal errors?" ~ Camper125Lv, GMC Jam #15

Link to post
Share on other sites

if you have firefox then go to the adblock plus button en click on it, you will see a option for filter prefrences then click the tab customfiltersand add a group then duoble click on it and you will se a button i the top right corner called add filter and past the snippet of code ther. sorry for not being cleare about the adblock part.

added. not working 

added this

 

@@||youtube.com/watch*user=LinusTechTips$document

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

Could not care less. Part of the reason I stopped watching TV 5 years ago was to get away from ads.

 

If Linus can only get a silver yacht instead of a gold yacht then so be it.


Enthoo Primo - ASUS Maximus Formula VII - 4790k 4.8ghz 1.28v - EK Supremacy Evo Clean - 16GB Crucial Ballistix Tactical - 1000w EVGA Supernova Gold - 2x Alphacool Monsta Rads in push/pull - 2x Galaxy 780 HoF with EK waterblock
 
Build Log http://imgur.com/a/UV6Wh Just want to warn everyone, my build log is pretty mediocre.

Link to post
Share on other sites

Adblock has a feature in its settings to whitelist some channels...


I don't always have time to study, but when I do, I don't.

Link to post
Share on other sites
Posted · Original PosterOP

Adblock has a feature in its settings to whitelist some channels...

yes that is in chrome i believe not in Firefox.

Link to post
Share on other sites
Posted · Original PosterOP

Could not care less. Part of the reason I stopped watching TV 5 years ago was to get away from ads.

 

If Linus can only get a silver yacht instead of a gold yacht then so be it.

Yes TV commercials are horrible to say the least.

Link to post
Share on other sites
Posted · Original PosterOP

 

added. not working 

added this

 

@@||youtube.com/watch*user=LinusTechTips$document

have you created the greasemonky/tapermonky script?

Link to post
Share on other sites

yes that is in chorem i belive not in firefox.

ah okay. Can you change the title so people with Chrome dont have to do this, firefox only


I don't always have time to study, but when I do, I don't.

Link to post
Share on other sites

have you created the greasemonky/tapermonky script?

wait, that is why i asked , do i need both? i deleted the tampermonkey script and added the adblock plus lines to abp, why would i need Tamper monkey script ?


 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites
Posted · Original PosterOP

wait, that is why i asked , do i need both? i deleted the tampermonkey script and added the adblock plus lines to abp, why would i need Tamper monkey script ?

edit:

yes you need both scripts. the tamper monkey script add the &user=LinusTechTips and the adblock plus filter to stop filtering away ads if it find the URL to contain "&user=LinusTechTips".

Link to post
Share on other sites

Nvm


 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites
Posted · Original PosterOP

Or just get this adblock 

https://getadblock.com

And select whitelist videos with this url in the preferences..

dXLGhnt.png

yes, but if you have Firefox and like doing everything yourself and be in control!

 

edit:

and yes i know adblock for Firefox exist and it could probably do it.

Link to post
Share on other sites

yes, but if you have Firefox and like doing everything yourself and be in control!

 

Did you just give yourself best answer? 

 

And http://www.arungudelli.com/how-to/how-to-install-google-chrome-extension-on-firefox/

 

Same deal, works just as well in firefox

 

Need pictures?

 

Not trying to be a douche but this works just as well as your solution..

Link to post
Share on other sites

that helped 


 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites
Posted · Original PosterOP

Did you just give yourself best answer? 

 

And http://www.arungudelli.com/how-to/how-to-install-google-chrome-extension-on-firefox/

 

Same deal, works just as well in firefox

 

Need pictures?

 

Not trying to be a douche but this works just as well as your solution..

oh i did. I'm going to change it to your post to show that there is an easy way but if you want to get into scripting you browser it a good way to start.

Link to post
Share on other sites

I was about to argue that it worked :P

Thanks guys

i have youtube options installed, it blocks ads by default, making your extension useless 


 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 780 Ti DirectCU II OC | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • April fools topics should be posted in Off Topic

×