In Chrome, can I block the videos & images in the Google search results?

When I do a Google search, I want to block seeing image and videos in my results. I figured out how to block it using Adblock in Firefox, but the same rule doesn’t work in Chrome. Maybe not surprising, since the results are on Google Youtube and Images. Has anyone found a rule that works in Chrome? Or a different extension? Thanks.

Can AdBlock Errors be prevented when embedding YouTube videos?

I am getting a plethora of “Failed to load resource: net::ERR_BLOCKED_BY_CLIENT” on embedded YouTube videos. The errors are caused by the AdBlock Chrome extension. Due to the errors the entire page takes seconds to resolve, vs under a second without the AdBlock. This creates a terrible user experience, and most users won’t even realize that AdBlock is the cause.

The embedded iframe looks like the following:


Complicating factors:

  • I am not the owner of the videos and cannot control the ad settings
  • I do not control the HTML that YouTube generates
  • I cannot ask users to disable AdBlock

Is there anything I can do on the developer side to make sure my page loads properly for users with AdBlock enabled?

Note that this question is related to Getting “net::ERR_BLOCKED_BY_CLIENT” error on some AJAX calls but is more specific to embedding iframes that you do not have direct control over

wysihtml5 on key press with adblock extension on chrome not working

I add on keyPress event in wysihtml5

$('.wysihtml5-sandbox').contents().find('body').on("keydown",function(){
    console.log("Handler for .keypress() called.");`     
});

Actually this code works well. But this code doesn’t work with AdBlock extension. How can i fix this problem ?

Does the Adblock Plus repo on github has details about how it works? [on hold]

I was going through the repo but couldn’t find how adblockplus actually detects the ads in the page. Can I read the code which does the detection from somewhere?

Selenium AdBlock not working

I am using Selenium webdriver options to add the AdBlock extension using the relevant .crx file as follows:

options = webdriver.ChromeOptions()
options.add_extension('AdBlock_v3.24.0.crx')
driver = webdriver.Chrome('Path to chromedriver', chrome_options=options)

This adds the extension fine, but does not block any ad’s on any of the pages which I visit (works fine when visiting these pages on a normal chrome browser with the same version of AdBlock).

Could anyone please advise on what the problem might be?

Preventing a specific function in a specific script from executing with ad blockers

Is it possible to prevent a specific function in a specific script from executing using ad blocking extensions?

For example, website.com utilizes client-side rendering heavily. When https://website.com/article.html is visited, the bundled big JS file https://website.com/entire-app.js will render the entire webpage, both contents and ads.

In the end, a function named isAdblockerFound() in https://website.com/entire-app.js will be called by antiAdBlockerMethod() in the same script file. It checks if ads on the page are indeed loaded and performs other adblocker detection procedures. If this function returns true, antiAdBlockerMethod() will then trash and replace all the rendered elements in the DOM with some big warning text.

In this situation, the script https://website.com/entire-app.js handles all the client-side page rendering, both ads and contents, so simply blocking it from loading will render the website unaccessible.

The idea I can come up with to prevent the page to be cleared up when an adblocker is found is to somehow replace the isAdblockerFound() function with a function which always returns false, before it is called. However, I have no idea how to do this with uBlock Origin in Chrome. How can I achieve this and what tools should be needed? Or is there a better alternative method?

Preventing a specific function in a specific script from executing inside a browser

Is it possible to prevent a specific function in a specific script from executing inside a browser, with a predefined rule? Like using an adblocker extension or userscript.

For example, website.com utilizes client-side rendering heavily. When https://website.com/article.html is visited, the bundled big JS file https://website.com/entire-app.js will render the entire webpage, both contents and ads.

In the end, a function named isAdblockerFound() in https://website.com/entire-app.js will be called by antiAdBlockerMethod() in the same script file. It checks if ads on the page are indeed loaded and performs other adblocker detection procedures. If this function returns true, antiAdBlockerMethod() will then trash and replace all the rendered elements in the DOM with some big warning text.

In this situation, the script https://website.com/entire-app.js handles all the client-side page rendering, both ads and contents, so simply blocking it from loading will render the website unaccessible.

The idea I can come up with to prevent the page to be cleared up when an adblocker is found is to somehow replace the isAdblockerFound() function with a function which always returns false, before it is called. However, I have no idea how to do this with uBlock Origin in Chrome. How can I achieve this and what tools should be needed? Or is there a better alternative method?

EDIT: I understand that I can disable my adblocker anytime and that would be a trivial solution for this question. I also understand why ads exist on the web in the first place, and appreciate the valuable contents made possible by ads. Actually I have never had motive to apply this to any websites I visit, and I am not aware of any websites employing adblocker checking procedures exactly like website.com in my example. I asked this question because I was simply curious if it is possible to bypass this kind of checking.

I suppose, in a different context, one website could be malicious and a security engineer would need to perform an analysis. He might find fooling an environment checking procedure useful in that scenario.