Native Android client for Spotify, built with Jetpack Compose
Kotlin ad-freeadblockandroidjetpack-composekotlinlyricsmusic-playermusic-videomyspotispotifyspotify-adblockerspotify-clientspotify-connectspotui
Accounts Spotify refuses audio licences (#134): after 3 refusals in a row the ads Spotify queues are let through and play muted to their end instead of being blocked or skipped, and the first licence granted resumes the song and blocks ads again; a stuck ad is logged once, and an ad playing on another Connect device no longer reloads the page or takes playback back
kota-zof40484eca360
diff --git a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/LicenceRefusals.kt b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/LicenceRefusals.ktindex 206436c0..d3d18a69 100644--- a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/LicenceRefusals.kt+++ b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/LicenceRefusals.kt@@ -6,6 +6,10 @@ package app.myspoti.spotify* the page moved on by itself to the next one a fraction of a second later, through the list.* One refusal is a song that cannot play here (a market); [limit] within [windowMs] is the account.* Only observed: the request and its answer are Spotify's, nothing is answered in their place.+ * In #134 and the four diagnostics of 26/10 to 30/10 not one song's licence was granted, the first+ * refused before any ad or reload of the session: what this app does to ads within the session is+ * not what starts it. What clears it is not known; ads queued meanwhile are let play, muted+ * ([app.myspoti.spotify.bridge.AdBlock.adsOwed]), and the first licence granted ends it all.*/internal class LicenceRefusals(private val limit: Int = 3, private val windowMs: Long = 10_000) {private val times = ArrayDeque<Long>()@@ -22,5 +26,13 @@ internal class LicenceRefusals(private val limit: Int = 3, private val windowMs:companion object {/** A song's licence, not the Widevine certificate (both are under `widevine-license`). */fun isAudio(url: String): Boolean = "widevine-license" in url && "/audio/license" in url++ /**+ * Whether an ad that plays is let play (muted) to its end instead of got past (a reload, a+ * play of the next song): only while ads are owed ([app.myspoti.spotify.bridge.AdBlock.adsOwed]),+ * not on a page that only mirrors an extension's song (it is reloaded as before), and not an+ * ad whose file did not load ([refused]: it never ends by itself).+ */+ fun letAdPlay(owed: Boolean, mirroring: Boolean, refused: Boolean): Boolean = owed && !mirroring && !refused}}diff --git a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/SpotifyPlayer.kt b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/SpotifyPlayer.ktindex 2da7e695..63ada07a 100644--- a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/SpotifyPlayer.kt+++ b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/SpotifyPlayer.kt@@ -212,6 +212,8 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScopval s = _state.valueif (pageLicences++ < PAGE_LICENCES_LOGGED)bridge.logger?.invoke("page licence #$pageLicences: $status ${url.substringAfter("widevine-license", url).take(60)} on ${s?.item?.uri ?: "nothing"}, ${if (pageReadyAt > 0) "${now - pageReadyAt} ms after ready" else "page not ready"}")+ // A song's licence granted while ads were owed: Spotify plays this account again.+ if (status in 200..299 && LicenceRefusals.isAudio(url)) { licencesGranted(); return }if (status != 403 || !LicenceRefusals.isAudio(url)) return// The page only mirrors a song of an extension, heard from the phone's own player: its// licences are not what the user hears. Nor are another device's.@@ -229,6 +231,29 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScopbridge.logger?.invoke("Spotify refuses this account's audio licences ($why): paused, no reload nor replay until the next play")_licencesRefused.tryEmit(Unit)scope.launch { runCatching { pause() } }+ adsOwed(true)+ }++ /**+ * Ads owed (see [app.myspoti.spotify.bridge.AdBlock.adsOwed]): on from the refusal until a+ * song's licence is granted again. Every report of the refusal had no licence granted at all+ * and the one ad Spotify queued refused by the app; the ads it queues now play, muted.+ */+ private fun adsOwed(on: Boolean) {+ if (app.myspoti.spotify.bridge.AdBlock.adsOwed == on) return+ app.myspoti.spotify.bridge.AdBlock.adsOwed = on+ bridge.logger?.invoke(if (on) "ads let through and played muted until Spotify grants a licence again" else "ads blocked again: Spotify grants this account's licences")+ scope.launch { runCatching { bridge.call("ads.owed", buildJsonObject { put("on", on) }) } }+ }++ /** A song's licence granted (200): a refusal before it is over, its hold and its ads owed too. */+ private fun licencesGranted() {+ if (!app.myspoti.spotify.bridge.AdBlock.adsOwed && !licenceRefusedHold) return+ if (licenceRefusedHold) {+ licenceRefusedHold = false+ bridge.logger?.invoke("a licence granted again: repairs back on")+ }+ adsOwed(false)}/** The user plays (a pick, a skip, play): repairs may run again. */@@ -641,6 +666,10 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScopvar attempts = 0var adAttempts = 0var adReloaded = false+ /** This break was said once in the log: on another device, let play (ads owed), left as it is (held). */+ var remoteAdLogged = false+ var adOwedLogged = false+ var adHeldLogged = falsevar frozenReloadAt = 0L/** Consecutive ticks where the page answered nothing (see FROZEN_MISSES). */var frozenMisses = 0@@ -715,6 +744,18 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScoptickCrossfade(s, media, now)if (localMuted && s?.item?.uri != hushedUri) { hushedUri = s?.item?.uri; applyHush() }if (tick % VOLUME_CHECK_TICKS == 0) guardVolume(s, media)+ if (!_adPlaying.value) { remoteAdLogged = false; adOwedLogged = false; adHeldLogged = false }+ if (_adPlaying.value && remoteActive) {+ // The ad plays on another device of the account (Connect, Cast): muted there by the+ // app (RemoteAdMute), never got past from here. A reload or a play of the next song+ // was refused by it, or pulled playback back to the phone.+ if (!remoteAdLogged) bridge.logger?.invoke("ad on another device: nothing done from here")+ remoteAdLogged = true+ adSince = now+ notStalled()+ key = null; silentSince = 0L+ continue+ }if (_adPlaying.value) {// The screens show the break (or the song before it, waiting), not a stall.notStalled()@@ -737,10 +778,12 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScop// next song, so nothing clears the ad flag and the phone stays silent for good// (reported as "no sound until the app is restarted"). The sound comes back// anyway, and the state is read again.- if (adMutedAt > 0 && now - adMutedAt > AD_MUTE_MAX_MS) {- bridge.logger?.invoke("ad mute older than ${AD_MUTE_MAX_MS / 1000}s: unmuted")+ // Ads owed play to their end, a whole break of them (several ads) muted.+ val muteMax = if (app.myspoti.spotify.bridge.AdBlock.adsOwed) AD_BREAK_MAX_MS else AD_MUTE_MAX_MS+ if (adMutedAt > 0 && now - adMutedAt > muteMax) {+ bridge.logger?.invoke("ad mute older than ${muteMax / 1000}s: unmuted")runCatching { unmuteAfterAd() }- if (adStateAt > 0 && now - adStateAt > AD_MUTE_MAX_MS) {+ if (adStateAt > 0 && now - adStateAt > muteMax) {adState = null; adStateAt = 0LadAttempts = 0; adReloaded = false; adsOffSent = false_adPlaying.value = false@@ -765,12 +808,21 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScop}}// A refused ad sits at 0:00, buffering; a real one plays to its end.- val refused = ad != null && (ad.isBuffering || ad.speed == 0.0) && now - adSince > AD_STUCK_MS+ // Ads owed: its file now loads, which a slow phone takes more than AD_STUCK_MS over.+ val owed = LicenceRefusals.letAdPlay(app.myspoti.spotify.bridge.AdBlock.adsOwed, mirroring, refused = false)+ val refused = ad != null && (ad.isBuffering || ad.speed == 0.0) && now - adSince > (if (owed) AD_OWED_STUCK_MS else AD_STUCK_MS)// A video ad reports neither a position nor a speed the way an audio one does: it// is taken as playing from the start, so it is got past instead of waited on.val videoAd = ad?.item?.mediaType == "video"val playing = ad != null && !refused && (videoAd || now - adSince > AD_PLAYING_SKIP_MS) && !adReloaded- val stuck = refused || playing || now - adSince > AD_BREAK_MAX_MS+ // Ads owed (Spotify refuses the licences): one that plays is let play, muted, to its+ // end; one that does not, or a break past AD_BREAK_MAX_MS, is got past as before.+ val owedPlays = owed && !refused+ val stuck = refused || (playing && !owedPlays) || now - adSince > AD_BREAK_MAX_MS+ if (playing && owedPlays && !adOwedLogged) {+ adOwedLogged = true+ bridge.logger?.invoke("ad plays on ${ad?.item?.name}: let play muted, Spotify refuses this account's licences")+ }// Measured on 20/10 (desktop, free account, a real ad with its audio refused): the// page now keeps a refused ad current for good (20 min, buffering at 0:00), and// neither the in-stream manager's skipToNext nor playing the next song moves it@@ -782,7 +834,9 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScop// Licences refused: getting past the ad asks for one more (a reload, a play), held// until the user plays (see [licenceRefusedHold]).if (stuck && licenceRefusedHold) {- bridge.logger?.invoke("ad stuck on ${ad?.item?.name}: left as it is, Spotify refuses this account's licences")+ // Said once per ad: it came every 4 s for minutes (#134).+ if (!adHeldLogged) bridge.logger?.invoke("ad stuck on ${ad?.item?.name}: left as it is, Spotify refuses this account's licences")+ adHeldLogged = trueadSince = System.currentTimeMillis()} else if (stuck && pausedByUser) {// The user paused during the ad: getting past it never plays (a play of the next@@ -2337,6 +2391,8 @@ class SpotifyPlayer(private val bridge: Bridge, private val scope: CoroutineScopconst val AD_RESTORE_WAIT_MS = 6_000L/** A refused ad left current that long: the page will not move on by itself. */const val AD_STUCK_MS = 3_000L+ /** [AD_STUCK_MS] while ads are owed (see AdBlock.adsOwed): the ad's file loads then. */+ const val AD_OWED_STUCK_MS = 10_000L/*** An ad mute that old is lifted. The page never reports the end of a break, so a lost* unmute used to leave the phone silent until the app was restarted; longer than any addiff --git a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/Bridge.kt b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/Bridge.ktindex 84473ad8..f6f33ccf 100644--- a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/Bridge.kt+++ b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/Bridge.kt@@ -140,7 +140,8 @@ class Bridge(private val host: BridgeHost, scope: CoroutineScope) {// re-announces only when the host is not ready (a page it thought it had lost).// The page's generation goes in with it: a call made for a page that went away is refused// by the next one (see [call]) instead of running there.- host.evaluate("window.__mspPage = $pagesGone; window.__mspReannounce = ${!_ready.value}; ${BridgeScript.source}")+ // Ads owed (AdBlock.adsOwed): the new page leaves its own ad managers on from the start.+ host.evaluate("window.__mspPage = $pagesGone; window.__mspReannounce = ${!_ready.value}; window.__mspAdsOwed = ${AdBlock.adsOwed}; ${BridgeScript.source}")}/**diff --git a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/BridgeHost.kt b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/BridgeHost.ktindex 82bcf662..cd4a027f 100644--- a/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/BridgeHost.kt+++ b/base/api-spotify/src/main/kotlin/app/myspoti/spotify/bridge/BridgeHost.kt@@ -70,10 +70,27 @@ object AdBlock {"fastly-insights.com",)+ /** The trackers of [blockedHosts]: refused even while [adsOwed] (no ad needs them). */+ private val trackerHosts = setOf("googletagmanager.com", "google-analytics.com", "scorecardresearch.com", "fastly-insights.com")++ /**+ * Spotify refuses this account its audio licences (set by [app.myspoti.spotify.SpotifyPlayer]+ * from three 403 in a row, cleared by the first audio licence granted again). Every report of+ * it (#134 and five diagnostics, 26/10 to 03/11: free accounts, phones from three makers, L1+ * and L3) has the same course: no audio licence granted at all, then an ad Spotify queues,+ * whose file this app refuses, so the ad never plays and is never heard of again. Whether+ * Spotify withholds the licences until an ad plays is not known; meanwhile nothing plays+ * anyway, so the ads it queues are let through and play muted: their files load, the queue+ * keeps them ([withoutAds], [adAhead] stand aside) and the page's ad managers stay on.+ */+ @Volatile var adsOwed = false+fun isBlocked(url: String): Boolean {val rest = url.substringAfter("://")val host = rest.substringBefore('/').substringBefore('?').substringBefore(':').lowercase()- return blockedHosts.any { host == it || host.endsWith(".$it") }+ fun matches(h: String) = host == h || host.endsWith(".$h")+ if (adsOwed) return trackerHosts.any(::matches)+ return blockedHosts.any(::matches)}/**@@ -88,7 +105,7 @@ object AdBlock {* is left as it is; an ad that is already the current state cannot be left out either.*/fun withoutAds(body: String): Pair<String, List<String>>? {- if (!AD_HINT.containsMatchIn(body)) return null+ if (adsOwed || !AD_HINT.containsMatchIn(body)) return nullval root = runCatching { Json.parseToJsonElement(body).jsonObject }.getOrNull() ?: return nullval notes = mutableListOf<String>()val out = root.toMutableMap()@@ -115,7 +132,7 @@ object AdBlock {/** The [AdAhead] in a track-playback reply (after [withoutAds]), or null. */fun adAhead(body: String): AdAhead? = runCatching {- if (!AD_HINT.containsMatchIn(body)) return null+ if (adsOwed || !AD_HINT.containsMatchIn(body)) return nullval root = Json.parseToJsonElement(body).jsonObjectval machine = root["state_machine"] as? JsonObject ?: return nullval tracks = machine["tracks"] as? JsonArray ?: return null@@ -164,6 +181,7 @@ object AdBlock {*/fun whyKept(body: String): String? = runCatching {val marker = AD_HINT.find(body)?.value?.trim('"') ?: return null+ if (adsOwed) return "$marker: let through, Spotify refuses this account's licences"val root = Json.parseToJsonElement(body).jsonObjectval machine = root["state_machine"] as? JsonObject ?: return "$marker: no state machine in the reply"val tracks = machine["tracks"] as? JsonArray ?: return "$marker: no tracks"diff --git a/base/api-spotify/src/main/resources/bridge/player-bridge.js b/base/api-spotify/src/main/resources/bridge/player-bridge.jsindex e3c256ce..a387590f 100644--- a/base/api-spotify/src/main/resources/bridge/player-bridge.js+++ b/base/api-spotify/src/main/resources/bridge/player-bridge.js@@ -353,8 +353,13 @@// are left out of the queue by the host (AdBlock.withoutAds). The "Test ad" once taken for an// ad that came through was tools/playback_test.py's own fake.let adsLatched = false;+ // Spotify refuses the account its audio licences (the host's AdBlock.adsOwed, set before the+ // bridge is injected and by "ads.owed"): the ads it queues are let play, muted by the host, so+ // the page's own managers are left on and drive them as on any free account.+ const adsOwed = () => window.__mspAdsOwed === true;const adsOff = () => {if (!services) return 'not ready';+ if (adsOwed()) return 'owed: left on';if (adsLatched) return 'already off';let audio = null;try { audio = services.resolve('AdManagers').audio; } catch (e) { return 'unresolved'; }@@ -374,6 +379,30 @@return done.length ? (adsLatched = true, done.join(',')) : 'nothing to disable';};+ /**+ * Ads owed or not. On: the latch of [adsOff] is undone (the instance's `enable` stand-in removed,+ * the prototype's own run), so a break the server queues is played by the page's managers. Off:+ * the managers are turned off again.+ */+ const adsOwedSet = on => {+ window.__mspAdsOwed = !!on;+ if (!on) return adsOff();+ if (!services) return 'not ready';+ let audio = null;+ try { audio = services.resolve('AdManagers').audio; } catch (e) { return 'unresolved'; }+ if (!audio) return 'no ad manager';+ const done = [];+ for (const [label, mgr] of [['audio', audio], ['inStream', audio.inStreamApi]]) {+ if (!mgr) continue;+ try {+ if (Object.prototype.hasOwnProperty.call(mgr, 'enable')) delete mgr.enable;+ if (typeof mgr.enable === 'function') { mgr.enable(); done.push(label); }+ } catch (e) { /* left as it is */ }+ }+ adsLatched = false;+ return done.length ? 'on: ' + done.join(',') : 'nothing to enable';+ };+/*** Asks the in-stream ad manager to end its break. Kept for diagnosis only: on a real ad whose* audio was refused it did nothing (20/10), the server holds the ad ("ad_disallow").@@ -390,6 +419,7 @@const commands = {'bridge.version': () => VERSION,'ads.off': () => adsOff(),+ 'ads.owed': args => adsOwedSet(!!(args && args.on)),'ads.skip': () => adsSkip(),'player.state': () => mapState(need().player.getState()),diff --git a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/AdFlagTest.kt b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/AdFlagTest.ktindex 10942b27..ca78233a 100644--- a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/AdFlagTest.kt+++ b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/AdFlagTest.kt@@ -49,6 +49,7 @@ class AdFlagTest {@AfterEach fun down() {AdBlock.ahead.value = null+ AdBlock.adsOwed = falsescope.cancel()}@@ -92,4 +93,25 @@ class AdFlagTest {waitFor("ad flag cleared", ms = 15_000) { !player.adPlaying.value }assertEquals("spotify:track:B", player.state.value?.item?.uri)}++ private fun licence(status: Int) =+ """{"type":"net","url":"https://gew4-spclient.spotify.com/widevine-license/v1/audio/license","status":$status,"bytes":0,"ms":100}"""++ @Test fun `licences refused, ads owed until one is granted again (#134)`() = runBlocking {+ host.post("""{"type":"ready"}""")+ waitFor("page ready") { bridge.ready.value }+ host.post("""{"type":"state","state":${stateOf(track("A"))}}""")+ // The certificate is not a song's licence; one 403 is a song, not the account.+ host.post("""{"type":"net","url":"https://gew4-spclient.spotify.com/widevine-license/v1/application-certificate","status":200,"bytes":0,"ms":100}""")+ host.post(licence(403))+ delay(300)+ assertEquals(false, AdBlock.adsOwed)+ host.post(licence(403)); host.post(licence(403))+ waitFor("ads owed") { AdBlock.adsOwed && player.licencesHeld }+ // The ad Spotify queues meanwhile loads its file.+ assertEquals(false, AdBlock.isBlocked("https://adstudio-assets.scdn.co/mp3/x.mp3"))+ host.post(licence(200))+ waitFor("licences back") { !AdBlock.adsOwed && !player.licencesHeld }+ assertEquals(true, AdBlock.isBlocked("https://adstudio-assets.scdn.co/mp3/x.mp3"))+ }}diff --git a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/LicenceRefusalsTest.kt b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/LicenceRefusalsTest.ktindex 862e6c0c..7f5b143b 100644--- a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/LicenceRefusalsTest.kt+++ b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/LicenceRefusalsTest.kt@@ -28,4 +28,13 @@ class LicenceRefusalsTest {assertTrue(LicenceRefusals.isAudio("https://gew4-spclient.spotify.com/widevine-license/v1/audio/license"))assertFalse(LicenceRefusals.isAudio("https://gew4-spclient.spotify.com/widevine-license/v1/application/certificate"))}++ @Test fun `an ad that plays is let play only while ads are owed`() {+ assertTrue(LicenceRefusals.letAdPlay(owed = true, mirroring = false, refused = false))+ assertFalse(LicenceRefusals.letAdPlay(owed = false, mirroring = false, refused = false))+ // A page that only mirrors an extension's song is reloaded as before.+ assertFalse(LicenceRefusals.letAdPlay(owed = true, mirroring = true, refused = false))+ // An ad whose file did not load never ends by itself.+ assertFalse(LicenceRefusals.letAdPlay(owed = true, mirroring = false, refused = true))+ }}diff --git a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdBlockTest.kt b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdBlockTest.ktindex 94284107..cc1788cf 100644--- a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdBlockTest.kt+++ b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdBlockTest.kt@@ -13,6 +13,19 @@ class AdBlockTest {assertFalse(AdBlock.isBlocked("https://evil.com/adstudio-assets.scdn.co/x.mp3"))}+ @Test+ fun `ads owed, their files load and the trackers stay refused`() {+ AdBlock.adsOwed = true+ try {+ assertFalse(AdBlock.isBlocked("https://adstudio-assets.scdn.co/mp3/d0448345e619692e0b13626ad4994d4b824f7107.mp3"))+ assertFalse(AdBlock.isBlocked("https://pubads.g.doubleclick.net/gampad/ads?x=1"))+ assertFalse(AdBlock.isBlocked("https://s0.2mdn.net/ads/richmedia/studio/abc.mp4"))+ assertTrue(AdBlock.isBlocked("https://www.googletagmanager.com/gtm.js"))+ assertTrue(AdBlock.isBlocked("https://sb.scorecardresearch.com/b"))+ } finally { AdBlock.adsOwed = false }+ assertTrue(AdBlock.isBlocked("https://adstudio-assets.scdn.co/mp3/d0448345e619692e0b13626ad4994d4b824f7107.mp3"))+ }+@Testfun `blocks foreign ad servers only`() {assertTrue(AdBlock.isBlocked("https://pubads.g.doubleclick.net/gampad/ads?x=1"))diff --git a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdQueueTest.kt b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdQueueTest.ktindex 93357376..32abc77c 100644--- a/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdQueueTest.kt+++ b/base/api-spotify/src/test/kotlin/app/myspoti/spotify/bridge/AdQueueTest.kt@@ -52,6 +52,17 @@ class AdQueueTest {assertEquals(listOf("advance after Playing: After instead of an ad"), notes)}+ @Test fun `ads owed are left in the queue`() {+ AdBlock.adsOwed = true+ try {+ assertNull(AdBlock.withoutAds(first))+ assertNull(AdBlock.adAhead(second))+ assertTrue(AdBlock.whyKept(first)!!.contains("let through"))+ } finally { AdBlock.adsOwed = false }+ // Once a licence is granted again, they are left out as before.+ assertTrue(AdBlock.withoutAds(first) != null)+ }+@Test fun `when the skip goes to the ad too, the reply is left as it is`() =// show_next is a display-only state: the server refuses a page sent there (502).assertNull(AdBlock.withoutAds(second))