Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions chrome/content/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ function handleTwisty(btn, multiple) {
toggleTwisty(btn, show);
if(multiple) {
var twisties = document.getElementsByTagName("button");
for(var i = 0, l = twisties.length; i < l; ++i) {
var twisty = twisties[i];
for(var twisty of twisties) {
if(isTwisty(twisty) && twisty != btn)
toggleTwisty(twisty, show);
}
Expand Down Expand Up @@ -126,4 +125,4 @@ if(!Object.create) { // Firefox 3.6 and older
document.removeEventListener("DOMNodeInserted", updProxy, false);
document.removeEventListener("DOMAttrModified", updProxy, false);
}, false);
}
}
8 changes: 3 additions & 5 deletions chrome/content/linkPropsPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ var linkPropsPlusSvc = {
delete this.fxVersion;
var pv = this.appInfo.platformVersion;
var v = parseFloat(pv);
var app = this.appInfo.name;
if(app == "Pale Moon" || app == "Iceape-UXP" || app == "Basilisk")
if (["Pale Moon", "Iceape-UXP", "Basilisk"].includes(this.appInfo.name))
return this.fxVersion = v >= 4.1 ? 56 : 28;
// https://developer.mozilla.org/en-US/docs/Mozilla/Gecko/Versions
if(v < 5) {
Expand Down Expand Up @@ -1647,8 +1646,7 @@ var linkPropsPlusSvc = {
},
updateTooltips: function() {
var nodes = this.field.getElementsByTagName("span");
for(var i = 0, l = nodes.length; i < l; ++i) {
var node = nodes[i];
for(var node of nodes) {
var ttl = node.title || node.getAttribute("lpp_title");
if(!ttl)
continue;
Expand Down Expand Up @@ -2353,4 +2351,4 @@ var linkPropsPlusSvc = {
return true;
}
};
linkPropsPlusSvc.instantInit();
linkPropsPlusSvc.instantInit();
8 changes: 4 additions & 4 deletions chrome/content/ownWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ var linkPropsPlusWnd = {
},
get titleFileName() {
var uri = this.svc.directURI || this.svc.requestURI || this.uri;
if(!uri || !this.svc.isValidURI(uri))
if(!(uri && this.svc.isValidURI(uri)))
return "";
var crop = this.pu.get("ownWindow.cropFileNameInTitle");
if(crop <= 0)
Expand Down Expand Up @@ -370,13 +370,13 @@ var linkPropsPlusWnd = {
uriChanged: function(cantGet) {
var uri = this.uri;
this.cantGet = cantGet || this.svc.activeRequest || !uri;
var notHttp = "" + !/^https?:\//i.test(uri);
var notHttp = (!/^https?:\//i.test(uri)).toString();
var tbr = this.tbReferer;
if(tbr.getAttribute("lpp_notUsed") != notHttp) {
tbr.setAttribute("lpp_notUsed", notHttp);
tbr.previousSibling.setAttribute("lpp_notUsed", notHttp);
}
var empty = "" + !uri;
var empty = (!uri).toString();
var tbu = this.tbUri;
if(tbu.getAttribute("lpp_empty") != empty) {
tbu.setAttribute("lpp_empty", empty);
Expand Down Expand Up @@ -431,4 +431,4 @@ var linkPropsPlusWnd = {
+ this.getNumProperty(elt, "borderTopWidth") + this.getNumProperty(elt, "borderBottomWidth")
+ this.getNumProperty(elt, "marginTop") + this.getNumProperty(elt, "marginBottom");
}
};
};
6 changes: 3 additions & 3 deletions chrome/locale/ru/mainWindow.dtd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!ENTITY linkPropsPlus.context "Свойства ссылки">
<!ENTITY linkPropsPlus.contextFor "Свойства ссылки $S">
<!ENTITY linkPropsPlus.contextAccesskey "й">
<!ENTITY linkPropsPlus.contextAccesskey "л">
<!ENTITY linkPropsPlus.tools "Свойства ссылки…">
<!ENTITY linkPropsPlus.toolsAccesskey "й">
<!ENTITY linkPropsPlus.toolsAccesskey "л">
<!ENTITY linkPropsPlus.toolbar "Свойства ссылки">
<!ENTITY linkPropsPlus.toolbarTooltip "Открыть окно для получения свойств ссылки (вы также можете перетащить сюда любую ссылку)">
<!ENTITY linkPropsPlus.toolbarTooltip "Открыть окно для получения свойств ссылки (вы также можете перетащить сюда любую ссылку)">