Skip to content

Instantly share code, notes, and snippets.

@phyllisstein
Last active April 23, 2022 04:51
Show Gist options
  • Save phyllisstein/d59428d795f81a7ee06926ed34507f44 to your computer and use it in GitHub Desktop.
Save phyllisstein/d59428d795f81a7ee06926ed34507f44 to your computer and use it in GitHub Desktop.
uBlock Origin to 11

uBlock Origin to 11

Ads are annoying for readers, poisonous to writers' relationship with their audience and their work, and a fundamentally unsustainable way for publishers to earn revenue. Which like.

My settings are very aggressive in what they block, and can sometimes break legitimate, non-advertising websites. That said, I rarely see that anymore, and it's easy enough to pause uBlock or AdGuard when a newsletter signup or a real content video gets zapped. They both include @beep's terrific Twitter filter, and a whole lot more.

Chrome, Edge, and Firefox

  1. Add the uBlock Origin extension to your favorite web browser.
  2. Click the Raw button for the my-ublock-backup.txt file on this page and save it somewhere safe.
  3. Open uBlock's settings by clicking the extension's icon, then the gears in its popup.
  4. Select Restore from file... and navigate to where you saved my-ublock-backup.txt.
  5. Go and sin no more.

Safari

  1. Install the AdGuard Mac app. Launch it and accept its the onboarding screen's defaults.
  2. Grab my AdGuard settings file. It's not plain text, like uBlock's config, but I promise it's safe.
  3. Click the AdGuard icon in your menu bar---it's a shield with a check mark. You should see the AdGuard interface. Click the Gear icon, then Advanced, then Import Settings.... Point it at the config file.
  4. AdGuard will load the settings and restart.
  5. Enable the AdGuard Assistant extension. Open Safari's preferences, then Extensions, and check the right box.
  6. Here endeth the lesson.
{
"timeStamp": 1644729994336,
"version": "1.41.1b0",
"userSettings": {
"cloudStorageEnabled": true,
"externalLists": "https://abp.oisd.nl/\nhttps://gist.githubusercontent.com/beep/9d78b409c54dd33d6722c0ed5e45c8b2/raw/aa29bd8c9e5d721f4855dad24b4e6adbe1f10ff3/ublock-twitterneue.txt\nhttps://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/experimental.txt\nhttps://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt",
"firewallPaneMinimized": false,
"hyperlinkAuditingDisabled": false,
"importedLists": [
"https://abp.oisd.nl/",
"https://gist.githubusercontent.com/beep/9d78b409c54dd33d6722c0ed5e45c8b2/raw/aa29bd8c9e5d721f4855dad24b4e6adbe1f10ff3/ublock-twitterneue.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/experimental.txt",
"https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt"
],
"popupPanelSections": 15,
"prefetchingDisabled": false,
"webrtcIPAddressHidden": true
},
"selectedFilterLists": [
"user-filters",
"ublock-filters",
"ublock-badware",
"ublock-privacy",
"ublock-abuse",
"ublock-unbreak",
"adguard-generic",
"adguard-mobile",
"easylist",
"adguard-spyware",
"easyprivacy",
"urlhaus-1",
"adguard-annoyance",
"adguard-social",
"fanboy-thirdparty_social",
"fanboy-cookiemonster",
"fanboy-annoyance",
"fanboy-social",
"ublock-annoyances",
"dpollock-0",
"mvps-0",
"plowe-0",
"https://gist.githubusercontent.com/beep/9d78b409c54dd33d6722c0ed5e45c8b2/raw/aa29bd8c9e5d721f4855dad24b4e6adbe1f10ff3/ublock-twitterneue.txt"
],
"hiddenSettings": {
"allowGenericProceduralFilters": true,
"assetFetchTimeout": 10,
"autoUpdatePeriod": 24,
"cacheStorageAPI": "indexedDB",
"extensionUpdateForceReload": true,
"uiFlavor": "fenix",
"uiStyles": "font-family: -apple-system, BlinkMacSystemFont, sans-serif",
"updateAssetBypassBrowserCache": true
},
"whitelist": [
"about-scheme",
"admin.microsoft.com",
"archives.newyorker.com",
"chrome-extension-scheme",
"chrome-scheme",
"dash.cloudflare.com",
"dev.grubstreet.com",
"dev.nymag.com",
"dev.thecut.com",
"dev.thestrategist.co.uk",
"dev.vulture.com",
"duet-theta.vercel.app",
"edge-scheme",
"ew44.ultipro.com",
"ghosttile.kernelpanic.im",
"here",
"https://pressgazette.co.uk/interview-atlantic-chief-executive-nicholas-thompson/",
"localhost",
"localhost.grubstreet.com",
"localhost.nymag.com",
"localhost.thecut.com",
"localhost.thestrategist.co.uk",
"localhost.vulture.com",
"moz-extension-scheme",
"opera-scheme",
"secure.bankofamerica.com",
"stg.grubstreet.com",
"stg.nymag.com",
"stg.thecut.com",
"stg.thestrategist.co.uk",
"stg.vulture.com",
"test",
"theverge--com.sbn.sb0.k8s.voxops.net",
"verizon.com",
"verizonwireless.com",
"vivaldi-scheme",
"www.cfpland.com",
"www.facebook.com",
"www.thecut.com",
"wyciwyg-scheme"
],
"dynamicFilteringString": "behind-the-scene * * noop\nbehind-the-scene * inline-script noop\nbehind-the-scene * 1p-script noop\nbehind-the-scene * 3p-script noop\nbehind-the-scene * 3p-frame noop\nbehind-the-scene * image noop\nbehind-the-scene * 3p noop",
"urlFilteringString": "",
"hostnameSwitchesString": "no-large-media: behind-the-scene false\nno-csp-reports: * true\nno-strict-blocking: speedcurve.com true",
"userFilters": "! 4/23/2020 https://www.nytimes.com\nwww.nytimes.com##.e1x0szx60\n\n! 5/2/2020 notion.so\n@@||widget.intercom.io^$domain=www.notion.so\n\n! 2020-08-20 https://azure.microsoft.com\nazure.microsoft.com##.chatContainer\n\n@@||localhost^$all\n\n! 2020-09-28 https://smile.amazon.com\nsmile.amazon.com###nav-flyout-anchor > .nav-flyout.nav-flyout-smile-tt\n\n@@||github.io^$all\n\n@@||google-analytics.com/*optimize_editor^$all\n\ngoogle.com##div[id^='eob']\n\n! ##*:matches-css(position: fixed):has(video)\n! ||amazon.com#@#*:matches-css(position: fixed):has(video)\n! ||hulu.com#@#*:matches-css(position: fixed):has(video)\n! ||netflix.com#@#*:matches-css(position: fixed):has(video)\n\n! 2021-02-02 https://www.youtube.com\nwww.youtube.com###chatframe\n\n@@||speedcurve.com^$all\n\n! 2021-02-18 https://www.fastcompany.com\nwww.fastcompany.com##.siderail-video-module\n\n! 2021-09-28 https://www.theatlantic.com\nwww.theatlantic.com##.ArticleRelatedContentModule_root__1MN9q\n\n@@||duet-theta.vercel.app/^$all\n\n@@||pressgazette.co.uk##.social_media:not(html):not(body)\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment