uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
3.99k stars 753 forks source link

tpaste.io: detection #15479

Closed SilkArt closed 1 year ago

SilkArt commented 1 year ago

Prerequisites

I tried to reproduce the issue when...

URL(s) where the issue occurs

https://tpaste.io

Describe the issue

Says "Ad Block Detected" when you try to access any page on the site.

Screenshot(s)

No response

uBlock Origin version

1.44.4

Browser name and version

Chrome 106.0.5249.119

Settings

! 2022-06-12 https://panel.thealtening.com
panel.thealtening.com##div.show.error:nth-of-type(2)
panel.thealtening.com##div.show.error:nth-of-type(1)

! 2022-06-23 https://ac.ontools.net
ac.ontools.net##.ad-modal

! 2022-06-27 https://financemart.receivefreesms.co.uk
financemart.receivefreesms.co.uk##.iepu-ebkcml-wrapper
financemart.receivefreesms.co.uk##.active.iepu-ebkcml-blackout

||blockchain-ads.com^$badfilter

! 2022-07-03 https://en.mrpopular.net
||en.mrpopular.net/img/banners/EN-etb-*.jpg$image

! 2022-07-10 https://app.tether.to
app.tether.to##.cdk-overlay-backdrop-showing.cdk-overlay-dark-backdrop.cdk-overlay-backdrop

@@||digminecraft.com^

! 2022-08-10 https://minecraft.fandom.com
minecraft.fandom.com##.WikiaRail.right-rail-wrapper
minecraft.fandom.com##.page__right-rail

! 2022-08-22 https://yunjisms.xyz
||img1.imgtp.com/2022/07/15/XQ06aBE9.jpg$image

||scribblestring.com^

! 2022-09-15 https://quizwepo.co
###exitpopup_bg
###exitpopup
quizwepo.co##.green.big.btn

! 2022-09-16 https://www.cssscript.com
www.cssscript.com###css-script-menu

||addotnet.com^

! 2022-09-21 https://mypasspoint.transfernow.net
mypasspoint.transfernow.net##div:nth-of-type(5)

! 2022-09-22 https://smsnator.online
smsnator.online##.table-hover.table > tbody > tr:nth-of-type(1) > td

! 2022-09-23 https://mee6.xyz
mee6.xyz##.animation-enter-done.dvSNNZ.sc-hc7iky-1

||filesusr.com^

! 2022-09-27 https://www.kinopoisk.ru
www.kinopoisk.ru##.styles_height250__Dw0ef

||atshop.io^$badfilter

! 2022-10-12 https://smailpro.com
smailpro.com##.hover\:bg-gray-600.cursor-pointer.shadow-inner.rounded-lg.p-2.font-bold.text-green-500.bg-gray-700.font-mono.text-sm.flex

||amazon.*^$removeparam=linkCode
||amazon.*^$removeparam=linkId
||amazon.*^$removeparam=ie
||amazon.*^$removeparam=_encoding
||amazon.*^$removeparam=ref

||gtechmonitor.com^

! 2022-10-31 https://discordbotlist.com
discordbotlist.com##h5.text-center

Notes

No response

dportvine commented 1 year ago
script ```adb function adBlockDetected(){ $('.page-content').html('
'+ad_block_message+'
'); isAdBlockActive = true; } function detectAdblock() { const adblockTests = { // https://github.com/uBlockOrigin/uAssets/blob/master/filters/filters-2022.txt uBlockOrigin: { url: 'https://incolumitas.com/data/exosrv.js', id: '837jlaBksSjd9jh', }, // https://github.com/easylist/easylist/blob/master/easylist/easylist_general_block.txt adblockPlus: { url: 'https://incolumitas.com/data/neutral.js?&adserver=', id: 'hfuBadsf3hFAk', }, }; function canLoadRemoteScript(obj) { return new Promise(function (resolve, reject) { var script = document.createElement('script'); script.onload = function () { if (document.getElementById(obj.id)) { resolve(false); } else { resolve(true); } } script.onerror = function () { resolve(true); } script.src = obj.url; document.body.appendChild(script); }); } return new Promise(function (resolve, reject) { let promises = [ canLoadRemoteScript(adblockTests.uBlockOrigin), canLoadRemoteScript(adblockTests.adblockPlus), ]; Promise.all(promises).then((results) => { resolve({ uBlockOrigin: results[0], adblockPlus: results[1], usingAdblock: (results[0] === true) || (results[1] === true), }); }).catch((err) => { reject(err); }); }); } detectAdblock().then((res) => { if (res.uBlockOrigin == true || res.adblockPlus == true || res.usingAdblock == true) { adBlockDetected(); } }); ```

https://tpaste.io/kpvdapulfk

tpaste.io##+js(aopr, adBlockDetected)