mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:08:00 +01:00
Added liberator.commandline.input() to prompt the user. Added prompt when opening too many tabs.
This commit is contained in:
@@ -338,9 +338,8 @@ liberator.Buffer = function () //{{{
|
||||
"//xhtml:input[not(@type) or @type='text' or @type='password'] | //xhtml:textarea[not(@disabled) and not(@readonly)]"
|
||||
);
|
||||
|
||||
for (let i = 0; i < matches.snapshotLength; i++)
|
||||
for (match in matches)
|
||||
{
|
||||
let match = matches.snapshotItem(i);
|
||||
let computedStyle = window.content.getComputedStyle(match, null);
|
||||
|
||||
if (computedStyle.getPropertyValue("visibility") != "hidden" && computedStyle.getPropertyValue("display") != "none")
|
||||
@@ -693,6 +692,10 @@ liberator.Buffer = function () //{{{
|
||||
null
|
||||
);
|
||||
|
||||
result.__iterator__ = asIterator
|
||||
? function() { let elem; while((elem = this.iterateNext())) yield elem }
|
||||
: function() { for(let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i) };
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user