# RK Adblock — source and attribution

RK Adblock 0.10.0 uses an independently written filter parser/compiler and Chrome's native declarativeNetRequest engine. It does not include Adblock Plus Core or the full eyeo SDK. Since 0.12.0 it also contains no eyeo code at all: the YouTube modules are original (see below). dist/bundle-inputs.json records runtime source inputs.

Public filter lists remain third-party material. EasyList and EasyPrivacy: The EasyList authors, https://easylist.to/ . Original snapshots and headers are in filters/, with source URLs, download dates and SHA-256 hashes in filters/provenance.json. See https://easylist.to/pages/licence.html for the repository's GPLv3-or-later / CC-BY-SA-3.0-or-later dual licensing. This project uses its GPL-compatible distribution option.

EasyList Cookie List and Fanboy's Annoyance List: The EasyList/Fanboy authors, https://easylist.to/ and https://secure.fanboy.co.nz/ . Downloaded snapshots explicitly state CC-BY-3.0: https://creativecommons.org/licenses/by/3.0/ . Generated JSON files are adaptations: cookie duplicates are removed from the annoyance list, unsupported rules are omitted and reported, network syntax is translated to Chrome rules, and standard cosmetic rules are indexed by domain. A few original selectors supplement the public lists. The original list headers are preserved. These third-party lists retain their respective licenses.

The new compiler, UI, integration, tests, build scripts and original code-drawn icon are distributed under GPL-3.0-only as a project licensing choice. Removing an engine dependency does not remove third-party filter-list attribution or the chosen source license. The full corresponding source is included in the source archive.

esbuild (MIT) and Playwright (Apache-2.0) are development dependencies only. Neither is a browser extension runtime dependency. Their versions and development dependency graph are pinned in package-lock.json.

## Independent matching engine and suffix data

Version 0.4.0 adds the first-party standalone matcher in src/filtering-engine.js, its public-suffix resolver in src/domains.js and compiled-source explanations. No upstream ad-blocking engine implementation was used. The Public Suffix List (Mozilla Foundation and contributors, https://publicsuffix.org/) is a bundled data dependency under MPL-2.0. Its original source and copyright/license header are in filters/public-suffix-list.dat, its license is in filters/licenses/PUBLIC-SUFFIX-MPL-2.0.txt, and the generated src/public-suffixes.json retains source URL, license ID and SHA-256 hash. That data keeps its MPL license. The checked-in preparation script generates normalized exact, wildcard and exception entries using the platform URL parser.

Interstitial handling targets the identified WordPress Interstitial Ads plugin script and overlay structure, plus explicitly named interstitial-ad containers. These are original rules based on observed markup; tester illustration images are retained. No third-party plugin implementation was copied.

## 0.5.0 YouTube and coverage update
Adds original, YouTube-only player-response filtering for initial player data, fetch and text/JSON XHR calls to /youtubei/v1/player. It removes known ad-placement fields (adPlacements, playerAds, adSlots), preserving main streaming data and unrelated API responses. It respects video opt-out, site exceptions and global pause. Refresh YouTube after changing the setting. The script is bundled locally and runs in the page MAIN world on YouTube only; it has no extension API access and receives only a boolean enable/disable signal. No upstream filtering engine or scriptlet implementation is used.

Adds HaGeZi Multi LIGHT domain data to Tracker protection, retaining its original headers and GPLv3 license in filters/licenses/HAGEZI-GPL-3.0.txt. The snapshot is filters/extended-privacy.txt, with URL/hash in filters/provenance.json. It is merged into EasyPrivacy rules and can be disabled through Tracker protection. This broad list blocks additional ads, analytics and telemetry hosts across sites; it is not enabled only on the tester. Ordinary adsbox/textads/banner_ads selectors and ad-script paths improve cosmetic and script coverage. No tester score or result is modified.

Measured https://adblock.turtlecute.org/ in isolated profiles: 64% before and 96% after, with screenshots and result reports in artifacts/score-*.json and PNG files. Scores are observations, not guarantees on other sites. One signed-out live YouTube video played without a media error and advanced from roughly 6 to 14 seconds with no ad-showing state observed; this does not prove universal ad removal. Controlled tests verify initial/fetch/XHR responses, preservation of content, navigation and opt-out controls. Server-inserted ads, future player formats and anti-adblock systems can still defeat filtering.

The optional strict rules in filters/strict.txt are original RK Adblock rules under GPL-3.0-only. No test-site source is shipped as filtering code. The live benchmark scripts read the public site results without changing test behavior.

The original now.gg compatibility implementation is in src/nowgg-main.js. The now.gg public site scripts were inspected for compatibility research but are not included as extension code. No Adblock Plus/eyeo engine code was introduced. Google Funding Choices API references: https://developers.google.com/funding-choices/fc-api-docs .

## YouTube modules (original since 0.12.0)

Versions 0.9.0 to 0.11.0 adapted two eyeo Anti-Circumvention Snippets (tmp-yt-buffering-spoof.js and tmp-yt-force-reload.js, GPL-3.0-only). RK Adblock 0.12.0 removed that adaptation, its tests and the vendored originals. Its YouTube handling is newly written: src/youtube-main.js removes ad schedules from player data without changing any request sent to YouTube, src/youtube-enforcement.js answers YouTube's closable ad-blocker notice once, and src/youtube-player.js holds the pruning rules. The standalone RK Adblock Engine SDK does not import these modules.

RK Adblock 0.17.0 (YouTube ghost mode) is newly written code. The facts it relies on about YouTube's own behavior, which bait requests YouTube checks, its abnormality handler and 17-second wait, and the playback-context variants YouTube serves without ads, were learned from the public uBlock Origin filter discussions and uAssets quick-fix lists (GPL-3.0). No uBlock Origin code or scriptlet is included.
