Release 4chan X v1.8.3.
This commit is contained in:
parent
4b8a4be8cd
commit
3fa3df215a
@ -1,3 +1,6 @@
|
||||
### v1.8.3
|
||||
*2014-07-01*
|
||||
|
||||
**ccd0**
|
||||
- Fix `Reveal Spoiler Thumbnails` on archived posts.
|
||||
|
||||
|
||||
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.8.2 - 2014-06-30
|
||||
* 4chan X - Version 1.8.3 - 2014-07-01
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.2
|
||||
// @version 1.8.3
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Generated by CoffeeScript
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.2
|
||||
// @version 1.8.3
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -24,7 +24,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.8.2 - 2014-06-30
|
||||
* 4chan X - Version 1.8.3 - 2014-07-01
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
@ -375,7 +375,7 @@
|
||||
doc = d.documentElement;
|
||||
|
||||
g = {
|
||||
VERSION: '1.8.2',
|
||||
VERSION: '1.8.3',
|
||||
NAMESPACE: '4chan X.',
|
||||
boards: {}
|
||||
};
|
||||
@ -1108,7 +1108,7 @@
|
||||
size *= 1024;
|
||||
}
|
||||
this.file.sizeInBytes = size;
|
||||
this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
|
||||
this.file.thumbURL = "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
|
||||
this.file.isImage = /(jpg|png|gif)$/i.test(this.file.URL);
|
||||
this.file.isVideo = /webm$/i.test(this.file.URL);
|
||||
nameNode = $('a', fileText);
|
||||
@ -3578,6 +3578,7 @@
|
||||
post = new Post(Build.post(o), thread, board, {
|
||||
isArchived: true
|
||||
});
|
||||
post.file.thumbURL = o.file.turl;
|
||||
post.isFetchedQuote = true;
|
||||
Main.callbackNodes(Post, [post]);
|
||||
return Get.insert(post, root, context);
|
||||
@ -11421,84 +11422,81 @@
|
||||
return FileInfo.format(Conf['fileInfo'], this, this.file.text.firstElementChild);
|
||||
},
|
||||
format: function(formatString, post, outputNode) {
|
||||
var output;
|
||||
output = {
|
||||
innerHTML: ''
|
||||
};
|
||||
FileInfo.innerHTML = '';
|
||||
formatString.replace(/%(.)|[^%]+/g, function(s, c) {
|
||||
if (c in FileInfo.formatters) {
|
||||
FileInfo.formatters[c].call(post, output);
|
||||
FileInfo.formatters[c].call(post);
|
||||
} else {
|
||||
output.innerHTML += E(s);
|
||||
FileInfo.innerHTML += E(s);
|
||||
}
|
||||
return '';
|
||||
});
|
||||
return outputNode.innerHTML = output.innerHTML;
|
||||
return outputNode.innerHTML = FileInfo.innerHTML;
|
||||
},
|
||||
formatters: {
|
||||
t: function(x) {
|
||||
t: function() {
|
||||
var timestamp;
|
||||
timestamp = this.file.URL.match(/\d+\..+$/)[0];
|
||||
return x.innerHTML += E(timestamp);
|
||||
return FileInfo.innerHTML += E(timestamp);
|
||||
},
|
||||
T: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.t.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
T: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.t.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
l: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.n.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
l: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.n.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
L: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.N.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
L: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.N.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
n: function(x) {
|
||||
n: function() {
|
||||
var fullname, shortname;
|
||||
fullname = this.file.name;
|
||||
shortname = Build.shortFilename(this.file.name, this.isReply);
|
||||
if (fullname === shortname) {
|
||||
return x.innerHTML += E(fullname);
|
||||
return FileInfo.innerHTML += E(fullname);
|
||||
} else {
|
||||
return x.innerHTML += "<span class='fnswitch'><span class='fntrunc'>" + (E(shortname)) + "</span><span class='fnfull'>" + (E(fullname)) + "</span></span>";
|
||||
return FileInfo.innerHTML += "<span class='fnswitch'><span class='fntrunc'>" + (E(shortname)) + "</span><span class='fnfull'>" + (E(fullname)) + "</span></span>";
|
||||
}
|
||||
},
|
||||
N: function(x) {
|
||||
return x.innerHTML += E(this.file.name);
|
||||
N: function() {
|
||||
return FileInfo.innerHTML += E(this.file.name);
|
||||
},
|
||||
p: function(x) {
|
||||
p: function() {
|
||||
if (this.file.isSpoiler) {
|
||||
return x.innerHTML += 'Spoiler, ';
|
||||
return FileInfo.innerHTML += 'Spoiler, ';
|
||||
}
|
||||
},
|
||||
s: function(x) {
|
||||
return x.innerHTML += E(this.file.size);
|
||||
s: function() {
|
||||
return FileInfo.innerHTML += E(this.file.size);
|
||||
},
|
||||
B: function(x) {
|
||||
B: function() {
|
||||
var sizeB;
|
||||
sizeB = Math.round(this.file.sizeInBytes);
|
||||
return x.innerHTML += "" + (+sizeB) + " Bytes";
|
||||
return FileInfo.innerHTML += "" + (+sizeB) + " Bytes";
|
||||
},
|
||||
K: function(x) {
|
||||
K: function() {
|
||||
var sizeKB;
|
||||
sizeKB = Math.round(this.file.sizeInBytes / 1024);
|
||||
return x.innerHTML += "" + (+sizeKB) + " KB";
|
||||
return FileInfo.innerHTML += "" + (+sizeKB) + " KB";
|
||||
},
|
||||
M: function(x) {
|
||||
M: function() {
|
||||
var sizeMB;
|
||||
sizeMB = Math.round(this.file.sizeInBytes / 1048576 * 100) / 100;
|
||||
return x.innerHTML += "" + (+sizeMB) + " MB";
|
||||
return FileInfo.innerHTML += "" + (+sizeMB) + " MB";
|
||||
},
|
||||
r: function(x) {
|
||||
r: function() {
|
||||
var dim;
|
||||
dim = this.file.dimensions || 'PDF';
|
||||
return x.innerHTML += E(dim);
|
||||
return FileInfo.innerHTML += E(dim);
|
||||
},
|
||||
'%': function(x) {
|
||||
return x.innerHTML += '%';
|
||||
'%': function() {
|
||||
return FileInfo.innerHTML += '%';
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -12403,7 +12401,7 @@
|
||||
Settings.dialog = dialog = $.el('div', {
|
||||
id: 'fourchanx-settings',
|
||||
className: 'dialog',
|
||||
innerHTML: '<nav><div class=sections-list></div><p class=\'imp-exp-result warning\'></p><div class=credits><a class=export>Export</a> | <a class=import>Import</a> | <a class=reset>Reset Settings</a> | <input type=file hidden><a href=\'https://github.com/ccd0/4chan-x\' target=_blank>4chan X</a> | <a href=\'https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md\' target=_blank>1.8.2</a> | <a href=\'https://github.com/ccd0/4chan-x/issues\' target=_blank>Issues</a> | <a href=javascript:; class=\'close fa fa-times\' title=Close></a></div></nav><div class=section-container><section></section></div>'
|
||||
innerHTML: '<nav><div class=sections-list></div><p class=\'imp-exp-result warning\'></p><div class=credits><a class=export>Export</a> | <a class=import>Import</a> | <a class=reset>Reset Settings</a> | <input type=file hidden><a href=\'https://github.com/ccd0/4chan-x\' target=_blank>4chan X</a> | <a href=\'https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md\' target=_blank>1.8.3</a> | <a href=\'https://github.com/ccd0/4chan-x/issues\' target=_blank>Issues</a> | <a href=javascript:; class=\'close fa fa-times\' title=Close></a></div></nav><div class=section-container><section></section></div>'
|
||||
});
|
||||
$.on($('.export', Settings.dialog), 'click', Settings["export"]);
|
||||
$.on($('.import', Settings.dialog), 'click', Settings["import"]);
|
||||
@ -13255,7 +13253,7 @@
|
||||
}
|
||||
if (previousversion) {
|
||||
el = $.el('span', {
|
||||
innerHTML: '4chan X has been updated to <a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md" target="_blank">version 1.8.2</a>.'
|
||||
innerHTML: '4chan X has been updated to <a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md" target="_blank">version 1.8.3</a>.'
|
||||
});
|
||||
new Notice('info', el, 15);
|
||||
} else {
|
||||
|
||||
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
// Generated by CoffeeScript
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.2
|
||||
// @version 1.8.3
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -23,7 +23,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.8.2 - 2014-06-30
|
||||
* 4chan X - Version 1.8.3 - 2014-07-01
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
@ -374,7 +374,7 @@
|
||||
doc = d.documentElement;
|
||||
|
||||
g = {
|
||||
VERSION: '1.8.2',
|
||||
VERSION: '1.8.3',
|
||||
NAMESPACE: '4chan X.',
|
||||
boards: {}
|
||||
};
|
||||
@ -1107,7 +1107,7 @@
|
||||
size *= 1024;
|
||||
}
|
||||
this.file.sizeInBytes = size;
|
||||
this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
|
||||
this.file.thumbURL = "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
|
||||
this.file.isImage = /(jpg|png|gif)$/i.test(this.file.URL);
|
||||
this.file.isVideo = /webm$/i.test(this.file.URL);
|
||||
nameNode = $('a', fileText);
|
||||
@ -3577,6 +3577,7 @@
|
||||
post = new Post(Build.post(o), thread, board, {
|
||||
isArchived: true
|
||||
});
|
||||
post.file.thumbURL = o.file.turl;
|
||||
post.isFetchedQuote = true;
|
||||
Main.callbackNodes(Post, [post]);
|
||||
return Get.insert(post, root, context);
|
||||
@ -11420,84 +11421,81 @@
|
||||
return FileInfo.format(Conf['fileInfo'], this, this.file.text.firstElementChild);
|
||||
},
|
||||
format: function(formatString, post, outputNode) {
|
||||
var output;
|
||||
output = {
|
||||
innerHTML: ''
|
||||
};
|
||||
FileInfo.innerHTML = '';
|
||||
formatString.replace(/%(.)|[^%]+/g, function(s, c) {
|
||||
if (c in FileInfo.formatters) {
|
||||
FileInfo.formatters[c].call(post, output);
|
||||
FileInfo.formatters[c].call(post);
|
||||
} else {
|
||||
output.innerHTML += E(s);
|
||||
FileInfo.innerHTML += E(s);
|
||||
}
|
||||
return '';
|
||||
});
|
||||
return outputNode.innerHTML = output.innerHTML;
|
||||
return outputNode.innerHTML = FileInfo.innerHTML;
|
||||
},
|
||||
formatters: {
|
||||
t: function(x) {
|
||||
t: function() {
|
||||
var timestamp;
|
||||
timestamp = this.file.URL.match(/\d+\..+$/)[0];
|
||||
return x.innerHTML += E(timestamp);
|
||||
return FileInfo.innerHTML += E(timestamp);
|
||||
},
|
||||
T: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.t.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
T: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.t.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
l: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.n.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
l: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.n.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
L: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.N.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
L: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.N.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
n: function(x) {
|
||||
n: function() {
|
||||
var fullname, shortname;
|
||||
fullname = this.file.name;
|
||||
shortname = Build.shortFilename(this.file.name, this.isReply);
|
||||
if (fullname === shortname) {
|
||||
return x.innerHTML += E(fullname);
|
||||
return FileInfo.innerHTML += E(fullname);
|
||||
} else {
|
||||
return x.innerHTML += "<span class='fnswitch'><span class='fntrunc'>" + (E(shortname)) + "</span><span class='fnfull'>" + (E(fullname)) + "</span></span>";
|
||||
return FileInfo.innerHTML += "<span class='fnswitch'><span class='fntrunc'>" + (E(shortname)) + "</span><span class='fnfull'>" + (E(fullname)) + "</span></span>";
|
||||
}
|
||||
},
|
||||
N: function(x) {
|
||||
return x.innerHTML += E(this.file.name);
|
||||
N: function() {
|
||||
return FileInfo.innerHTML += E(this.file.name);
|
||||
},
|
||||
p: function(x) {
|
||||
p: function() {
|
||||
if (this.file.isSpoiler) {
|
||||
return x.innerHTML += 'Spoiler, ';
|
||||
return FileInfo.innerHTML += 'Spoiler, ';
|
||||
}
|
||||
},
|
||||
s: function(x) {
|
||||
return x.innerHTML += E(this.file.size);
|
||||
s: function() {
|
||||
return FileInfo.innerHTML += E(this.file.size);
|
||||
},
|
||||
B: function(x) {
|
||||
B: function() {
|
||||
var sizeB;
|
||||
sizeB = Math.round(this.file.sizeInBytes);
|
||||
return x.innerHTML += "" + (+sizeB) + " Bytes";
|
||||
return FileInfo.innerHTML += "" + (+sizeB) + " Bytes";
|
||||
},
|
||||
K: function(x) {
|
||||
K: function() {
|
||||
var sizeKB;
|
||||
sizeKB = Math.round(this.file.sizeInBytes / 1024);
|
||||
return x.innerHTML += "" + (+sizeKB) + " KB";
|
||||
return FileInfo.innerHTML += "" + (+sizeKB) + " KB";
|
||||
},
|
||||
M: function(x) {
|
||||
M: function() {
|
||||
var sizeMB;
|
||||
sizeMB = Math.round(this.file.sizeInBytes / 1048576 * 100) / 100;
|
||||
return x.innerHTML += "" + (+sizeMB) + " MB";
|
||||
return FileInfo.innerHTML += "" + (+sizeMB) + " MB";
|
||||
},
|
||||
r: function(x) {
|
||||
r: function() {
|
||||
var dim;
|
||||
dim = this.file.dimensions || 'PDF';
|
||||
return x.innerHTML += E(dim);
|
||||
return FileInfo.innerHTML += E(dim);
|
||||
},
|
||||
'%': function(x) {
|
||||
return x.innerHTML += '%';
|
||||
'%': function() {
|
||||
return FileInfo.innerHTML += '%';
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -12402,7 +12400,7 @@
|
||||
Settings.dialog = dialog = $.el('div', {
|
||||
id: 'fourchanx-settings',
|
||||
className: 'dialog',
|
||||
innerHTML: '<nav><div class=sections-list></div><p class=\'imp-exp-result warning\'></p><div class=credits><a class=export>Export</a> | <a class=import>Import</a> | <a class=reset>Reset Settings</a> | <input type=file hidden><a href=\'https://github.com/ccd0/4chan-x\' target=_blank>4chan X</a> | <a href=\'https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md\' target=_blank>1.8.2</a> | <a href=\'https://github.com/ccd0/4chan-x/issues\' target=_blank>Issues</a> | <a href=javascript:; class=\'close fa fa-times\' title=Close></a></div></nav><div class=section-container><section></section></div>'
|
||||
innerHTML: '<nav><div class=sections-list></div><p class=\'imp-exp-result warning\'></p><div class=credits><a class=export>Export</a> | <a class=import>Import</a> | <a class=reset>Reset Settings</a> | <input type=file hidden><a href=\'https://github.com/ccd0/4chan-x\' target=_blank>4chan X</a> | <a href=\'https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md\' target=_blank>1.8.3</a> | <a href=\'https://github.com/ccd0/4chan-x/issues\' target=_blank>Issues</a> | <a href=javascript:; class=\'close fa fa-times\' title=Close></a></div></nav><div class=section-container><section></section></div>'
|
||||
});
|
||||
$.on($('.export', Settings.dialog), 'click', Settings["export"]);
|
||||
$.on($('.import', Settings.dialog), 'click', Settings["import"]);
|
||||
@ -13254,7 +13252,7 @@
|
||||
}
|
||||
if (previousversion) {
|
||||
el = $.el('span', {
|
||||
innerHTML: '4chan X has been updated to <a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md" target="_blank">version 1.8.2</a>.'
|
||||
innerHTML: '4chan X has been updated to <a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md" target="_blank">version 1.8.3</a>.'
|
||||
});
|
||||
new Notice('info', el, 15);
|
||||
} else {
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.2
|
||||
// @version 1.8.3
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Generated by CoffeeScript
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.2
|
||||
// @version 1.8.3
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -24,7 +24,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.8.2 - 2014-06-30
|
||||
* 4chan X - Version 1.8.3 - 2014-07-01
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
@ -375,7 +375,7 @@
|
||||
doc = d.documentElement;
|
||||
|
||||
g = {
|
||||
VERSION: '1.8.2',
|
||||
VERSION: '1.8.3',
|
||||
NAMESPACE: '4chan X.',
|
||||
boards: {}
|
||||
};
|
||||
@ -1108,7 +1108,7 @@
|
||||
size *= 1024;
|
||||
}
|
||||
this.file.sizeInBytes = size;
|
||||
this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
|
||||
this.file.thumbURL = "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
|
||||
this.file.isImage = /(jpg|png|gif)$/i.test(this.file.URL);
|
||||
this.file.isVideo = /webm$/i.test(this.file.URL);
|
||||
nameNode = $('a', fileText);
|
||||
@ -3578,6 +3578,7 @@
|
||||
post = new Post(Build.post(o), thread, board, {
|
||||
isArchived: true
|
||||
});
|
||||
post.file.thumbURL = o.file.turl;
|
||||
post.isFetchedQuote = true;
|
||||
Main.callbackNodes(Post, [post]);
|
||||
return Get.insert(post, root, context);
|
||||
@ -11421,84 +11422,81 @@
|
||||
return FileInfo.format(Conf['fileInfo'], this, this.file.text.firstElementChild);
|
||||
},
|
||||
format: function(formatString, post, outputNode) {
|
||||
var output;
|
||||
output = {
|
||||
innerHTML: ''
|
||||
};
|
||||
FileInfo.innerHTML = '';
|
||||
formatString.replace(/%(.)|[^%]+/g, function(s, c) {
|
||||
if (c in FileInfo.formatters) {
|
||||
FileInfo.formatters[c].call(post, output);
|
||||
FileInfo.formatters[c].call(post);
|
||||
} else {
|
||||
output.innerHTML += E(s);
|
||||
FileInfo.innerHTML += E(s);
|
||||
}
|
||||
return '';
|
||||
});
|
||||
return outputNode.innerHTML = output.innerHTML;
|
||||
return outputNode.innerHTML = FileInfo.innerHTML;
|
||||
},
|
||||
formatters: {
|
||||
t: function(x) {
|
||||
t: function() {
|
||||
var timestamp;
|
||||
timestamp = this.file.URL.match(/\d+\..+$/)[0];
|
||||
return x.innerHTML += E(timestamp);
|
||||
return FileInfo.innerHTML += E(timestamp);
|
||||
},
|
||||
T: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.t.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
T: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.t.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
l: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.n.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
l: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.n.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
L: function(x) {
|
||||
x.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.N.call(this, x);
|
||||
return x.innerHTML += '</a>';
|
||||
L: function() {
|
||||
FileInfo.innerHTML += "<a href='" + (E(this.file.URL)) + "' target='_blank'>";
|
||||
FileInfo.formatters.N.call(this);
|
||||
return FileInfo.innerHTML += '</a>';
|
||||
},
|
||||
n: function(x) {
|
||||
n: function() {
|
||||
var fullname, shortname;
|
||||
fullname = this.file.name;
|
||||
shortname = Build.shortFilename(this.file.name, this.isReply);
|
||||
if (fullname === shortname) {
|
||||
return x.innerHTML += E(fullname);
|
||||
return FileInfo.innerHTML += E(fullname);
|
||||
} else {
|
||||
return x.innerHTML += "<span class='fnswitch'><span class='fntrunc'>" + (E(shortname)) + "</span><span class='fnfull'>" + (E(fullname)) + "</span></span>";
|
||||
return FileInfo.innerHTML += "<span class='fnswitch'><span class='fntrunc'>" + (E(shortname)) + "</span><span class='fnfull'>" + (E(fullname)) + "</span></span>";
|
||||
}
|
||||
},
|
||||
N: function(x) {
|
||||
return x.innerHTML += E(this.file.name);
|
||||
N: function() {
|
||||
return FileInfo.innerHTML += E(this.file.name);
|
||||
},
|
||||
p: function(x) {
|
||||
p: function() {
|
||||
if (this.file.isSpoiler) {
|
||||
return x.innerHTML += 'Spoiler, ';
|
||||
return FileInfo.innerHTML += 'Spoiler, ';
|
||||
}
|
||||
},
|
||||
s: function(x) {
|
||||
return x.innerHTML += E(this.file.size);
|
||||
s: function() {
|
||||
return FileInfo.innerHTML += E(this.file.size);
|
||||
},
|
||||
B: function(x) {
|
||||
B: function() {
|
||||
var sizeB;
|
||||
sizeB = Math.round(this.file.sizeInBytes);
|
||||
return x.innerHTML += "" + (+sizeB) + " Bytes";
|
||||
return FileInfo.innerHTML += "" + (+sizeB) + " Bytes";
|
||||
},
|
||||
K: function(x) {
|
||||
K: function() {
|
||||
var sizeKB;
|
||||
sizeKB = Math.round(this.file.sizeInBytes / 1024);
|
||||
return x.innerHTML += "" + (+sizeKB) + " KB";
|
||||
return FileInfo.innerHTML += "" + (+sizeKB) + " KB";
|
||||
},
|
||||
M: function(x) {
|
||||
M: function() {
|
||||
var sizeMB;
|
||||
sizeMB = Math.round(this.file.sizeInBytes / 1048576 * 100) / 100;
|
||||
return x.innerHTML += "" + (+sizeMB) + " MB";
|
||||
return FileInfo.innerHTML += "" + (+sizeMB) + " MB";
|
||||
},
|
||||
r: function(x) {
|
||||
r: function() {
|
||||
var dim;
|
||||
dim = this.file.dimensions || 'PDF';
|
||||
return x.innerHTML += E(dim);
|
||||
return FileInfo.innerHTML += E(dim);
|
||||
},
|
||||
'%': function(x) {
|
||||
return x.innerHTML += '%';
|
||||
'%': function() {
|
||||
return FileInfo.innerHTML += '%';
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -12403,7 +12401,7 @@
|
||||
Settings.dialog = dialog = $.el('div', {
|
||||
id: 'fourchanx-settings',
|
||||
className: 'dialog',
|
||||
innerHTML: '<nav><div class=sections-list></div><p class=\'imp-exp-result warning\'></p><div class=credits><a class=export>Export</a> | <a class=import>Import</a> | <a class=reset>Reset Settings</a> | <input type=file hidden><a href=\'https://github.com/ccd0/4chan-x\' target=_blank>4chan X</a> | <a href=\'https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md\' target=_blank>1.8.2</a> | <a href=\'https://github.com/ccd0/4chan-x/issues\' target=_blank>Issues</a> | <a href=javascript:; class=\'close fa fa-times\' title=Close></a></div></nav><div class=section-container><section></section></div>'
|
||||
innerHTML: '<nav><div class=sections-list></div><p class=\'imp-exp-result warning\'></p><div class=credits><a class=export>Export</a> | <a class=import>Import</a> | <a class=reset>Reset Settings</a> | <input type=file hidden><a href=\'https://github.com/ccd0/4chan-x\' target=_blank>4chan X</a> | <a href=\'https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md\' target=_blank>1.8.3</a> | <a href=\'https://github.com/ccd0/4chan-x/issues\' target=_blank>Issues</a> | <a href=javascript:; class=\'close fa fa-times\' title=Close></a></div></nav><div class=section-container><section></section></div>'
|
||||
});
|
||||
$.on($('.export', Settings.dialog), 'click', Settings["export"]);
|
||||
$.on($('.import', Settings.dialog), 'click', Settings["import"]);
|
||||
@ -13255,7 +13253,7 @@
|
||||
}
|
||||
if (previousversion) {
|
||||
el = $.el('span', {
|
||||
innerHTML: '4chan X has been updated to <a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md" target="_blank">version 1.8.2</a>.'
|
||||
innerHTML: '4chan X has been updated to <a href="https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md" target="_blank">version 1.8.3</a>.'
|
||||
});
|
||||
new Notice('info', el, 15);
|
||||
} else {
|
||||
|
||||
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.8.2' />
|
||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.8.3' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.8.2' />
|
||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.8.3' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "4chan-X",
|
||||
"version": "1.8.2",
|
||||
"version": "1.8.3",
|
||||
"description": "Cross-browser userscript for maximum lurking on 4chan.",
|
||||
"meta": {
|
||||
"name": "4chan X",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user