toptal / gitignore.io

Create useful .gitignore files for your project
https://www.toptal.com/developers/gitignore
MIT License
8.16k stars 618 forks source link

Website does not function when Ad Block is enabled #576

Closed Septem151 closed 2 years ago

Septem151 commented 2 years ago

Issue

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

Development Environment:

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.

kishaningithub commented 2 years ago

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.

jhult commented 2 years ago

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

Shaquu commented 2 years ago

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

dunefox commented 2 years ago

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

ravgeetdhillon commented 2 years ago

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

danwhitston commented 2 years ago

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.

rumdood commented 2 years ago

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

joeyshi12 commented 2 years ago

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

kelvinrfr commented 2 years ago

Same... is this a bug or a feature? 👁️

rungxanh1995 commented 2 years ago

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

umutseven92 commented 2 years ago

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!

rossheat commented 2 years ago

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

RobertNickRevnic commented 2 years ago

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.

wwestlake commented 2 years ago

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

nesevis commented 2 years ago

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

main.js is successfully loaded.

ttimasdf commented 2 years ago

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.

Sn0wfreezeDev commented 2 years ago

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

guoquan commented 2 years ago

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.

filipechagas commented 2 years ago

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

https://github.com/toptal/gitignore.io/issues/577#issuecomment-1161664768