To achieve that you need to intercept & block the request originating from the response page to load ads.
What you are looking for is the core principle of an ad-blocker which is possible with a browser extension.
so create a manifest.json with
{
"manifest_version": 2,
"name": "REQblock",
"version": "2.3.4",
"permissions": ["webRequest", "webRequestBlocking", "<all_urls>"],
"background": {
"scripts": ["script.js"]
}
}
and then create script.json
function getBlacklistUrls(){
var urls = [
"*://cdn.sstatic.net/*",
"*://*.twitter.com/*",
"*://*.youtube.com/*"
];
return urls;
};
(async () => {
var dummyCallback = function (details) {
return {
cancel: true
};
};
var list = getBlacklistUrls();
var blockedUrls = { urls: list };
//Add Listener
chrome.webRequest.onBeforeRequest
.addListener(dummyCallback,blockedUrls,["blocking"]);
})();
The above chrome extension will block all url returning from getBlacklistUrls().
The result will come something like this 
If you still don't understand what chrome extensions are and how to load & enable check my ad-blocker AdvertShield at github and follow the wiki as how to install it.
Update: 2024
While the manifest version 2 is out dated your chrome browser might complain about it, to upgrade we can use the manifest version 3 and things are little different here as there is no javascript involved and just a pair of two json below will block a bunch of url for you.
manifest.json
{
"manifest_version": 3,
"name": "AdvertShield",
"version": "3.1",
"description": "AdvertShield is a URL/Request Blocking Extension by (c)killercodes.github.io \n This will blaock all the ads coming from a list",
"permissions": ["webRequest", "declarativeNetRequest","declarativeNetRequestFeedback"],
"host_permissions" :["http://*/*", "https://*/*"],
"declarative_net_request" : {
"rule_resources" : [{
"id": "ruleset_1",
"enabled": true,
"path": "block_rules.json"
}]
}
}
block_rules.json
[
{
"id": 1,
"priority": 1,
"action": { "type": "block" },
"condition": {"urlFilter": "doubleclick.net", "resourceTypes": ["csp_report", "font", "image", "main_frame", "media", "object", "other", "ping", "script","stylesheet", "sub_frame", "webbundle", "websocket", "webtransport", "xmlhttprequest"] }
},
{
"id": 2,
"priority": 1,
"action": { "type": "block" },
"condition": { "urlFilter": "googleadservices.com", "resourceTypes": ["csp_report", "font", "image", "main_frame", "media", "object", "other", "ping", "script","stylesheet", "sub_frame", "webbundle", "websocket", "webtransport", "xmlhttprequest"] }
},
{
"id": 3,
"priority": 2,
"action": { "type": "block" },
"condition": { "urlFilter": "googlesyndication.com", "resourceTypes": ["csp_report", "font", "image", "main_frame", "media", "object", "other", "ping", "script","stylesheet", "sub_frame", "webbundle", "websocket", "webtransport", "xmlhttprequest"] }
},
{
"id": 4,
"priority": 1,
"action": { "type": "redirect", "redirect": { "url": "https://example.com" } },
"condition": { "urlFilter": "twitter.com", "resourceTypes": ["main_frame"] }
}
]
For this to work you need to put this in a folder and enabled Developer mode in chrome://extensions/ then click load unpacked and browse to the folder.
If this is all confusing look for https://github.com/Killercodes/Advert-Shield/tree/Version-3.0