Skip to content

Instantly share code, notes, and snippets.

@fardog
Created October 25, 2015 07:14
Show Gist options
  • Save fardog/b1cf83bf171c88875458 to your computer and use it in GitHub Desktop.
Save fardog/b1cf83bf171c88875458 to your computer and use it in GitHub Desktop.
uBlock Origin (or other blockers) and Google Contributor

The following instructions were able to get Google Contributor working for me, without a complete compromise of my browser settings. Some compromise, but that's what this is all about.

I'll keep this document updates as I learn more.

Sign up for Google Contributor

Obviously this assumes you have a Google Contributor account set up and paid for at whatever level you're comfortable with. Once set up, make sure you're signed in with the Google account that your Contributor account is set up with.

uBlock Origin Settings

  • Under uBlock Settings -> 3rd-party filters: Uncheck "Parse and enforce cosmetic filters
  • Under uBlock Settings -> My Filters: Add the following filters:
@@||google.com
@@||g.doubleclick.net
@@||ad.doubleclick.net
@@||pagead2.googlesyndication.com
@@||partner.googleadservices.com

Make sure to click the various "Apply Settings" links when presented.

Google Interest-Based Ads

Unfortunately you need to enable these. I had the easiest time enabling it from my Android phone:

  • Under Google Settings -> Ads Uncheck "Opt out of interest-based ads"

How you get to Google Settings varies with the vintage of your phone; on Marshmallow, this is under Settings -> Google.

Third-Party Cookies

You need to allow third party cookies from some domains. In Chrome:

  • Go to the hamburger menu -> settings
  • In the settings, scroll to the bottom and click "Show advanced settings…"
  • Under the "Privacy" heading, click the "Content Settings…" button
  • In the modal that appears, click the "Manage Exceptions…" button under the "Cookies" heading
  • Add the following domains as type "Allow"
    • [*.]google.com
    • [*.]g.doubleclick.net
    • [*.]ad.doubleclick.net
    • [*.]pagead2.googlesyndication.com
    • [*.]partner.googleadservices.com

At this point, visit some sites, you should see contributor ads!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment