41

Recently I have seen net neutrality banner on the top of any SE site:

banner

I've closed it on MSE, but saw it again on SO, I've closed it too, and saw it on ruSO... and so on.

Please don't show it again on any other SE sites if I already close it once.

16
  • 8
    Ah, good point. I don't know if we'll have a chance to make the changes needed to make it behave that way this time (the banner isn't gonna be live long enough for it to really matter, basically), but we should keep it in mind for any future dismissable banners that apply to multiple sites (I believe this is the first one we've ever done that does).
    – Adam Lear StaffMod
    Commented Jul 12, 2017 at 5:53
  • Well it's bit tricky: what about sites you join after dismissing it on a site? Should the banner be dismissed there too? Commented Jul 12, 2017 at 6:55
  • I think SO give that much important to net neutrality Commented Jul 12, 2017 at 7:00
  • 3
    @ShadowWizard Eh, not really an issue. Even if all we can do is minimize impact... we could set a cookie for most Q&A sites at .stackexchange.com, which would also catch all new sites. That'd reduce the number of dismisses down to 7 (assuming no new SLDs). There are other things we can consider as well (e.g. account id-based entry in a cache shared by all sites for logged in users). Not sure if I'm missing any implications there off the top of my head, though... Hence my theory that it'll be a "next time" kind of thing. :)
    – Adam Lear StaffMod
    Commented Jul 12, 2017 at 7:38
  • 1
    @ShadowWizard On a second read of your comment... IMO the answer to "should the banner be dismissed on sites you join after dismissing it" is a solid "yes". This request reads to me as "make the dismiss work network-wide".
    – Adam Lear StaffMod
    Commented Jul 12, 2017 at 7:40
  • Thanks @Adam, this makes sense indeed. Commented Jul 12, 2017 at 7:48
  • @Adam while at it, is this possible to bring the banner back after dismissing it? Someone might click the dismiss by mistake, or later regret it and check again what it said. If done network wide, better also add some option to bring it back, no? Commented Jul 12, 2017 at 7:50
  • @ShadowWizard Eh. If all else fails, there's always incognito windows. I could see a more robust feature set for account-specific, less temporary notices, but for stuff like this? I think it's fine not to worry about it too much.
    – Adam Lear StaffMod
    Commented Jul 12, 2017 at 7:58
  • 5
    Gah. I just switched devices and now I have to dismiss them all again - could this also be account-based so that I don't have to dismiss it on different devices?
    – Mithical
    Commented Jul 12, 2017 at 8:10
  • 7
    Isn't it fun when a small feature turns out in a 6 to 8 weeks monster with many fail cases. And here we are only talking about a banner ... don't get me started on a Q/A feature ...
    – rene
    Commented Jul 12, 2017 at 8:13
  • @Adam lol, of course... blonde moment, forgot about that option. Commented Jul 12, 2017 at 8:59
  • If we close a banner on a site, it doesn't appear again. But when I change to other site, it is showing up. I closed it again. I think there should be a dialogue box like we see when we unupvote a comment.
    – Nog Shine
    Commented Jul 12, 2017 at 9:53
  • 3
    When I saw this meta question earlier, I didn't care. ~8 SE sites later, I care. Bad UX. Almost as bad as the "we use cookies" warnings I have to keep dismissing all across the web; almost. Commented Jul 12, 2017 at 15:02
  • 4
    Ffffffffffffffffffffuuuuuuuuuuuuuuuuuuuuuu
    – user1228
    Commented Jul 12, 2017 at 15:14
  • 1
    @Won't too late my friend. Commented Jul 12, 2017 at 15:16

1 Answer 1

9

I've hacked a very simple userscript (direct install link) which lifts the heavy burden of dismissing the banner for you.

For reference, here's the current source:

// ==UserScript==
// @name        Dismiss Net Neutrality Banner
// @namespace   https://github.com/Glorfindel83/
// @description Automatically dismisses the Net Neutrality banner whenever you visit a (new) site.
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/*
// @match       *://*.stackoverflow.com/*
// @match       *://*.superuser.com/*
// @match       *://*.serverfault.com/*
// @match       *://*.askubuntu.com/*
// @match       *://*.stackapps.com/*
// @match       *://*.mathoverflow.net/*
// @grant       none
// ==/UserScript==

(function () {
  "use strict";
  setTimeout(function() {
    $("#net-neutrality-dismiss").click();
  }, 100);
})();

As with all userscripts, you'll need a userscript manager, e.g. Greasemonkey for Firefox or Tampermonkey for Chrome, to install it.

6
  • Chrome hasn't let me "directly" install scripts like this for years; they have to be in the store. What am I missing? Commented Jul 12, 2017 at 15:04
  • 2
    @LightnessRacesinOrbit Tampermonkey.
    – Glorfindel Mod
    Commented Jul 12, 2017 at 15:04
  • That's better; thanks Commented Jul 12, 2017 at 15:08
  • 3
    I find it crazy that we need to install an extension and a userscript to get sane behaviour from a banner on Stack Exchange. Stack Exchange, y'know, where all the programming experts of the world hang out?! Commented Jul 12, 2017 at 15:22
  • 4
    Turns out setting a cookie once for the .stackexchange.com domain prevents the banner from showing up on all sub-domains: document.cookie = "net-neutrality=closed;path=/;domain=.stackexchange.com;max-age=3600". Leaves only dismissing on SO, SU, SF and the few other custom domains.
    – rene
    Commented Jul 12, 2017 at 15:52
  • I can tell that you poured hours of work into this code, +1 for effort :P Commented Jul 15, 2017 at 23:53

Not the answer you're looking for? Browse other questions tagged .