I installed Pale Moon.
This commit is contained in:
parent
9dc81e8ae4
commit
29da4807e4
@ -2750,15 +2750,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$.addClass = function() {
|
$.addClass = function() {
|
||||||
var className, el, _ref;
|
var className, classNames, el, _i, _len;
|
||||||
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
||||||
return (_ref = el.classList).add.apply(_ref, className);
|
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
|
||||||
|
className = classNames[_i];
|
||||||
|
el.classList.add(className);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.rmClass = function() {
|
$.rmClass = function() {
|
||||||
var className, el, _ref;
|
var className, classNames, el, _i, _len;
|
||||||
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
||||||
return (_ref = el.classList).remove.apply(_ref, className);
|
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
|
||||||
|
className = classNames[_i];
|
||||||
|
el.classList.remove(className);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.toggleClass = function(el, className) {
|
$.toggleClass = function(el, className) {
|
||||||
@ -7497,7 +7503,7 @@
|
|||||||
var a, frag, hash, text;
|
var a, frag, hash, text;
|
||||||
$.addClass(quoted.nodes.post, 'quoted');
|
$.addClass(quoted.nodes.post, 'quoted');
|
||||||
frag = QuoteBacklink.frag.cloneNode(true);
|
frag = QuoteBacklink.frag.cloneNode(true);
|
||||||
a = frag.lastElementChild;
|
a = frag.querySelector("a:last-of-type");
|
||||||
a.href = Build.path(quoter.board.ID, quoter.thread.ID, quoter.ID);
|
a.href = Build.path(quoter.board.ID, quoter.thread.ID, quoter.ID);
|
||||||
a.textContent = text = Conf['backlink'].replace(/%id/g, quoter.ID);
|
a.textContent = text = Conf['backlink'].replace(/%id/g, quoter.ID);
|
||||||
if (quoter.isDead) {
|
if (quoter.isDead) {
|
||||||
@ -18160,7 +18166,7 @@
|
|||||||
}));
|
}));
|
||||||
$.event('4chanXInitFinished');
|
$.event('4chanXInitFinished');
|
||||||
test = $.el('span');
|
test = $.el('span');
|
||||||
test.classList.add('a', 'b');
|
$.addClass(test, 'a', 'b');
|
||||||
if (test.className !== 'a b' && Conf['Show Support Message']) {
|
if (test.className !== 'a b' && Conf['Show Support Message']) {
|
||||||
new Notice('warning', "Your version of Firefox is outdated (v26 minimum) and appchan x may not operate correctly.", 30);
|
new Notice('warning', "Your version of Firefox is outdated (v26 minimum) and appchan x may not operate correctly.", 30);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2721,15 +2721,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$.addClass = function() {
|
$.addClass = function() {
|
||||||
var className, el, _ref;
|
var className, classNames, el, _i, _len;
|
||||||
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
||||||
return (_ref = el.classList).add.apply(_ref, className);
|
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
|
||||||
|
className = classNames[_i];
|
||||||
|
el.classList.add(className);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.rmClass = function() {
|
$.rmClass = function() {
|
||||||
var className, el, _ref;
|
var className, classNames, el, _i, _len;
|
||||||
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
||||||
return (_ref = el.classList).remove.apply(_ref, className);
|
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
|
||||||
|
className = classNames[_i];
|
||||||
|
el.classList.remove(className);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.toggleClass = function(el, className) {
|
$.toggleClass = function(el, className) {
|
||||||
@ -7518,7 +7524,7 @@
|
|||||||
var a, frag, hash, text;
|
var a, frag, hash, text;
|
||||||
$.addClass(quoted.nodes.post, 'quoted');
|
$.addClass(quoted.nodes.post, 'quoted');
|
||||||
frag = QuoteBacklink.frag.cloneNode(true);
|
frag = QuoteBacklink.frag.cloneNode(true);
|
||||||
a = frag.lastElementChild;
|
a = frag.querySelector("a:last-of-type");
|
||||||
a.href = Build.path(quoter.board.ID, quoter.thread.ID, quoter.ID);
|
a.href = Build.path(quoter.board.ID, quoter.thread.ID, quoter.ID);
|
||||||
a.textContent = text = Conf['backlink'].replace(/%id/g, quoter.ID);
|
a.textContent = text = Conf['backlink'].replace(/%id/g, quoter.ID);
|
||||||
if (quoter.isDead) {
|
if (quoter.isDead) {
|
||||||
|
|||||||
@ -215,7 +215,7 @@ Main =
|
|||||||
|
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
test = $.el 'span'
|
test = $.el 'span'
|
||||||
test.classList.add 'a', 'b'
|
$.addClass test, 'a', 'b'
|
||||||
if test.className isnt 'a b' and Conf['Show Support Message']
|
if test.className isnt 'a b' and Conf['Show Support Message']
|
||||||
new Notice 'warning', "Your version of Firefox is outdated (v<%= meta.min.firefox %> minimum) and <%= meta.name %> may not operate correctly.", 30
|
new Notice 'warning', "Your version of Firefox is outdated (v<%= meta.min.firefox %> minimum) and <%= meta.name %> may not operate correctly.", 30
|
||||||
|
|
||||||
|
|||||||
@ -116,11 +116,13 @@ $.X = (path, root) ->
|
|||||||
# XPathResult.ORDERED_NODE_SNAPSHOT_TYPE === 7
|
# XPathResult.ORDERED_NODE_SNAPSHOT_TYPE === 7
|
||||||
d.evaluate path, root, null, 7, null
|
d.evaluate path, root, null, 7, null
|
||||||
|
|
||||||
$.addClass = (el, className...) ->
|
$.addClass = (el, classNames...) ->
|
||||||
el.classList.add className...
|
el.classList.add className for className in classNames
|
||||||
|
return
|
||||||
|
|
||||||
$.rmClass = (el, className...) ->
|
$.rmClass = (el, classNames...) ->
|
||||||
el.classList.remove className...
|
el.classList.remove className for className in classNames
|
||||||
|
return
|
||||||
|
|
||||||
$.toggleClass = (el, className) ->
|
$.toggleClass = (el, className) ->
|
||||||
el.classList.toggle className
|
el.classList.toggle className
|
||||||
|
|||||||
@ -53,7 +53,7 @@ QuoteBacklink =
|
|||||||
buildBacklink: (quoted, quoter) ->
|
buildBacklink: (quoted, quoter) ->
|
||||||
$.addClass quoted.nodes.post, 'quoted'
|
$.addClass quoted.nodes.post, 'quoted'
|
||||||
frag = QuoteBacklink.frag.cloneNode true
|
frag = QuoteBacklink.frag.cloneNode true
|
||||||
a = frag.lastElementChild
|
a = frag.querySelector "a:last-of-type"
|
||||||
a.href = Build.path quoter.board.ID, quoter.thread.ID, quoter.ID
|
a.href = Build.path quoter.board.ID, quoter.thread.ID, quoter.ID
|
||||||
a.textContent = text = Conf['backlink'].replace /%id/g, quoter.ID
|
a.textContent = text = Conf['backlink'].replace /%id/g, quoter.ID
|
||||||
if quoter.isDead
|
if quoter.isDead
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user