Adblock Support for Embeds (#308)

Fixes #307 

- Adds optional adblock support, via wabac.js (dependent on
webrecorder/wabac.js#167).
- For now, adblock enabled only for embeds via the `useAdblock`
attribute, and can be enabled per archived item.
- By default, adblock filter rules from
[EasyList](https://easylist.to/easylist/easylist.txt) are used, however,
a custom filter rules file can be used via `adblockRulesUrl` attribute
(default is ./adblock/adblock.gz)
- Added `fetch-adblock.sh` script to fetch latest easylist, filter out
`##` rules and compress to `./adblock/adblock.gz`
- Not yet possible to enable adblock for standalone browsing via
replayweb.page
- bumps version to 2.0.0-beta.3
This commit is contained in:
Ilya Kreymer
2024-04-10 16:27:04 -07:00
committed by GitHub
parent 92343d59f7
commit 0814e28778
9 changed files with 32 additions and 7 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "replaywebpage",
"productName": "ReplayWeb.page",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "Serverless Web Archive Replay",
"repository": "https://github.com/webrecorder/replayweb.page",
"homepage": "https://replayweb.page/",
@@ -12,7 +12,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@shoelace-style/shoelace": "^2.8.0",
"@webrecorder/wabac": "^2.17.3",
"@webrecorder/wabac": "^2.18.0",
"bulma": "^0.9.3",
"electron-log": "^4.4.1",
"electron-updater": "^5.3.0",
@@ -73,7 +73,7 @@
"/index.html"
],
"scripts": {
"build": "webpack --mode production",
"build": "webpack --mode production && ./adblock/fetch-adblock.sh",
"build-dev": "webpack --mode development",
"build-docs": "yarn run build && cd mkdocs && ./copy-site.sh && mkdocs build",
"publish-docs": "yarn run build && cd mkdocs && ./copy-site.sh && mkdocs gh-deploy --force",