Suppose you've created dozens, even hundreds, of custom filters in your journeys across the Web. If you aren't using AdBlock's Premium Backup & Sync feature, your filters won't sync to your other AdBlock extensions. Even worse, if your custom filters are accidentally deleted or lost in a hard drive crash, they could be gone forever.
If you use the AdBlock desktop extension on Chrome, Firefox or Edge, you can turn all those custom filters into a filter list that you subscribe to, just like EasyList or any other "official" list. It's downloaded every time you launch your browser on any computer. Here's how.
Step 1: Get your custom filters into a text file
- Open any text editor and create a new file.
- Paste the following text at the beginning of the file. Copy the lines exactly as they appear here, and don't forget the exclamation point in the last line.
[Adblock Plus 2.0]
! Version:
! Title:
! Last modified:
! Expires: 4 days (update frequency)
! Homepage:
! - Copy your custom filters and paste them after that last exclamation point.
- Save your file. Be sure it's in text-only format and the name ends in ".txt" (for instance, "myfilters.txt").
- Upload the file to your Dropbox, Google Drive, or OneDrive.
Step 2: Get the direct download link
First, get the public "anyone with the link can view" share link to your file. Then convert the public share link to a direct download link.
Why do you need this step? The share link you get in Step 1 is a "preview" link that opens, not the file itself, but a preview of the file. It's pretty easy to convert that preview link into a link that downloads the file directly. The procedure you'll use depends on where you stored the file.
We found these instructions in a Zapier tutorial.
- Point at the file in the Dropbox file listing and click the Share button that appears.
- If you don't see "Anyone with the link can view this file," click Link settings and select Anyone with the link next to "Who can view this link?"
- Click Copy link.
- Open any text editor and paste the link.
- Replace "www.dropbox.com" in the URL with "dl.dropboxusercontent.com."
- Copy the new URL to the clipboard.
Example
Here's what that looks like:
Original:
https://www.dropbox.com/s/az7bwstq2rb5kmm/adblock_custom.txt?dl=0
Use this instead:
https://dl.dropboxusercontent.com/s/az7bwstq2rb5kmm/adblock_custom.txt?dl=0
We found these instructions in a post on the Digital Inspiration blog.
- Right-click the file in the Drive file listing and select Get shareable link.
- If link sharing is off, click the toggle switch to turn link sharing on.
- If you don't see "Anyone with the link can view," click Sharing settings, and then click the little down-pointing arrow to open the "who can access this file" list. Click More to see additional people you can give access to. Select On - Anyone with the link. Click Save, and then click Done.
- Click the share link to select it, and then press Ctrl+C to copy it to the clipboard.
- Open any text editor and paste the link.
- Replace "https://drive.google.com/file/d/FILE_ID/edit?usp=sharing" with "https://drive.google.com/uc?export=download&id=FILE_ID" where "FILE_ID" is the string that identifies the file.
- Copy the new URL to the clipboard.
Example
Here's what that looks like. The text in boldface is the file ID.
Original:
https://drive.google.com/file/d/0BxNyym5caOw6MjNrc2dVN2ZCRms/view?usp=sharing
Use this instead:
https://drive.google.com/uc?export=download&id=0BxNyym5caOw6MjNrc2dVN2ZCRms
If your file is stored in OneDrive, you have an advantage. You can use a handy little tool called the OneDrive 2017 Direct File Download URL Maker, which creates the link for you! Remember to copy the final link to the clipboard.
Step 3: Subscribe to your brand-new personal filter list
- Click the AdBlock toolbar icon and click on the gear symbol.
- Select the Filter Lists tab.
- Under Custom Filter Lists, paste the direct download link in the space provided and click Subscribe.
Troubleshooting
If you see anything other than "Updated right now" after you've subscribed to your filter list, here are some things to check.
- Be sure your file is plain text, with no formatting codes.
- Be sure the file name ends in ".txt" (for example, myfile.txt).
- Be sure the file follows the proper format for a filter list. See the example below.
- Be sure to use the public share link, not one that only you or any particular person can view.
- If your file is stored on Dropbox or Google Drive, be sure the edited URL is correct. See the examples in the appropriate section above.
What your filter list should look like:
[Adblock Plus 2.0] ! Version: ! Title: My Personal Filter List ! Last modified: ! Expires: 7 days (update frequency) ! Homepage: ! ||taboola.com^ (all the rest of your custom filters)
You don't need to provide values for Version, Title, Last modified, Expires, or Homepage. The keywords just need to be present in the file.