Skip to content

Commit bce9963

Browse files
authored
Merge pull request #2518 from mneunomne/master
Fix minor bugs
2 parents 8a3c830 + 43bc847 commit bce9963

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

filters/adnauseam.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,6 @@ metro.co.uk##body.mol-fe-ab-dialog:style(overflow-y: auto !important;)
841841
# 1337x.to - fixing popups that can't be collected
842842
||youradexchange.com^$important
843843

844-
# youtube-ads-audible https://github.com/dhowe/AdNauseam/issues/2385
845-
youtube.com,youtubekids.com,youtube-nocookie.com##+js(trusted-replace-fetch-response, /\"adPlacements.*?\"\}\}\}\]\,/, , player?key=)
846-
youtube.com,youtubekids.com,youtube-nocookie.com##+js(trusted-replace-fetch-response, /\"adSlots.*?\}\]\}\}\]\,/, , player?key=)
847-
youtube.com,youtubekids.com,youtube-nocookie.com##+js(trusted-replace-fetch-response, /\"playerAds.*?\}\}\]\,/, , player?key=)
848-
849844
# time-time.net https://github.com/dhowe/AdNauseam/issues/2432
850845
time-time.net##.info-ad-link
851846

src/js/3p-filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ const buttonUpdateAdNauseam = async function() {
674674
dom.cl.add(adnauseamEntry, 'obsolete');
675675
dom.cl.remove(adnauseamEntry, 'cached');
676676
setTimeout(function(){
677-
messaging.send('dashboard', { what: 'forceUpdateAdnauseam' });
677+
vAPI.messaging.send('dashboard', { what: 'forceUpdateAdnauseam' });
678678
},200);
679679
};
680680

src/js/contentscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ const bootstrapPhaseAdn = function (response) {
12641264
// check last time ran
12651265
let now = Date.now()
12661266
// run if its first time running or if the last time it ran was more than 1 sec ago
1267-
if (vAPI && lastRunBootstrapPhaseAdn === null || (lastRunBootstrapPhaseAdn && now - lastRunBootstrapPhaseAdn > intervalTime)) {
1267+
if (vAPI && (lastRunBootstrapPhaseAdn === null || (lastRunBootstrapPhaseAdn && now - lastRunBootstrapPhaseAdn > intervalTime))) {
12681268
// avoid it running too many times;
12691269
if (bootstrapPhaseAdnCounter >= maxTimesRunBootstrapPhaseAdn) {
12701270
bootstrapAdnTimer.clear();

src/logger-ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<span data-filtex="\x1F--\x1F|\x1F<<\x1F|\x1F##" data-i18n="loggerRowFiltererBuiltinBlocked"></span>
6565
<span data-filtex="\x1F\+\+\x1F|\x1F\*\*\x1F|\x1F#@#" data-i18n="loggerRowFiltererBuiltinAllowed"></span>
6666
<span data-filtex="[$,](?:csp|permissions|removeparam|redirect-rule|replace|urltransform)=|\x1F\<\<\x1F" data-i18n="loggerRowFiltererBuiltinModified"></span>
67-
<span data-filtex="\t~~">adn-<span style="pointer-events: none;" data-i18n="loggerRowFiltererBuiltinAllowed"></span> <!-- adnauseam allowed requests -->
67+
<span data-filtex="~~">adn-<span style="pointer-events: none;" data-i18n="loggerRowFiltererBuiltinAllowed"></span> <!-- adnauseam allowed requests -->
6868
</div>
6969
<div><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span>
7070
<span style="flex-direction: column;">

0 commit comments

Comments
 (0)