News for hackers. Stuff that matters.
Re:Your Android Phone Is a Security Key by ksec on Wednesday April 10, 2019 @03:26PM (#19627943)
Off topic:

This is the state of web we are in, and this is coming from Google. [1] I have literally 20% of the screen displaying useful information. The others are all useless navigation or related crap. Just seeing it nearly got me to puke.

It is one those problem in general where the web page is responsive and mobile first.

[1] https://ibb.co/fCfmW6h

Re:Your Android Phone Is a Security Key by aerotwelve on Wednesday April 10, 2019 @03:50PM (#19628159)
Sticky elements that follow you around while scrolling a web page should be banned like the blink tag. Especially in a mobile browser.

I know where the navigation bar is, if I want to use it, I'll scroll back up and touch something on it. If I want to read related articles, I'll scroll down past your piece, which is where that kind of nonsense always is.

But it gets better: you know what's almost always sticky? Those hideous share/"post this to a social networking site" badges! As shown in that screenshot, even Google can't resist that one!

Why are you covering my viewport with everything but the content you want me to read? Are you trying to make me leave? You know I only have so many pixels on my five inch mobile screen, right??

Re:Your Android Phone Is a Security Key by pwg on Thursday April 11, 2019 @09:49AM (#19634458)
Put this javascript into the URL field of a bookmark (thereby making it a "bookmarklet" [1]) and then select the bookmark [2] on any page that has those sticky elements. Once run, the sticky elements will be gone. Note multi-lines below, but it will all be one line in the URL field.:

    javascript:(function () {                               
      var i,elements=document.querySelectorAll('body *');   
      for (i=0;i<elements.length;i++) {                     
        if (getComputedStyle(elements[i]).position==='fixed' 
            || getComputedStyle(elements[i]).position==='sticky') {
          elements[i].parentNode.removeChild(elements[i]);
        }
      }
    })();
uBlock Origin's custom filters can also be used to delete those sticky elements as well.

[1] https://en.wikipedia.org/wiki/Bookmarklet

[2] on Firefox for Android, 'selecting' the bookmark to run on a page entails touching the URL bar, then selecting the bookmark item into which you placed the javascript from the bookmarks list that will appear.

Re:Your Android Phone Is a Security Key by NikolaNovak on Wednesday April 10, 2019 @03:35PM (#19628024)
I fully 101% agree with you in principle, but in this particular case my experience is wildly different. As soon as I scrolled, the navigation got out of the way, and all I have is text - with author's decision to keep large wide white margins. (Vanilla Chrome on Windows - no extensions/plugins/blockers, no reader mode, etc)

https://imgur.com/5DOqvj1

Re:Your Android Phone Is a Security Key by phyzome on Wednesday April 10, 2019 @06:46PM (#19629468)
What happens when you scroll up a tiny amount? Do the floating dickbars come back?

In my case, I didn't opt in to running the site's javascript... so there were no floating bars. :-)

Re:Your Android Phone Is a Security Key by ksec on Wednesday April 10, 2019 @03:39PM (#19628060)
Well in my case.

Hide Related Article at the bottom wont go unless I actually click it.

The gigantic three layer navigation bar appears when I scroll up just a little.

On Safari 12.1 macOS

Re:Your Android Phone Is a Security Key by modwilliam on Wednesday April 10, 2019 @03:43PM (#19628090)
Looks like you're zoomed in or have a larger default font size, so it's not fair to say this is the state of the web
Re:Your Android Phone Is a Security Key by rrix2 on Wednesday April 10, 2019 @08:55PM (#19630163)
so the state of the web is fine as long as you don't have accessibility needs? neato.
Re:Your Android Phone Is a Security Key by theDoug on Wednesday April 10, 2019 @03:54PM (#19628196)
But looking at a web page nearly made his body vomit!
Re:Your Android Phone Is a Security Key by lucb1e on Wednesday April 10, 2019 @04:49PM (#19628652)
Turning off JavaScript sometimes helps, but often just breaks the site. However, I also have a button to turn off CSS, which just flips a setting (dead simple addon, no security risk, can't break anything, and doesn't need a page refresh). I use it about once a week for articles with too low contrast, annoying fonts (this is getting better over the past year or so), or crappy sites like this.

The article after turning off CSS: https://snag.gy/RmXpxl.jpg

To my surprise, without JS the layout stayed the same, only the annoying elements on top and bottom when scrolling are no longer there. That's actually perfect in this case.

It's really weird to notice all the JavaScript still functioning despite just having transformed the site from Google to motherfuckingwebsite-style. The add-on I use: https://addons.mozilla.org/en-US/firefox/addon/css-toggler/

Re:Your Android Phone Is a Security Key by 556B19BB on Thursday April 11, 2019 @05:44AM (#19632488)
> The article after turning off CSS: https://snag.gy/RmXpxl.jpg

I found it amusing after you mention turning off Javascript, and then that link doesn't work without it.

The actual image is at https://i.snag.gy/RmXpxl.jpg

Re:Your Android Phone Is a Security Key by lucb1e on Thursday April 11, 2019 @07:20AM (#19633101)
Heh :)

I don't browse with JS off, I only turn it off for sites that are a pain in the ass when it's on.

Re:Your Android Phone Is a Security Key by pwg on Wednesday April 10, 2019 @03:50PM (#19628157)
I see this: https://ibb.co/ZJQ7Z2h

The extra wide padding on the sides is still wasteful, but it is not as bad as your experience.

However, none of the javascript on the page is executed, because I also run NoScript in default deny mode, and for the screen shot, all the JS is blocked. It looks like the javascript is partially responsible for part of the extra you are seeing.

Yes, testing with javascript allowed, it is the javascript that is adding the fixed top and bottom banners to the page.