Release 4chan X v1.10.11.0.
This commit is contained in:
parent
b83c2c9811
commit
a4dceca8e2
@ -2,6 +2,12 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
|
|||||||
|
|
||||||
The links to individual versions below are to copies of the script with the update URL removed. If you want automatic updates, install the script from the links on the [main page](https://github.com/ccd0/4chan-x).
|
The links to individual versions below are to copies of the script with the update URL removed. If you want automatic updates, install the script from the links on the [main page](https://github.com/ccd0/4chan-x).
|
||||||
|
|
||||||
|
### v1.10.11
|
||||||
|
|
||||||
|
**v1.10.11.0** *(2015-04-24)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.0/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
- Based on v1.10.10.2.
|
||||||
|
- Fix whitespace being stripped from the comment before filtering. This makes it possible to filter whitespace spam.
|
||||||
|
|
||||||
### v1.10.10
|
### v1.10.10
|
||||||
|
|
||||||
**v1.10.10.2** *(2015-04-21)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.10.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.10.2/builds/4chan-X-noupdate.crx "Chromium version")]
|
**v1.10.10.2** *(2015-04-21)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.10.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.10.2/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.10.10.2
|
// @version 1.10.11.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.10.10.2
|
// @version 1.10.11.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -399,7 +399,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.10.10.2',
|
VERSION: '1.10.11.0',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -1296,28 +1296,33 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Post.prototype.parseComment = function() {
|
Post.prototype.parseComment = function() {
|
||||||
var bq, k, len1, node, ref, spoilers;
|
var abbr, bq, commentDisplay, k, len1, len2, node, q, ref, spoilers;
|
||||||
this.nodes.comment.normalize();
|
this.nodes.comment.normalize();
|
||||||
bq = this.nodes.comment.cloneNode(true);
|
bq = this.nodes.comment.cloneNode(true);
|
||||||
ref = $$('.abbr, .exif, b, marquee', bq);
|
ref = $$('.abbr + br, .exif, b, .fortune', bq);
|
||||||
for (k = 0, len1 = ref.length; k < len1; k++) {
|
for (k = 0, len1 = ref.length; k < len1; k++) {
|
||||||
node = ref[k];
|
node = ref[k];
|
||||||
$.rm(node);
|
$.rm(node);
|
||||||
}
|
}
|
||||||
|
if (abbr = $('.abbr', bq)) {
|
||||||
|
$.rm(abbr);
|
||||||
|
}
|
||||||
this.info.comment = this.nodesToText(bq);
|
this.info.comment = this.nodesToText(bq);
|
||||||
spoilers = $$('s', bq);
|
if (abbr) {
|
||||||
return this.info.commentSpoilered = (function() {
|
this.info.comment = this.info.comment.replace(/\n\n$/, '');
|
||||||
var len2, q;
|
}
|
||||||
|
commentDisplay = this.info.comment;
|
||||||
|
if (!(Conf['Remove Spoilers'] || Conf['Reveal Spoilers'])) {
|
||||||
|
spoilers = $$('s', bq);
|
||||||
if (spoilers.length) {
|
if (spoilers.length) {
|
||||||
for (q = 0, len2 = spoilers.length; q < len2; q++) {
|
for (q = 0, len2 = spoilers.length; q < len2; q++) {
|
||||||
node = spoilers[q];
|
node = spoilers[q];
|
||||||
$.replace(node, $.tn('[spoiler]'));
|
$.replace(node, $.tn('[spoiler]'));
|
||||||
}
|
}
|
||||||
return this.nodesToText(bq);
|
commentDisplay = this.nodesToText(bq);
|
||||||
} else {
|
|
||||||
return this.info.comment;
|
|
||||||
}
|
}
|
||||||
}).call(this);
|
}
|
||||||
|
return this.info.commentDisplay = commentDisplay.trim().replace(/\s+$/gm, '');
|
||||||
};
|
};
|
||||||
|
|
||||||
Post.prototype.nodesToText = function(bq) {
|
Post.prototype.nodesToText = function(bq) {
|
||||||
@ -1328,7 +1333,7 @@
|
|||||||
while (node = nodes.snapshotItem(i++)) {
|
while (node = nodes.snapshotItem(i++)) {
|
||||||
text += node.data || '\n';
|
text += node.data || '\n';
|
||||||
}
|
}
|
||||||
return text.trim().replace(/\s+$/gm, '');
|
return text;
|
||||||
};
|
};
|
||||||
|
|
||||||
Post.prototype.parseQuotes = function() {
|
Post.prototype.parseQuotes = function() {
|
||||||
@ -4303,7 +4308,7 @@
|
|||||||
threadExcerpt: function(thread) {
|
threadExcerpt: function(thread) {
|
||||||
var OP, excerpt, ref;
|
var OP, excerpt, ref;
|
||||||
OP = thread.OP;
|
OP = thread.OP;
|
||||||
excerpt = ("/" + thread.board + "/ - ") + (((ref = OP.info.subject) != null ? ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.info.nameBlock);
|
excerpt = ("/" + thread.board + "/ - ") + (((ref = OP.info.subject) != null ? ref.trim() : void 0) || OP.info.commentDisplay.replace(/\n+/g, ' // ') || OP.info.nameBlock);
|
||||||
if (excerpt.length > 73) {
|
if (excerpt.length > 73) {
|
||||||
return excerpt.slice(0, 70) + "...";
|
return excerpt.slice(0, 70) + "...";
|
||||||
}
|
}
|
||||||
@ -13342,7 +13347,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notif = new Notification(post.info.nameBlock + " replied to you", {
|
notif = new Notification(post.info.nameBlock + " replied to you", {
|
||||||
body: post.info[Conf['Remove Spoilers'] || Conf['Reveal Spoilers'] ? 'comment' : 'commentSpoilered'],
|
body: post.info.commentDisplay,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
notif.onclick = function() {
|
notif.onclick = function() {
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.10.10.2
|
// @version 1.10.11.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -398,7 +398,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.10.10.2',
|
VERSION: '1.10.11.0',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -1295,28 +1295,33 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Post.prototype.parseComment = function() {
|
Post.prototype.parseComment = function() {
|
||||||
var bq, k, len1, node, ref, spoilers;
|
var abbr, bq, commentDisplay, k, len1, len2, node, q, ref, spoilers;
|
||||||
this.nodes.comment.normalize();
|
this.nodes.comment.normalize();
|
||||||
bq = this.nodes.comment.cloneNode(true);
|
bq = this.nodes.comment.cloneNode(true);
|
||||||
ref = $$('.abbr, .exif, b, marquee', bq);
|
ref = $$('.abbr + br, .exif, b, .fortune', bq);
|
||||||
for (k = 0, len1 = ref.length; k < len1; k++) {
|
for (k = 0, len1 = ref.length; k < len1; k++) {
|
||||||
node = ref[k];
|
node = ref[k];
|
||||||
$.rm(node);
|
$.rm(node);
|
||||||
}
|
}
|
||||||
|
if (abbr = $('.abbr', bq)) {
|
||||||
|
$.rm(abbr);
|
||||||
|
}
|
||||||
this.info.comment = this.nodesToText(bq);
|
this.info.comment = this.nodesToText(bq);
|
||||||
spoilers = $$('s', bq);
|
if (abbr) {
|
||||||
return this.info.commentSpoilered = (function() {
|
this.info.comment = this.info.comment.replace(/\n\n$/, '');
|
||||||
var len2, q;
|
}
|
||||||
|
commentDisplay = this.info.comment;
|
||||||
|
if (!(Conf['Remove Spoilers'] || Conf['Reveal Spoilers'])) {
|
||||||
|
spoilers = $$('s', bq);
|
||||||
if (spoilers.length) {
|
if (spoilers.length) {
|
||||||
for (q = 0, len2 = spoilers.length; q < len2; q++) {
|
for (q = 0, len2 = spoilers.length; q < len2; q++) {
|
||||||
node = spoilers[q];
|
node = spoilers[q];
|
||||||
$.replace(node, $.tn('[spoiler]'));
|
$.replace(node, $.tn('[spoiler]'));
|
||||||
}
|
}
|
||||||
return this.nodesToText(bq);
|
commentDisplay = this.nodesToText(bq);
|
||||||
} else {
|
|
||||||
return this.info.comment;
|
|
||||||
}
|
}
|
||||||
}).call(this);
|
}
|
||||||
|
return this.info.commentDisplay = commentDisplay.trim().replace(/\s+$/gm, '');
|
||||||
};
|
};
|
||||||
|
|
||||||
Post.prototype.nodesToText = function(bq) {
|
Post.prototype.nodesToText = function(bq) {
|
||||||
@ -1327,7 +1332,7 @@
|
|||||||
while (node = nodes.snapshotItem(i++)) {
|
while (node = nodes.snapshotItem(i++)) {
|
||||||
text += node.data || '\n';
|
text += node.data || '\n';
|
||||||
}
|
}
|
||||||
return text.trim().replace(/\s+$/gm, '');
|
return text;
|
||||||
};
|
};
|
||||||
|
|
||||||
Post.prototype.parseQuotes = function() {
|
Post.prototype.parseQuotes = function() {
|
||||||
@ -4302,7 +4307,7 @@
|
|||||||
threadExcerpt: function(thread) {
|
threadExcerpt: function(thread) {
|
||||||
var OP, excerpt, ref;
|
var OP, excerpt, ref;
|
||||||
OP = thread.OP;
|
OP = thread.OP;
|
||||||
excerpt = ("/" + thread.board + "/ - ") + (((ref = OP.info.subject) != null ? ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.info.nameBlock);
|
excerpt = ("/" + thread.board + "/ - ") + (((ref = OP.info.subject) != null ? ref.trim() : void 0) || OP.info.commentDisplay.replace(/\n+/g, ' // ') || OP.info.nameBlock);
|
||||||
if (excerpt.length > 73) {
|
if (excerpt.length > 73) {
|
||||||
return excerpt.slice(0, 70) + "...";
|
return excerpt.slice(0, 70) + "...";
|
||||||
}
|
}
|
||||||
@ -13341,7 +13346,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notif = new Notification(post.info.nameBlock + " replied to you", {
|
notif = new Notification(post.info.nameBlock + " replied to you", {
|
||||||
body: post.info[Conf['Remove Spoilers'] || Conf['Reveal Spoilers'] ? 'comment' : 'commentSpoilered'],
|
body: post.info.commentDisplay,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
notif.onclick = function() {
|
notif.onclick = function() {
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.10.10.2
|
// @version 1.10.11.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.10.10.2
|
// @version 1.10.11.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -399,7 +399,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.10.10.2',
|
VERSION: '1.10.11.0',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -1296,28 +1296,33 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Post.prototype.parseComment = function() {
|
Post.prototype.parseComment = function() {
|
||||||
var bq, k, len1, node, ref, spoilers;
|
var abbr, bq, commentDisplay, k, len1, len2, node, q, ref, spoilers;
|
||||||
this.nodes.comment.normalize();
|
this.nodes.comment.normalize();
|
||||||
bq = this.nodes.comment.cloneNode(true);
|
bq = this.nodes.comment.cloneNode(true);
|
||||||
ref = $$('.abbr, .exif, b, marquee', bq);
|
ref = $$('.abbr + br, .exif, b, .fortune', bq);
|
||||||
for (k = 0, len1 = ref.length; k < len1; k++) {
|
for (k = 0, len1 = ref.length; k < len1; k++) {
|
||||||
node = ref[k];
|
node = ref[k];
|
||||||
$.rm(node);
|
$.rm(node);
|
||||||
}
|
}
|
||||||
|
if (abbr = $('.abbr', bq)) {
|
||||||
|
$.rm(abbr);
|
||||||
|
}
|
||||||
this.info.comment = this.nodesToText(bq);
|
this.info.comment = this.nodesToText(bq);
|
||||||
spoilers = $$('s', bq);
|
if (abbr) {
|
||||||
return this.info.commentSpoilered = (function() {
|
this.info.comment = this.info.comment.replace(/\n\n$/, '');
|
||||||
var len2, q;
|
}
|
||||||
|
commentDisplay = this.info.comment;
|
||||||
|
if (!(Conf['Remove Spoilers'] || Conf['Reveal Spoilers'])) {
|
||||||
|
spoilers = $$('s', bq);
|
||||||
if (spoilers.length) {
|
if (spoilers.length) {
|
||||||
for (q = 0, len2 = spoilers.length; q < len2; q++) {
|
for (q = 0, len2 = spoilers.length; q < len2; q++) {
|
||||||
node = spoilers[q];
|
node = spoilers[q];
|
||||||
$.replace(node, $.tn('[spoiler]'));
|
$.replace(node, $.tn('[spoiler]'));
|
||||||
}
|
}
|
||||||
return this.nodesToText(bq);
|
commentDisplay = this.nodesToText(bq);
|
||||||
} else {
|
|
||||||
return this.info.comment;
|
|
||||||
}
|
}
|
||||||
}).call(this);
|
}
|
||||||
|
return this.info.commentDisplay = commentDisplay.trim().replace(/\s+$/gm, '');
|
||||||
};
|
};
|
||||||
|
|
||||||
Post.prototype.nodesToText = function(bq) {
|
Post.prototype.nodesToText = function(bq) {
|
||||||
@ -1328,7 +1333,7 @@
|
|||||||
while (node = nodes.snapshotItem(i++)) {
|
while (node = nodes.snapshotItem(i++)) {
|
||||||
text += node.data || '\n';
|
text += node.data || '\n';
|
||||||
}
|
}
|
||||||
return text.trim().replace(/\s+$/gm, '');
|
return text;
|
||||||
};
|
};
|
||||||
|
|
||||||
Post.prototype.parseQuotes = function() {
|
Post.prototype.parseQuotes = function() {
|
||||||
@ -4303,7 +4308,7 @@
|
|||||||
threadExcerpt: function(thread) {
|
threadExcerpt: function(thread) {
|
||||||
var OP, excerpt, ref;
|
var OP, excerpt, ref;
|
||||||
OP = thread.OP;
|
OP = thread.OP;
|
||||||
excerpt = ("/" + thread.board + "/ - ") + (((ref = OP.info.subject) != null ? ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.info.nameBlock);
|
excerpt = ("/" + thread.board + "/ - ") + (((ref = OP.info.subject) != null ? ref.trim() : void 0) || OP.info.commentDisplay.replace(/\n+/g, ' // ') || OP.info.nameBlock);
|
||||||
if (excerpt.length > 73) {
|
if (excerpt.length > 73) {
|
||||||
return excerpt.slice(0, 70) + "...";
|
return excerpt.slice(0, 70) + "...";
|
||||||
}
|
}
|
||||||
@ -13342,7 +13347,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notif = new Notification(post.info.nameBlock + " replied to you", {
|
notif = new Notification(post.info.nameBlock + " replied to you", {
|
||||||
body: post.info[Conf['Remove Spoilers'] || Conf['Reveal Spoilers'] ? 'comment' : 'commentSpoilered'],
|
body: post.info.commentDisplay,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
notif.onclick = function() {
|
notif.onclick = function() {
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||||
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
||||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.10.10.2' />
|
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.10.11.0' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||||
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
|
||||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.10.10.2' />
|
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.10.11.0' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
"description": "Cross-browser userscript for maximum lurking on 4chan.",
|
"description": "Cross-browser userscript for maximum lurking on 4chan.",
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "4chan X",
|
"name": "4chan X",
|
||||||
"version": "1.10.10.2",
|
"version": "1.10.11.0",
|
||||||
"date": "2015-04-21T07:37:58.778Z",
|
"date": "2015-04-24T08:11:43.462Z",
|
||||||
"repo": "https://github.com/ccd0/4chan-x/",
|
"repo": "https://github.com/ccd0/4chan-x/",
|
||||||
"page": "https://github.com/ccd0/4chan-x",
|
"page": "https://github.com/ccd0/4chan-x",
|
||||||
"downloads": "https://ccd0.github.io/4chan-x/builds/",
|
"downloads": "https://ccd0.github.io/4chan-x/builds/",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user