-
Notifications
You must be signed in to change notification settings - Fork 925
Closed
Description
Prerequisites
- This is NOT a YouTube, Facebook, Twitch or a shortener/hosting site report. These sites MUST be reported by clicking their respective links.
- I read and understand the policy about what is a valid filter issue.
- I verified that this issue is not a duplicate. (Use this button to find out.). Comment in the old issue threads even when they are closed or even if you have a different problem.
- I did not remove any of the default filter lists, or I have verified that the issue was not caused by removing any of the default lists.
- I did not enable additional or non-default filter lists, or I have verified that the issue still occurs without enabling additional filter lists.
- I do not have custom filters/rules, or I have verified that the issue still occurs without custom filters/rules.
- I have verified that the web browser's built-in content blocker/tracking protection, network wide/DNS blocking, or my VPN is not causing the issue.
- I have turned off all other extensions and the issue still persists. (exception "Firefox Multi-Account Containers").
- If this is about a breakage or detection, I have verified that it is caused by uBlock Origin and isn't a site or browser issue.
- I have verified that the browser I am using is up to date with no pending updates.
- I did not answer truthfully to ALL the above checkboxes.
URL address of the web page
https://manhuarmmtl.com/Category
detection
Description
Website uses an ai generated text translation overlay. It is not being rendered upon adblock detection.
Console prints out: Manga OCR Script: Ad-blocker detected (fetch failed). OCR disabled.
I have found this code snippet in the page source by searching for the error message string:
<html>
<body>
<!--StartFragment-->
// <-- NEW CHANGE 2: Replaced bait-div logic with FETCH logic -->
--
document.addEventListener('DOMContentLoaded', function () {
// We run the check after a short delay
setTimeout(function() {
// Add a random query string to bypass browser cache
const adUrl = 'https://al5sm.com/tag.min.js?_adcheck=' + Date.now();
// We create a "no-cors" request. We don't need to read the response,
// we just need to see if the request itself is blocked.
// <-- *** THE CRUCIAL CHANGE IS HERE *** -->
// We now use 'GET' to mimic the real ad script request,
// which uBlock Origin cannot differentiate from a simple probe.
const adRequest = new Request(adUrl, {
method: 'GET', // <-- WAS 'HEAD', NOW 'GET'
mode: 'no-cors'
});
// Try to fetch the ad script
fetch(adRequest)
.then(response => {
// SUCCESS: The request was *not* blocked by an ad-blocker.
// We can now run the OCR script.
console.log('Manga OCR Script: Ad-blocker not detected. Initializing OCR.');
createSettingsPanel();
const chapterInput = document.getElementById('wp-manga-current-chap');
if (!chapterInput) {
console.log("Manga OCR Script: Chapter ID input not found.");
return;
}
const chapterId = chapterInput.dataset.id;
const ocrFileUrl = `https://manhuarmmtl.com/wp-content/uploads/ocr-data/${chapterId}.json`;
fetch(ocrFileUrl)
.then(response => {
if (!response.ok) {
throw new Error('OCR file not found.');
}
return response.json();
})
.then(data => {
runOcrScript(JSON.stringify(data));
})
.catch(error => console.log("Manga OCR Script: " + error.message));
})
.catch(error => {
// FAILURE: The request failed.
// This is almost certainly because an ad-blocker blocked it.
console.log('Manga OCR Script: Ad-blocker detected (fetch failed). OCR disabled.');
const notice = document.getElementById('no-blocking');
if (notice) {
notice.innerHTML = '<strong>Translated text is blocked.</strong> Please disable your ad-blocker to load the text overlays.';
notice.style.display = 'block';
}
});
}, 500); // 500ms delay.
<!--EndFragment-->
</body>
</html>Browser name and version
Microsoft Edge Version 142.0.3595.53
Other extensions used
SteamDB
Super Styles
AHA Music Finder
Global Speed
Country
No response
Screenshot(s)
Configuration
uBlock Origin: 1.67.0
Chromium: 142
filterset (summary):
network: 163447
cosmetic: 42058
scriptlet: 26314
html: 0
listset (total-discarded, last-updated):
default:
user-filters: 0-0, never
ublock-filters: 41703-74, now
ublock-badware: 10560-31, now
ublock-privacy: 3562-4, now
ublock-unbreak: 2703-1, now
ublock-quick-fixes: 379-16, now
easylist: 85101-501, now
easyprivacy: 54813-680, now
urlhaus-1: 30965-5, now
plowe-0: 3478-0, now
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
allReadyAfter: 959 ms
maxAssetCacheWait: 344 ms
cacheBackend: indexedDB
popupPanel:
blocked: 5
network:
al5sm.com: 2
cloudflareinsights.com: 1
googlesyndication.com: 1
googletagmanager.com: 1Metadata
Metadata
Assignees
Labels
No labels


