pennywise icon indicating copy to clipboard operation
pennywise copied to clipboard

Feature advice , mobile mode or custom HTTP headers

Open me10zyl opened this issue 6 years ago • 9 comments

Do you want to request a feature or report a bug? feature What is the current behavior? only PC browser Expected behavior Mobile Mode Screenshots

Pennywise Version: 0.5.1 OS / OS Version: Mac OSX 10.13.3

me10zyl avatar Nov 05 '18 09:11 me10zyl

Resize the window it will interact with sites that are responsive, sometimes you may have to write m. infront of urls if they have their mobile site on a subdomain.

The-Code-Monkey avatar Nov 05 '18 09:11 The-Code-Monkey

some sites have fixed minimum element width even if they are responsive when I need to resize it smaller, subdomain is ok, but mobile mode switch may be better.

me10zyl avatar Nov 05 '18 12:11 me10zyl

resize the window then as that would cause the website to resize. if its not resizing its not our issue most likely the website you are trying to view has some issue. all the websites ive tested both ways on work.

The-Code-Monkey avatar Nov 05 '18 12:11 The-Code-Monkey

If you could add some screenshots to your original issue that would be more helpful

The-Code-Monkey avatar Nov 05 '18 12:11 The-Code-Monkey

What website is it that you are trying to access that won't work in pennywise?

The-Code-Monkey avatar Nov 05 '18 19:11 The-Code-Monkey

em... website in pc view working good, what I mean is some sites in small window using mobile browser is more convenient, for that matter, a shortcut key can switch it into mobile browser quickly.Forgive my poor English...

me10zyl avatar Nov 06 '18 02:11 me10zyl

@The-Code-Monkey

I think this is problem of user-agent. Current pennywise set desktop-mode for user-agent and It doesn't change. https://github.com/kamranahmedse/pennywise/blob/0.6.0/src/components/web-page/index.js#L12

I know that some web-site conclusion using browser width if PC or Mobile, another web-site use user-agent or url prefix about "m" like https://naver.com and https://m.naver.com.

If accept @me10zyl 's suggestion, Need to feature that convert user-agent toggle about PC and mobile to set <webview> element.

HyunmoAhn avatar Nov 06 '18 04:11 HyunmoAhn

What im saying is doing user-agent is not required as you can put m. if you need or you can resize the window size.

The-Code-Monkey avatar Nov 06 '18 08:11 The-Code-Monkey

@The-Code-Monkey Lots of services render mobile web pages based on the user-agent.

geekdada avatar Nov 08 '18 18:11 geekdada