• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Permanent Ad Blocks in computer

Search This thread

hateem

Senior Member
Dec 9, 2010
182
32
Hamburg
I used a different way to block ads on my laptop using Google Chrome. This works differently from AdBlock. This is a manual way. A bit difficult to grasp hold off though.
So basically using Google Chrome's JavaScript console you take off the bits of code that represent the ads and the ads vanish.

I was wondering whether this could be implemented somehow in an application. This app would run the website. Then you would get a similar version of the Javascript console, you would take off the ads and then the app would let you access the rest of the website.
This could be an amazing add-on for a web browser.

Here's link to a How-to I made
http://www.youtube.com/watch?v=K59MI4e7J3w&context=C364178cADOEgsToPDskKvHDuKcmE4emuZg8UD6I7g


[PLEASE A MOD MOVE THIS TO A DEVELOPMENT FORUM] Sorry, did not realise while posting.
 
Last edited:
  • Like
Reactions: Maxamillion

Archer

Inactive Recognized Developer / Retired Senior Mod
Jul 9, 2008
13,988
3,992
Manchester
You should do some reading and learn (if you need to) Javascript (and jQuery) and look into writing a Chrome extension that would remove elements from a page with a right-click -> delete type action. Also, with Chrome you can get to the element much quicker. Right-click and do "Inspect element". It opens the dom explorer with the selected element highlighted so you can just right-click it and "delete node". Much quicker than manually scrolling through the dom.

Incidentally, the only problem with doing it manually is that the hidden elements are there next time you visit the site, or if you refresh the page.
 
Last edited:
  • Like
Reactions: hateem

hateem

Senior Member
Dec 9, 2010
182
32
Hamburg
Thanks. Im just a 17 year old kid with big dreams :)

Just working on getting my way around VB and Java. Will try to learn something about jQuery after my prelims end.
 

Archer

Inactive Recognized Developer / Retired Senior Mod
Jul 9, 2008
13,988
3,992
Manchester
Thanks. Im just a 17 year old kid with big dreams :)

Just working on getting my way around VB and Java. Will try to learn something about jQuery after my prelims end.

If you're going to be doing some Java then that would be a good intro for JavaScript, which is a web based scripting language, but it has its origins in the same roots as Java so there are similarities in syntax.

I was an 8 year old kid with big dreams :) I stuck with them and I've now been working as a professional developer, writing windows software, mobile software and web applications for about 16 years. If it's what you want then stick at it. You're post proves you have the right mix of creativity and curiosity needed to persist with development. I just hope you're good at maths too ;)
 

Maxamillion

Senior Member
Feb 5, 2011
913
167
I used a different way to block ads on my laptop using Google Chrome. This works differently from AdBlock. This is a manual way. A bit difficult to grasp hold off though.
So basically using Google Chrome's JavaScript console you take off the bits of code that represent the ads and the ads vanish.

I was wondering whether this could be implemented somehow in an application. This app would run the website. Then you would get a similar version of the Javascript console, you would take off the ads and then the app would let you access the rest of the website.
This could be an amazing add-on for a web browser.

Here's link to a How-to I made
http://www.youtube.com/watch?v=K59MI4e7J3w&context=C364178cADOEgsToPDskKvHDuKcmE4emuZg8UD6I7g


[PLEASE A MOD MOVE THIS TO A DEVELOPMENT FORUM] Sorry, did not realise while posting.

thanks for sharing this with us, this will come in handy :)
 

[email protected]

Senior Member
Sep 24, 2007
1,465
194
So you just hide it once it's generated. There's always ways round it. Just nothing generic.
If you don't mind do it on each page refresh, go for it...dealing with the source is the way to go, not like this.
I personally don't use Chrome, I prefer Firefox and AdBlock there works magic, it works at the root of the ads and also allows block visible parts on the page as well.
 

machmanx

Senior Member
Jan 21, 2012
72
26
Revenue generation

You know you shouldn't really be blocking those ads as it helps pay for these sites, including xdadevelopers. Those ads are the key to keeping these very informative sites free to everyone. If there are certain advertisements that bother you, then I suggest finding something that blocks only certain ads, say just block popups but not the banner types.
 

hateem

Senior Member
Dec 9, 2010
182
32
Hamburg
I don't mind ads at all on websites like XDA and most others. I was referring to websites that ask you to complete surveys and select ads in order to reveal their content. I was frustrated with the general concept and the limitations that Ad blockers had.
The regular ad is ok, but ad infested websites is what I dislike.

They wish to monetise from the content they have, that is ok. But when people start getting greedy, that becomes a problem.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I used a different way to block ads on my laptop using Google Chrome. This works differently from AdBlock. This is a manual way. A bit difficult to grasp hold off though.
    So basically using Google Chrome's JavaScript console you take off the bits of code that represent the ads and the ads vanish.

    I was wondering whether this could be implemented somehow in an application. This app would run the website. Then you would get a similar version of the Javascript console, you would take off the ads and then the app would let you access the rest of the website.
    This could be an amazing add-on for a web browser.

    Here's link to a How-to I made
    http://www.youtube.com/watch?v=K59MI4e7J3w&context=C364178cADOEgsToPDskKvHDuKcmE4emuZg8UD6I7g


    [PLEASE A MOD MOVE THIS TO A DEVELOPMENT FORUM] Sorry, did not realise while posting.
    1
    You should do some reading and learn (if you need to) Javascript (and jQuery) and look into writing a Chrome extension that would remove elements from a page with a right-click -> delete type action. Also, with Chrome you can get to the element much quicker. Right-click and do "Inspect element". It opens the dom explorer with the selected element highlighted so you can just right-click it and "delete node". Much quicker than manually scrolling through the dom.

    Incidentally, the only problem with doing it manually is that the hidden elements are there next time you visit the site, or if you refresh the page.