toptal / gitignore.io

Create useful .gitignore files for your project

Home Page:https://www.toptal.com/developers/gitignore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website does not function when Ad Block is enabled

Septem151 opened this issue ยท comments

Issue

The website does nothing when adblocker is on. Clicking the "Create" button does nothing.

Development Environment:

  • Machine (Local, Container, Virtual):
  • Operating System (Name/Version):
  • Web Browser: Brave Browser Version 1.37.111 Chromium: 100.0.4896.79 (Official Build) (64-bit)
  • Vapor Version:
  • Swift Version:

Expected Behavior:

Clicking "Create" on the website should redirect me to the generated gitignore file.

Actual Behavior:

Clicking "Create" does nothing. No errors reported in console, no network activity.

Reproduction Steps:

Open a web browser to either https://www.toptal.com/developers/gitignore/ or https://gitignore.io and have any Ad Blocker enabled (in my case, ublock origin and the built-in Brave browser Ad Block). Try to click "Create" with a specified language(s) to generate, watch as nothing happens. Reproducible with Brave's built-in Ad Block disabled and using just ublock origin.

Same is also reproducible in firefox private windows without any addons and normal windows with ublock enabled.

The only way i am using this site is via incognito window in google chrome which does not have any addons enabled.

I can't get the "Create" button to work in any browser (Safari, Firefox, Chromium) even without any adblocking extensions.

Same on Chrome with AdBlock. Thanks for ruining the tool :)

It's not working for me either, regardless of extensions and the browser itself.

Facing the same issue. But works in Chrome's Incognito mode.

Same issue, Windows 11, Chrome 100.0.4896.127 (Official Build) (64-bit). I'm just updating Chrome, will see if that helps, then I'll try incognito mode as suggested above.

EDIT - Did not work after updating. Did not work in Incognito mode with uBlock Origin still enabled. DID WORK in normal mode on Chrome with uBlock disabled for the site. It looks like gitignore.io has become incompatible with uBlock for some reason.

Same issue. Doesn't work in any browser - not even in Chrome with incognito mode. Tried disabling PiHole to see if that corrected the issue but still doesn't work.

Windows 10: 19044.1645
Firefox 99.0.1
Chrome 100.0.4896.127

Going into incognito mode doesn't work for me. It works when I disable all my add-ons on firefox.

Another way to get your gitignore file is to call their endpoint directly. For example,
wget https://www.toptal.com/developers/gitignore/api/python,vim .gitignore for python+vim

You can list the available options with
curl https://www.toptal.com/developers/gitignore/api/list

Same... is this a bug or a feature? ๐Ÿ‘๏ธ

I just checked, and it's working with Chrome and Firefox (no need to disable any add-ons), but not Safari ๐Ÿ˜‚

Just tried with Chrome, version 101.0.4951.54. Site does not work with uBlock Origin on, the Create button doesn't do anything.

Thanks for taking a pure, simple developer tool and commercialising it. Gotta get those KPIs up!

commented

Got the create button to work in Chrome Incognito mode. Doesn't work in regular mode. Possibly related to uBlock origin.

Tested in Brave Browser [Version 1.38.111 Chromium: 101.0.4951.54 (Official Build) (64-bit)]
It works in a private window with the Brave shields down (it has an internal adblocker), but in a regular window, it does not work, even with all the adblockers disabled.

Tested in Chrome [Version 101.0.4951.54 (Official Build) (64-bit)]
It works in normal and private windows, as long as the adblocker is disabled.

I'm having this issue in Chrome with U-Block Origin turned on. With it turned off, the site works fine. In the console, I see this error:

GET https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194 net::ERR_BLOCKED_BY_CLIENT

Currently not working with network-wide ad blocking. Applies to both Safari and Firefox.

main.js is successfully loaded.

I wrote this user script to bypass the misuse of Google Analytics. The code is hidden behind event report callback. ๐Ÿ‘Ž

This script would fix this issue and #577.

(function() {
    'use strict';
 
    unsafeWindow.gtag = (event, ...args) => {
        var cb = args[1].event_callback;
        if (typeof cb === "function") {
            cb();
        }
        console.log(event, ...args);
    };
})();

The userscript could be installed on GreasyFork - Emulate Google Analytics on gitignore.io.

Tested with Safari 15.5 and AdGuard enabled. I am not able to click the create button

Tested with Safari 15.5 and AdGuard enabled. I am not able to click the create button

Not able to click the create button with Safari 15.5 and AdGuard installed, but disable on this site or even pause running.

A fix has been released ๐Ÿš€
Please, let us know if you encounter any further issues.
Thanks for the report!

#577 (comment)