Build an AD BLOCKER Chrome Extension in Less Than 10 Minutes

  Рет қаралды 13,248

Kryptech

Kryptech

Күн бұрын

Create your own ad blocker Chrome extension! In this video we'll use the new Manifest v3 Chrome extension standard to make our very own ad blocker extension.
We used only two simple JSON files to create rules for our extension. These rules will block requests to the most common ad networks, namely, Google Ad Services and Doubleclick.
RESOURCES:
Code: github.com/christian-js/simpl...
Blog: thelonecoder.dev
VIDEO CHAPTERS ⏰
Intro - 00:00
Project Setup - 00:35
manifest.json - 01:35
Connecting rules.json - 02:20
Blocking requests to ad networks - 03:25
Testing the extension - 06:05

Пікірлер: 62
@luissamouco2518
@luissamouco2518 6 ай бұрын
great tutorial
@saumyaranjan9256
@saumyaranjan9256 10 ай бұрын
Nice video man! Short and to the point.
@KryptechOfficial
@KryptechOfficial 10 ай бұрын
Glad you liked it!
@namandubey8348
@namandubey8348 3 ай бұрын
My first extension
@kaushiksen2190
@kaushiksen2190 8 ай бұрын
Loved your video, learned alot from it. Thank you so much. Please make slightly advanced project on chrome extension which i can add on my resume.
@KryptechOfficial
@KryptechOfficial 8 ай бұрын
I will definitely make more content on Chrome extension soon, I'm currently working on a full course on extension development. Thanks for watching!
@zenekgowna5984
@zenekgowna5984 9 ай бұрын
Very good stuff bro :D
@KryptechOfficial
@KryptechOfficial 9 ай бұрын
Thanks so much!!
@EtH-bo3ji
@EtH-bo3ji 10 ай бұрын
Shit was fire no cap
@pronoob249
@pronoob249 Жыл бұрын
keep uploading these videos bro
@Akash.Chopra
@Akash.Chopra 6 ай бұрын
Solid!
@ZeshanMukhtar1
@ZeshanMukhtar1 6 ай бұрын
Thanks
@viratkohli4863
@viratkohli4863 4 ай бұрын
great to the point video...loved it
@KryptechOfficial
@KryptechOfficial 4 ай бұрын
I'm glad I could help!!
@user-yi4mt4hp8u
@user-yi4mt4hp8u 2 ай бұрын
This was amazing and fast. Can you make one that blocks KZbin ads?
@prodqt3906
@prodqt3906 Ай бұрын
I wrote an extension that foregos youtube video ads. I can send you the link if you'd like. I'm working on integrating pop-up ad blocker as well rn
@NetraPatwari
@NetraPatwari 9 ай бұрын
Please make full course chrome extension development.
@KryptechOfficial
@KryptechOfficial 9 ай бұрын
It's on the plan!
@adishjain2507
@adishjain2507 9 ай бұрын
Thank you for this video
@KryptechOfficial
@KryptechOfficial 9 ай бұрын
No problem bro! Also, I'm live streaming in a couple of days doing more Chrome Extension stuff, keep an eye out for it!
@MrSypas
@MrSypas 11 ай бұрын
Please make full course chrome extension development
@KryptechOfficial
@KryptechOfficial 10 ай бұрын
I'm currently in the planning stages of a full course!
@user-tg8zp3oz5h
@user-tg8zp3oz5h Ай бұрын
how do we know where the resource of the ads? like, if some websites use url other than these two, I want to block them as well
@Rajdweep
@Rajdweep 9 ай бұрын
awesome video bro, just one thing can we dynamically add extensions in the extension popup html so that those will also be blocked? is there a way to dynamically add it?
@KryptechOfficial
@KryptechOfficial 9 ай бұрын
Let me check if I'm understanding. Do you mean allowing the user of the extension to add additional URL match patterns to block? If that's the case, we would have to use a plain JS object for our rules instead of a JSON file, which would be difficult because the rulesets are connected inside of our Manifest. So maybe there is something in the Chrome API that can allow us to update our rulesets on the fly. Thanks so much for watching!!
@Rajdweep
@Rajdweep 9 ай бұрын
@@KryptechOfficial ya bro i want to put a add url in the popup html where the user can put desired url that will be blocked after getting added, is there a way to implement it? i was reading manifest v3 documentation bt didn't find anything similar
@Rajdweep
@Rajdweep 9 ай бұрын
bro theres a extension in chrome webstore named A-blocker adblocker , it has a feature of adding or removing url from adblocker, how to implement it? the code isnt open source so i didnt find any resource for it@@KryptechOfficial
@KryptechOfficial
@KryptechOfficial 8 ай бұрын
@Rajdweep To do this you can use the chrome.webRequest API. When the user adds a new URL to block, put it into local or synced storage using chrome.storage. Then in your background script, fetch all the blocked URLs from storage. There is a listener called chrome.webRequest.onBeforeRequest, in the callback you can check if the attempted request is going to a blocked URL, then cancel the request. I hope this helps, and good luck!! 😁
@Rajdweep
@Rajdweep 8 ай бұрын
thanks bro im searching about chrome.webRequest API.but in manifest v3 we need a rules.json right to block particular urls, how will i modify it dynamically?@@KryptechOfficial
@mikeshin77
@mikeshin77 6 ай бұрын
amazing!!! fatastic!!!
@pierrenagonio1120
@pierrenagonio1120 9 ай бұрын
i have made my 1st chrome extension today: select and search games
@KryptechOfficial
@KryptechOfficial 9 ай бұрын
Congrats!! 🥳🥳 Keep up the great work
@debeeriz
@debeeriz 7 ай бұрын
who pays for an adblocker? the best are open sourced, and they block you tube ads
@retroguardian4802
@retroguardian4802 8 ай бұрын
Not sure how to feel right now. That was so simple I don't feel like I learned anything. Usually in programming there's a slow manifestation of knowledge over time.
@KryptechOfficial
@KryptechOfficial 8 ай бұрын
Sorry I couldn't help more, I'm planning on making more videos on Chrome extensions, should I introduce more advanced concepts in my later videos? Thanks for watching, I understand my content isn't perfect so I appreciate your patience ✌️
@retroguardian4802
@retroguardian4802 8 ай бұрын
Lol I meant the video was really good. Making jokes online is always risky because people can't see your facial features. What I meant is normally when you learn technical things your head is pulsating. This video was so straight forward and effortless it didn't feel like learning. Very refreshing. @@KryptechOfficial
@KryptechOfficial
@KryptechOfficial 8 ай бұрын
@@retroguardian4802 Hahahah thank you, I guess I misunderstood. In that case, I'm glad I could help! I'm currently in the process of making a full course on Chrome extension development, so your feedback is really helpful!
@kaushiksen2190
@kaushiksen2190 8 ай бұрын
@@KryptechOfficial Yes please do,i want to add an advanced project in my resume
@akashreddyjammula
@akashreddyjammula 8 ай бұрын
How do we upload to the chrome extensions, means how other users can access?
@KryptechOfficial
@KryptechOfficial 8 ай бұрын
To upload an extension, head over to the Chrome Developer Dashboard. In the upper right is a button labelled "Add new item." Upload a ZIP archive of your extension, fill out all of the technical and privacy information for your extension, then submit it for review. Thanks so much for watching!
@ybenlarbi
@ybenlarbi Ай бұрын
i face this issue : Unrecognized manifest key 'declarativeNetRequest'. any idea ?
@1Ayoub7
@1Ayoub7 7 ай бұрын
GG
@saiteja552
@saiteja552 7 ай бұрын
short and clear, can you just upload the code or github link for this.?
@KryptechOfficial
@KryptechOfficial 7 ай бұрын
No problem! I just uploaded the code to GitHub, check the description for the link! It appears under the "RESOURCES" heading
@niteshsaini3003
@niteshsaini3003 4 ай бұрын
How can we made a ad-blocker that will trigger by a button
@harshitpatil7117
@harshitpatil7117 2 ай бұрын
how to add working on and off button to the popup
@monarca2846
@monarca2846 2 ай бұрын
is it possible to mute e jump ads you tub3 auto?
@lawrencecarvalho561
@lawrencecarvalho561 10 күн бұрын
Is there adblocker on FB messenger?
@kingx_
@kingx_ 10 ай бұрын
can you make a video on how to code an adblocker for twitch and youtube
@KryptechOfficial
@KryptechOfficial 10 ай бұрын
Unfortunately that is quite complex because of how KZbin handles their ad feeds. If you want to block ads on KZbin and Twitch, I'd recommend the free AdBlock extension. I use it and I am never bothered by ads.
@kingx_
@kingx_ 10 ай бұрын
@@KryptechOfficialsure i try it
@thepragmatic6383
@thepragmatic6383 7 ай бұрын
@@KryptechOfficial The online video giant (YT) has now declared war on AdBlock-style apps.
@KryptechOfficial
@KryptechOfficial 7 ай бұрын
@@thepragmatic6383 I'm aware of that hahah, I believe that's the reason this video is now getting more views than usual XD
@stevewheatley243
@stevewheatley243 4 ай бұрын
Can this be done on Android?
@KryptechOfficial
@KryptechOfficial 4 ай бұрын
Chrome for Android doesn't currently support extensions, so you'll have to use the Kiwi Browser, which is Chromium-based. 🙂
@stevewheatley243
@stevewheatley243 4 ай бұрын
​@@KryptechOfficialThanks. I wish it worked for YT. They drive you nuts.
Full Tutorial | Building a Chrome Extension in Typescript and Vite
32:58
Build Your First AdBlocker - Chrome Extension
12:25
DevSage
Рет қаралды 70 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 33 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 6 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 13 МЛН
Beware Malicious Chrome Extensions!
17:26
ThioJoe
Рет қаралды 131 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 457 М.
Beginning Flutter - Intermediate - Using Common Widgets
4:44
JediPixels
Рет қаралды 72 М.
~/.dotfiles in 100 Seconds
13:54
Fireship
Рет қаралды 407 М.
How Does Ad Blocking Work
15:30
Ad Coach
Рет қаралды 10 М.
Build a Chrome Extension With React & Webpack
17:44
Codify Tools
Рет қаралды 43 М.
Coding A Chrome Extension in JavaScript Tutorial
23:03
PedroTech
Рет қаралды 73 М.
Hacker101 - JavaScript for Hackers (Created by @STOKfredrik)
24:17
💅🏻Айфон vs Андроид🤮
0:20
Бутылочка
Рет қаралды 733 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 32 МЛН
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 6 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2 МЛН