Reddit Domain Blocker

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Reddit Domain Blocker.zip113.2 KBLast Updated: November 27, 2026Vivaldi

Hides Reddit posts that link to domains you don’t want to see, such as dailybeast.com. Add a domain from the toolbar popup or by right-clicking a link, and matching posts disappear from your feed as you scroll. It works on www.reddit.com and old.reddit.com, and nothing it does leaves your browser.

The toolbar popup with five blocked domains, one of them snoozed
On this page

Install

  1. Open vivaldi://extensions and turn on Developer mode.
  2. Click Load unpacked and pick this folder. Keep the folder where it is, since the browser loads the extension from it.

After updating the files, click Reload on the extension card and reload any open Reddit tabs. The browser doesn’t put a new content script into pages that are already open.

Using it

Blocking a domain

Click the toolbar icon, type a domain and press Enter. Full URLs are fine; they are trimmed to the domain. Blocking dailybeast.com also blocks its subdomains, such as amp.dailybeast.com. Click ✕ next to a domain to unblock it.
Once the list has 20 or more domains, a filter box appears above it.

You can also right-click any link on Reddit and choose Block dailybeast.com. The menu names the domain under the cursor, and the post disappears straight away. If the menu ever names a different domain from the link you clicked, nothing is blocked and the menu goes back to “Block links from this domain”; right-click again to block the link you’re on.

Snooze and pause

The ☾ button next to a domain stops blocking it for 24 hours, then blocking resumes on its own. A snoozed row shows how long is left, and ⏻ resumes blocking at once.

Pause in the popup header stops all blocking without changing the list. The badge reads off while it is paused.

The toolbar badge

Badge Meaning
A number How many posts are hidden on this page
Blank Nothing matched on this page
off Blocking is paused
! No posts could be found on this feed

The ! badge means the extension waited for a feed to render and couldn’t find a single post. That almost always means Reddit changed its page layout and the detection needs updating. Without it, a broken extension would look like a quiet day on your feed.

Settings page

Right-click the toolbar icon and choose Options, or click Import list… in the popup. There you can:

  • Choose what a blocked post looks like: a one-line Hidden: dailybeast.com · show row (the default), so you can still open it, or nothing at all.
  • Paste several domains at once, one per line or separated by commas.
  • Export, import, and set up scheduled backups (below).

Backup and restore

Export list, in the popup or on the settings page, saves every setting to reddit-domain-blocker-settings-YYYY-MM-DD-HHMMSS.json in your downloads folder: blocked domains, preferences, snoozes and the backup schedule.

Import on the settings page reads a file you drop onto the page or pick with Choose file. It lives there rather than in the popup because the popup closes as soon as the file picker opens.

  • Add to my list (default) adds the file’s domains to yours and leaves your preferences alone.
  • Replace my list uses only the file’s domains and preferences.

Either way you see how many domains were added, skipped as duplicates, or rejected as invalid. Open Reddit tabs update without a reload. A plain JSON array of domains imports too, as do files from version 1.1.

Scheduled backup on the settings page saves every setting into a folder inside Downloads (default Reddit Domain Blocker Backups) every N days, as reddit-domain-blocker-backup-YYYY-MM-DD-HHMMSS.json. The first backup is made when you turn it on, and the schedule is checked every hour, so a backup that fell due while the browser was closed is made within an hour of opening it. Back up now makes one at once.

Only the newest backup from each earlier day is kept, for as many days as Earlier backups to keep allows, and old ones are removed only after a new backup has finished saving. Only backups this extension saved and the browser still lists in its downloads are ever deleted.

Restore replaces your domains, preferences, snoozes and backup schedule with a backup or export file, after you confirm.
Expired snoozes are dropped, and older files without a schedule or snoozes leave those alone. A restored file is checked the same way as the settings form, so a crafted file can’t store anything the form wouldn’t.

The schedule and the time of the last backup stay on this computer and don’t sync, since the backups are saved to this computer’s downloads folder.

The file looks like this. snoozes maps each snoozed domain to when its snooze ends, in milliseconds since 1970.

{
  "format": "reddit-domain-blocker/settings",
  "version": 3,
  "exportedAt": "2026-09-06T12:00:00.000Z",
  "blockedDomains": ["dailybeast.com", "example.org"],
  "prefs": { "paused": false, "hideMode": "collapse" },
  "snoozes": { "example.org": 1788782400000 },
  "backupSchedule": { "enabled": true, "everyDays": 3, "keep": 3, "folder": "Backups/Reddit Domain Blocker" }
}

Syncing and limits

The list, preferences and snoozes are kept in chrome.storage.sync, so they follow you to other browsers signed in to the same account. Each is capped at 8 KB (roughly 400 domains for the list); past that, saving fails and the extension says so.

Troubleshooting

Backups are saved as download.json.
Another extension that renames downloads is overriding the backup’s name. Download Router keeps it; for other extensions, turn them off or check their settings.

Files

File Purpose
manifest.json Manifest V3, module service worker
background.js Service worker: badge, right-click menu, snooze expiry, scheduled backups, and the message handlers
content.js Runs on Reddit pages: hides or collapses matching posts and reports the badge count
shared.js Domain rules, storage, import parsing and backup file format, on globalThis.RDB (tested in Node)
popup.html, popup.js Toolbar popup: add, remove, snooze, pause, filter, export
options.html, options.js Settings page: display mode, bulk add, import, export, scheduled backup and restore
shared/backup.js Shared backup helpers and scheduler, on globalThis.SharedBackup. A plain script, so the worker loads it with import and pages with <script>. Do not edit here
shared/sender.js Shared message-sender and host checks. Do not edit here
shared/suite.js Link to the Plugin Suite Backup Manager, on globalThis.SuiteLink. Do not edit here
shared/brand.js The “Made by infolific.com” footer on this plugin’s pages (logo, plugin page and hub links). Do not edit here
shared/infolific.png, shared/infolific-24.png The infolific.com logo, for the footer and (24px) the top of this README
test_backup.mjs Node tests for the domain, import and backup rules
test_messages.mjs Node tests for who may send which message to the service worker
icons/ Toolbar icons, plus the icon.svg source (the PNGs add the infolific.com badge from tools/brand/badge-icons.py)
screenshot.png The screenshot above

Permissions

Permission Why
storage The blocked list, preferences, snoozes and backup schedule
contextMenus The “Block this domain” right-click item
alarms Waking snoozed domains back up, and the hourly check for a due backup
downloads Saving scheduled backups and removing old ones
*://*.reddit.com/* Running the content script on Reddit pages

The extension has no network code; nothing is sent anywhere.

Security notes

  • Every message handler checks the sender with shared/sender.js. Back up now is accepted only from the settings page, and the badge and link reports only from the content script in a top-level https:// reddit.com page.
  • The content script runs inside Reddit’s page, so the worker re-checks what it sends: badge counts must be whole numbers, and a domain reaches the menu only if it is valid and not Reddit’s own.
  • Script on reddit.com can stop the content script from seeing a right-click, which would leave the menu naming an earlier domain. The menu acts only when its label matches the link the browser says was clicked (RDB.menuTarget), and resets after every click.
  • The content script only reads settings and never writes chrome.storage. Imported and restored files go through the same checks as the settings form.
  • Text from web pages is written with textContent, never innerHTML.
  • The link to the Plugin Suite Backup Manager (shared/suite.js) answers only the manager’s fixed extension id. It can report the backup schedule and last backup, start a backup, and open the restore page with a backup file. It never writes settings itself, so a file it hands over goes through the same checks and confirmation as one picked on that page.

Tests

node test_backup.mjs
node test_messages.mjs

Version history

2.8.0 — infolific.com branding: a “Made by infolific.com” footer on the options and popup pages, linking to this plugin’s page and the infolific.com hub for AI-created software (shared/brand.js); a small infolific.com badge on the icons; and the manifest’s homepage_url points to the plugin’s page, so the extensions page shows a Website link.

2.7.0 — Works with the new Plugin Suite Backup Manager, which shows this plugin’s backup schedule and last backup, can start a backup, and can hand a backup file to the restore page here.
Only the manager’s extension id is answered (shared/suite.js).

2.6.0 — Brought in line with the plugin template.
Message senders are checked with the shared shared/sender.js: Back up now only from the settings page, and badge and link reports only from the content script in a top-level https:// reddit.com page. Badge counts from the page must be whole numbers. Added test_messages.mjs, a screenshot, and a README in the template’s layout. Requires Chromium 116 or later.

2.5.7 — The service worker is now an ES module ("type": "module"), loading its helpers with import instead of importScripts(). No change in behaviour; alarms, settings and backups carry over.

2.5.6 — Scheduled backups run on the suite’s shared backup code (shared/backup.js). Backup files, and restoring old ones, are unchanged.

⬇️ Download Reddit Domain Blocker.zip113.2 KBLast Updated: November 27, 2026Vivaldi

← All AI-created software