Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Chrome for Android text selection popup

I want to hide the Chrome for Android text selection popup that is shown if the user selects any text, such that the default text option popup (attached screenshot) does not appear.

Is there anyway to do so using javascript, without removing the text-selection feature as a whole?

enter image description here

like image 238
Shivam Tyagi Avatar asked Feb 20 '17 05:02

Shivam Tyagi


People also ask

How do I stop the search bar from popping up on my Android?

Here's how it works: Open Settings, then open Apps. In the All apps list, find Google app, or just Google, tap it and select disable. Reboot your phone and the Search bar should be gone!


1 Answers

you can use css , like this , try it :)

user-select: none;

.disable-selection{
    -moz-user-select:none;
    -ms-user-select:none;
    -webkit-user-select:none;
}
<p class="disable-selection">can't select this</p>

<p>can select this</p>
like image 102
GuaHsu Avatar answered Sep 28 '22 18:09

GuaHsu