hackerweb | A simply readable Hacker News web app | Hacking library
kandi X-RAY | hackerweb Summary
kandi X-RAY | hackerweb Summary
This project started as one of my silly mini-projects. I create this initially to try out iOS 5+ Mobile Safari’s new -webkit-overflow-scrolling: touch CSS support. I need some sort of content for scrolling, so why not [Hacker News] stories? I’m also trying something called [Fake it til you make it] which I make the web app looks (and feels) like a native mobile app. In this case, like a native iOS app. If the web app is loaded on non-iOS devices, it’ll switch to the 'web theme which is like a generic theme for other browsers and platforms.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hackerweb
hackerweb Key Features
hackerweb Examples and Code Snippets
Community Discussions
Trending Discussions on hackerweb
QUESTION
When I visit hackerweb.app I get the following userAgent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
When I visit hackerweb.leftium.com I get the following userAgent:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1
I am using the exact same device and default Safari browser. What is going on? Interestingly, this happens on a 2020 iPhone SE, but not an iPhone 5. I wasn't able to test any other devices.
In addition, the two sites are ostensibly serving the exact same HTML files. I ran into this while trying to figure out why my fork of https://github.com/cheeaun/hackerweb did not render exactly the same. Due to the different user agent strings, one site defaults to the 'web' theme and the other defaults to the 'ios' theme.
update:
https://hackerweb.app/ defaults to desktop mode. Safari is asking for the desktop version; that is why the user agent is like that. 'Request Mobile Site' gets the expected iOS theme (and thus user agent). I'm still not sure why Safari does this. Perhaps it's because of the ".app" TLD?
I did not accidentally switch it to desktop mode. It's the default mode after 'Clear History and Website Data', no matter which mode I leave it in.
...ANSWER
Answered 2021-Mar-28 at 08:26There is a "Request Desktop Website" in "Website Settings" that I must have toggled and forgotten about. This setting is saved even after "Clear History and Website Data."
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hackerweb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page