Release 4chan X v1.7.12.

This commit is contained in:
ccd0 2014-04-19 10:41:55 -07:00
parent a54957689a
commit 1c0349c10d
9 changed files with 27 additions and 16 deletions

View File

@ -1,3 +1,6 @@
### v1.7.12
*2014-04-19*
**ccd0** **ccd0**
- Fix conflict of previous version with Exlinks. - Fix conflict of previous version with Exlinks.

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.7.11 - 2014-04-19 * 4chan X - Version 1.7.12 - 2014-04-19
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.7.11 // @version 1.7.12
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.7.11 // @version 1.7.12
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.7.11 - 2014-04-19 * 4chan X - Version 1.7.12 - 2014-04-19
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -371,7 +371,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.7.11', VERSION: '1.7.12',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -1111,9 +1111,13 @@
} }
this.file.sizeInBytes = size; this.file.sizeInBytes = size;
this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/thumb/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg"; this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/thumb/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
this.file.name = fileText.title || fileText.lastElementChild.title || fileText.lastElementChild.textContent; this.file.name = fileText.title || (function() {
this.file.isImage = /(jpg|png|gif)$/i.test(this.file.name); var nameNode;
this.file.isVideo = /webm$/i.test(this.file.name); nameNode = $('span', fileText) || $('a', fileText);
return nameNode.title || nameNode.textContent;
})();
this.file.isImage = /(jpg|png|gif)$/i.test(this.file.URL);
this.file.isVideo = /webm$/i.test(this.file.URL);
if (this.file.isImage || this.file.isVideo) { if (this.file.isImage || this.file.isVideo) {
return this.file.dimensions = fileText.textContent.match(/\d+x\d+/)[0]; return this.file.dimensions = fileText.textContent.match(/\d+x\d+/)[0];
} }

Binary file not shown.

View File

@ -1,6 +1,6 @@
{ {
"name": "4chan X", "name": "4chan X",
"version": "1.7.11", "version": "1.7.12",
"manifest_version": 2, "manifest_version": 2,
"description": "Cross-browser userscript for maximum lurking on 4chan.", "description": "Cross-browser userscript for maximum lurking on 4chan.",
"icons": { "icons": {

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.7.11 - 2014-04-19 * 4chan X - Version 1.7.12 - 2014-04-19
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -347,7 +347,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.7.11', VERSION: '1.7.12',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -1147,10 +1147,14 @@
} }
this.file.sizeInBytes = size; this.file.sizeInBytes = size;
this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/thumb/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg"; this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/thumb/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg";
this.file.name = fileText.title || fileText.lastElementChild.title || fileText.lastElementChild.textContent; this.file.name = fileText.title || (function() {
var nameNode;
nameNode = $('span', fileText) || $('a', fileText);
return nameNode.title || nameNode.textContent;
})();
this.file.name = this.file.name.replace(/%22/g, '"'); this.file.name = this.file.name.replace(/%22/g, '"');
this.file.isImage = /(jpg|png|gif)$/i.test(this.file.name); this.file.isImage = /(jpg|png|gif)$/i.test(this.file.URL);
this.file.isVideo = /webm$/i.test(this.file.name); this.file.isVideo = /webm$/i.test(this.file.URL);
if (this.file.isImage || this.file.isVideo) { if (this.file.isImage || this.file.isVideo) {
return this.file.dimensions = fileText.textContent.match(/\d+x\d+/)[0]; return this.file.dimensions = fileText.textContent.match(/\d+x\d+/)[0];
} }

View File

@ -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/crx.crx' version='1.7.11' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/crx.crx' version='1.7.12' />
</app> </app>
</gupdate> </gupdate>

View File

@ -1,6 +1,6 @@
{ {
"name": "4chan-X", "name": "4chan-X",
"version": "1.7.11", "version": "1.7.12",
"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",