Bug 1918995 - add a CSS intervention for calculator.net on Android to prevent the copy-paste UI from coming up while using their on-screen keyboard; r=denschub,webcompat-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D248984
This commit is contained in:
Thomas Wisniewski
2025-05-15 17:03:42 +00:00
committed by twisniewski@mozilla.com
parent a5b7fae1cc
commit 4ff7b6a31c
2 changed files with 32 additions and 0 deletions

View File

@@ -2933,6 +2933,23 @@
} }
] ]
}, },
"1918995": {
"label": "calculator.net",
"bugs": {
"1918995": {
"issue": "user-interface-frustration",
"matches": ["*://www.calculator.net/*"]
}
},
"interventions": [
{
"platforms": ["android"],
"content_scripts": {
"css": ["bug1918995-calculator.net-hide-copypaste-ui-for-buttons.css"]
}
}
]
},
"1935598": { "1935598": {
"label": "testbook.com", "label": "testbook.com",
"bugs": { "bugs": {

View File

@@ -0,0 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* calculator.net - Text-selection UI interrupts users
* Bug #1918995 - https://bugzilla.mozilla.org/show_bug.cgi?id=1918995
* WebCompat issue #141610 - https://webcompat.com/issues/141610
*
* The text-selection copy/paste UI is not disabled on the keys of the
* calculator, which can lead to frustration. This CSS prevents that.
*/
#sciout :has(.scinm) {
user-select: none;
}