News for hackers. Stuff that matters.
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by smnrchrds on Thursday May 23, 2019 @10:20AM (#19992036)
Tangential question: neither McDiarmid's "Kill Sticky Headers" [0] nor its improved version [1] work on this website. Does anyone know how the bookmarklet can be changed to work here?

[0] https://alisdair.mcdiarmid.org/kill-sticky-headers

[1] https://news.ycombinator.com/item?id=19962875

Re:PayPal's Beautiful Demonstration of Extended Validation FUD by fiddlerwoaroof on Thursday May 23, 2019 @10:42AM (#19992202)
Is the bookmarklet being blocked by a CSP? There should be an error in the console about that (on chrome, at least)
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by smnrchrds on Thursday May 23, 2019 @10:51AM (#19992273)
Indeed it is. So I guess there is no way around it?
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by Someone1234 on Thursday May 23, 2019 @10:56AM (#19992337)
A browser extension. Most can run in a context above CSP.
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by fiddlerwoaroof on Thursday May 23, 2019 @11:08AM (#19992444)
Yeah, interestingly enough the CSP spec says that this behavior is wrong, but browser makers don’t seem to care.

https://bugzilla.mozilla.org/show_bug.cgi?id=866522

https://bugs.chromium.org/p/chromium/issues/detail?id=233903

Re:PayPal's Beautiful Demonstration of Extended Validation FUD by bzbarsky on Thursday May 23, 2019 @10:04PM (#19997859)
We do in fact care. I put up a fix on https://bugzilla.mozilla.org/show_bug.cgi?id=1478037 just yesterday which will make https://alisdair.mcdiarmid.org/kill-sticky-headers work in Firefox no matter what the CSP says. I fully expect to get that landed sometime in the next few weeks.

Making CSP not affect bookmarklets at all (as opposed to not affecting whether they execute) is a different situation entirely, because bookmarklets by definition execute in the JS environment of the page (unlike extensions, say), so it's not really possible to tell apart things that the bookmarklet does from things the page does. For example, what should happen if the bookmarklet calls a page-defined function that then does a subresource load? What if a bookmarklet defines a function to do a subresource load that the page later calls? Note that from the point of view of the JavaScript engine the functions the bookmarklet defines and the ones the page defines are indistinguishable from each other...

Re:PayPal's Beautiful Demonstration of Extended Validation FUD by fiddlerwoaroof on Thursday May 23, 2019 @11:47PM (#19998297)
Sorry, I was a bit frustrated with how long that (and similar bugs in other browsers) have been open without resolution.
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by bzbarsky on Friday May 24, 2019 @02:25AM (#19998980)
I can understand that, for sure!
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by smnrchrds on Thursday May 23, 2019 @11:26PM (#19998206)
That's awesome! Thank you!
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by darkpuma on Thursday May 23, 2019 @11:00AM (#19992366)
Ublock Origin's "zap" tool works on it, and you can make the change permanent by creating a cosmetic filter for '##.container.header_block'
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by the_pwner224 on Thursday May 23, 2019 @07:13PM (#19996956)
In the uBO settings you can bind Zap to a keyboard shortcut. I use ctrl-shift-f. Quite useful.
Re:PayPal's Beautiful Demonstration of Extended Validation FUD by illnewsthat on Thursday May 23, 2019 @01:41PM (#19993984)
I recommend adding this filter to uBlock Origin: https://raw.githubusercontent.com/yourduskquibbles/webannoya...

It blocked the sticky header for me on this site no problem.

> Description: Web Annoyances Ultralist Sublist for CSS element modifications - Modify site elements that block screen real estate - Primarily used to "pin-in-place" sticky headers, dickbars, floating headers, floating videos, scrolling headers, scrolling videos, stickynavs and other distracting page elements.