1
0
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:
Kris Maglione
2008-09-10 04:28:11 +00:00
parent 161278a172
commit 4b6c27b1e7
8 changed files with 98 additions and 63 deletions

View File

@@ -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;
},