mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Allow ;p to yank any element which contains text
This commit is contained in:
parent
3c282ab1df
commit
6cd93b233d
1 changed files with 1 additions and 15 deletions
|
@ -197,7 +197,7 @@ function hintables() {
|
|||
|
||||
function elementswithtext() {
|
||||
|
||||
return DOM.getElemsBySelector(HINTTAGS_text_selectors,
|
||||
return DOM.getElemsBySelector("*",
|
||||
[DOM.isVisible, hint => {
|
||||
return hint.textContent != ""
|
||||
}]
|
||||
|
@ -252,20 +252,6 @@ select,
|
|||
[tabindex]
|
||||
`
|
||||
|
||||
const HINTTAGS_text_selectors = `
|
||||
input:not([type=hidden]):not([disabled]),
|
||||
a,
|
||||
area,
|
||||
iframe,
|
||||
textarea,
|
||||
button,
|
||||
p,
|
||||
div,
|
||||
pre,
|
||||
code,
|
||||
span
|
||||
`
|
||||
|
||||
const HINTTAGS_img_selectors = `
|
||||
img,
|
||||
[src]
|
||||
|
|
Loading…
Add table
Reference in a new issue