question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to exclude mobile browsers from the result?

See original GitHub issue

This is not working last 2 versions not mobile here http://browserl.ist/?q=last+2+versions+not+mobile

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

31reactions
aicommented, Apr 12, 2017

We Exclude it name by name. I don’t want to add shortcut for it, because it is very bad practice. Web should be accessible for mobile users too — there is many poor people without PC and only with cheap Android.

29reactions
aicommented, Mar 15, 2019

@danpantry I see two options here:

  1. I am adding some not mobile query. You with 10+ developers are a little happy (because it is syntax sugar you can still ignore mobile with long query). 10 000+ people are not really happy (instead of your case, the website will not work on mobile devices and they will not have any option to avoid this problem compare to you), because other bad developers will use not mobile on the wrong case.
  2. I still keeping API from adding this query. You are a little unhappy (you still can ignore mobile browsers by name). 10 000+ people are happy because they are not cut from the global world (a lot of people have only a mobile phone).

Yeap, I know that we are all put our wishes above. And I understand that syntax sugar with one not mobile query is always better than long config.

But this is a good example of a hard choice. When few people should suffer to protect others. I think it is a good deal since you still can remove mobile browsers, Just list them by the name not android > 0, ….

If you want, you can create a sharable Browserslist config with this list. https://github.com/browserslist/browserslist#shareable-configs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exclude Code from Running in Mobile Browser - Stack Overflow
I specifically want to exclude certain images and flash files from showing on a website - but only when viewed on a mobile...
Read more >
Filter explicit results using SafeSearch - Google Support
On your Android phone or tablet, open the Google app . · At the top right, tap your Profile picture or initial and...
Read more >
How to exclude mobile browser settings from web browser settings ...
It's syncing the settings. In one of them, go into settings and find Sync. Then there should be something called Manage Sync. Deselect...
Read more >
How to exclude mobile apps from Google display ads without ...
Click on the Add negative mobile app category in the upper menu. You can then select to add these category exclusions from the...
Read more >
Exclude pages from search results based on device class ...
If you would like to block page from being crawled in Google mobile indexed Add the code below to your robots.txt file, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found