News for hackers. Stuff that matters.
Re:No, I Don’t Want to Subscribe to Your Newsletter by old-gregg on Friday March 24, 2017 @12:57PM (#13950331)
IMO it doesn't worth the time to discuss appropriate and inappropriate uses of JavaScript. It's way simpler to disable it entirely. I use two browsers: Firefox with "YesScript" extension which keeps the black list of sites where JS is disabled: see a popup? laggy scrolling? sticky headers? Bam! hit the button and you won't see it again.

For work, where web applications like Google suite matter, I use Chrome.

Some time ago browser developers realized that letting Javascript open new windows was a bad idea and every browser now has a setting (on by default) to block pop-ups. IMO now it's time to introduce a few other anti-abuse settings. My candidates are:

  - code execution on "scroll" events
  - CSS animations (web devs, your transitions are NEVER smooth, even of MBP)
  - position:fixed (auto-replace to position:static)
Re:No, I Don’t Want to Subscribe to Your Newsletter by rodovich on Friday March 24, 2017 @01:58PM (#13950855)
> position:fixed (auto-replace to position:static)

I've gotten pretty good results from a bookmarklet that converts `position: fixed` elements to `display: none`.

Re:No, I Don’t Want to Subscribe to Your Newsletter by tripzilch on Monday March 27, 2017 @04:27PM (#13971446)
Here's mine:

    javascript:for (let e of document.querySelectorAll('*')) if (/fixed|sticky/.test(getComputedStyle(e).position)) e.style.position = 'static';
I use it so many times a day it's not even funny (it's in my bookmarks bar, keyed to ctrl-2). I think it removes (or obscures) an element that I wanted to see in hindsight, way less than 1% of the time. It would be nice if I could just tell the browser to just ignore the `fixed` or `sticky` position properties entirely.
Re:No, I Don’t Want to Subscribe to Your Newsletter by apostacy on Friday March 24, 2017 @01:41PM (#13950697)
Those are all really good ideas, and I've had some similar thoughts myself.

But, they won't be added to Firefox unless they are first added to Chrome, and they certainly won't be added to Chrome.

Firefox was I believe the first browser to include blocking of popups, and it was said to be irresponsible and harmful to advertisers. But the days of Firefox being at all disruptive are long over.

Re:No, I Don’t Want to Subscribe to Your Newsletter by tripzilch on Monday March 27, 2017 @04:30PM (#13971470)
> Firefox was I believe the first browser to include blocking of popups

No it was Opera. Same for tabbed browsing (can you imagine not having that today? only spawning new windows?).