I installed Pale Moon.

This commit is contained in:
Zixaphir 2014-12-09 21:29:03 -07:00
parent 9dc81e8ae4
commit 29da4807e4
5 changed files with 35 additions and 21 deletions

View File

@ -2750,15 +2750,21 @@
};
$.addClass = function() {
var className, el, _ref;
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
return (_ref = el.classList).add.apply(_ref, className);
var className, classNames, el, _i, _len;
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
className = classNames[_i];
el.classList.add(className);
}
};
$.rmClass = function() {
var className, el, _ref;
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
return (_ref = el.classList).remove.apply(_ref, className);
var className, classNames, el, _i, _len;
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
className = classNames[_i];
el.classList.remove(className);
}
};
$.toggleClass = function(el, className) {
@ -7497,7 +7503,7 @@
var a, frag, hash, text;
$.addClass(quoted.nodes.post, 'quoted');
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.textContent = text = Conf['backlink'].replace(/%id/g, quoter.ID);
if (quoter.isDead) {
@ -18160,7 +18166,7 @@
}));
$.event('4chanXInitFinished');
test = $.el('span');
test.classList.add('a', 'b');
$.addClass(test, 'a', 'b');
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);
}

View File

@ -2721,15 +2721,21 @@
};
$.addClass = function() {
var className, el, _ref;
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
return (_ref = el.classList).add.apply(_ref, className);
var className, classNames, el, _i, _len;
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
className = classNames[_i];
el.classList.add(className);
}
};
$.rmClass = function() {
var className, el, _ref;
el = arguments[0], className = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
return (_ref = el.classList).remove.apply(_ref, className);
var className, classNames, el, _i, _len;
el = arguments[0], classNames = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
for (_i = 0, _len = classNames.length; _i < _len; _i++) {
className = classNames[_i];
el.classList.remove(className);
}
};
$.toggleClass = function(el, className) {
@ -7518,7 +7524,7 @@
var a, frag, hash, text;
$.addClass(quoted.nodes.post, 'quoted');
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.textContent = text = Conf['backlink'].replace(/%id/g, quoter.ID);
if (quoter.isDead) {

View File

@ -215,7 +215,7 @@ Main =
<% if (type === 'userscript') { %>
test = $.el 'span'
test.classList.add 'a', 'b'
$.addClass test, 'a', 'b'
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

View File

@ -116,11 +116,13 @@ $.X = (path, root) ->
# XPathResult.ORDERED_NODE_SNAPSHOT_TYPE === 7
d.evaluate path, root, null, 7, null
$.addClass = (el, className...) ->
el.classList.add className...
$.addClass = (el, classNames...) ->
el.classList.add className for className in classNames
return
$.rmClass = (el, className...) ->
el.classList.remove className...
$.rmClass = (el, classNames...) ->
el.classList.remove className for className in classNames
return
$.toggleClass = (el, className) ->
el.classList.toggle className

View File

@ -53,7 +53,7 @@ QuoteBacklink =
buildBacklink: (quoted, quoter) ->
$.addClass quoted.nodes.post, 'quoted'
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.textContent = text = Conf['backlink'].replace /%id/g, quoter.ID
if quoter.isDead