Release 4chan X v1.8.9.4.
This commit is contained in:
parent
5d165b455e
commit
95816d2eb3
@ -1,3 +1,6 @@
|
||||
### v1.8.9.4
|
||||
*2014-08-11*
|
||||
|
||||
**ccd0**
|
||||
- Fix issue where `Except Archives from Encryption` option could reveal the page you are on to a MITM attacker.
|
||||
|
||||
|
||||
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.8.9.3
|
||||
* 4chan X - Version 1.8.9.4
|
||||
*
|
||||
* 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.9.3
|
||||
// @version 1.8.9.4
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Generated by CoffeeScript
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.9.3
|
||||
// @version 1.8.9.4
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -24,7 +24,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.8.9.3
|
||||
* 4chan X - Version 1.8.9.4
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
@ -380,7 +380,7 @@
|
||||
doc = d.documentElement;
|
||||
|
||||
g = {
|
||||
VERSION: '1.8.9.3',
|
||||
VERSION: '1.8.9.4',
|
||||
NAMESPACE: '4chan X.',
|
||||
NAME: '4chan X',
|
||||
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
|
||||
@ -3522,6 +3522,17 @@
|
||||
return true;
|
||||
} else if (Conf['Except Archives from Encryption']) {
|
||||
CrossOrigin.json(url, function(response) {
|
||||
var key, media;
|
||||
media = response.media;
|
||||
if (media) {
|
||||
for (key in media) {
|
||||
if (/_link$/.test(key)) {
|
||||
if (!/^http:\/\//.test(media[key])) {
|
||||
delete media[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Get.parseArchivedPost(response, boardID, postID, root, context);
|
||||
});
|
||||
return true;
|
||||
@ -3618,7 +3629,7 @@
|
||||
o.file = {
|
||||
name: data.media.media_filename,
|
||||
timestamp: data.media.media_orig,
|
||||
url: data.media.media_link || data.media.remote_media_link,
|
||||
url: data.media.media_link || data.media.remote_media_link || ("//i.4cdn.org/" + boardID + "/" + (encodeURIComponent(data.media[boardID === 'f' ? 'media_filename' : 'media_orig']))),
|
||||
height: data.media.media_h,
|
||||
width: data.media.media_w,
|
||||
MD5: data.media.media_hash,
|
||||
@ -12731,7 +12742,7 @@
|
||||
className: 'dialog'
|
||||
});
|
||||
$.extend(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.9.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>"
|
||||
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.9.4</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"]);
|
||||
@ -13145,7 +13156,8 @@
|
||||
_ref4 = ['thread', 'post', 'file'];
|
||||
for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) {
|
||||
item = _ref4[_m];
|
||||
o[item][0].push('disabled');
|
||||
i = o[item][0].length ? 1 : 0;
|
||||
o[item][i].push('disabled');
|
||||
o[item] = o[item][0].concat(o[item][1]);
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
// Generated by CoffeeScript
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.9.3
|
||||
// @version 1.8.9.4
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -23,7 +23,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.8.9.3
|
||||
* 4chan X - Version 1.8.9.4
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
@ -379,7 +379,7 @@
|
||||
doc = d.documentElement;
|
||||
|
||||
g = {
|
||||
VERSION: '1.8.9.3',
|
||||
VERSION: '1.8.9.4',
|
||||
NAMESPACE: '4chan X.',
|
||||
NAME: '4chan X',
|
||||
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
|
||||
@ -3521,6 +3521,17 @@
|
||||
return true;
|
||||
} else if (Conf['Except Archives from Encryption']) {
|
||||
CrossOrigin.json(url, function(response) {
|
||||
var key, media;
|
||||
media = response.media;
|
||||
if (media) {
|
||||
for (key in media) {
|
||||
if (/_link$/.test(key)) {
|
||||
if (!/^http:\/\//.test(media[key])) {
|
||||
delete media[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Get.parseArchivedPost(response, boardID, postID, root, context);
|
||||
});
|
||||
return true;
|
||||
@ -3617,7 +3628,7 @@
|
||||
o.file = {
|
||||
name: data.media.media_filename,
|
||||
timestamp: data.media.media_orig,
|
||||
url: data.media.media_link || data.media.remote_media_link,
|
||||
url: data.media.media_link || data.media.remote_media_link || ("//i.4cdn.org/" + boardID + "/" + (encodeURIComponent(data.media[boardID === 'f' ? 'media_filename' : 'media_orig']))),
|
||||
height: data.media.media_h,
|
||||
width: data.media.media_w,
|
||||
MD5: data.media.media_hash,
|
||||
@ -12730,7 +12741,7 @@
|
||||
className: 'dialog'
|
||||
});
|
||||
$.extend(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.9.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>"
|
||||
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.9.4</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"]);
|
||||
@ -13144,7 +13155,8 @@
|
||||
_ref4 = ['thread', 'post', 'file'];
|
||||
for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) {
|
||||
item = _ref4[_m];
|
||||
o[item][0].push('disabled');
|
||||
i = o[item][0].length ? 1 : 0;
|
||||
o[item][i].push('disabled');
|
||||
o[item] = o[item][0].concat(o[item][1]);
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.9.3
|
||||
// @version 1.8.9.4
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Generated by CoffeeScript
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.8.9.3
|
||||
// @version 1.8.9.4
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -24,7 +24,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.8.9.3
|
||||
* 4chan X - Version 1.8.9.4
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
|
||||
@ -380,7 +380,7 @@
|
||||
doc = d.documentElement;
|
||||
|
||||
g = {
|
||||
VERSION: '1.8.9.3',
|
||||
VERSION: '1.8.9.4',
|
||||
NAMESPACE: '4chan X.',
|
||||
NAME: '4chan X',
|
||||
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
|
||||
@ -3522,6 +3522,17 @@
|
||||
return true;
|
||||
} else if (Conf['Except Archives from Encryption']) {
|
||||
CrossOrigin.json(url, function(response) {
|
||||
var key, media;
|
||||
media = response.media;
|
||||
if (media) {
|
||||
for (key in media) {
|
||||
if (/_link$/.test(key)) {
|
||||
if (!/^http:\/\//.test(media[key])) {
|
||||
delete media[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Get.parseArchivedPost(response, boardID, postID, root, context);
|
||||
});
|
||||
return true;
|
||||
@ -3618,7 +3629,7 @@
|
||||
o.file = {
|
||||
name: data.media.media_filename,
|
||||
timestamp: data.media.media_orig,
|
||||
url: data.media.media_link || data.media.remote_media_link,
|
||||
url: data.media.media_link || data.media.remote_media_link || ("//i.4cdn.org/" + boardID + "/" + (encodeURIComponent(data.media[boardID === 'f' ? 'media_filename' : 'media_orig']))),
|
||||
height: data.media.media_h,
|
||||
width: data.media.media_w,
|
||||
MD5: data.media.media_hash,
|
||||
@ -12731,7 +12742,7 @@
|
||||
className: 'dialog'
|
||||
});
|
||||
$.extend(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.9.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>"
|
||||
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.9.4</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"]);
|
||||
@ -13145,7 +13156,8 @@
|
||||
_ref4 = ['thread', 'post', 'file'];
|
||||
for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) {
|
||||
item = _ref4[_m];
|
||||
o[item][0].push('disabled');
|
||||
i = o[item][0].length ? 1 : 0;
|
||||
o[item][i].push('disabled');
|
||||
o[item] = o[item][0].concat(o[item][1]);
|
||||
}
|
||||
}
|
||||
|
||||
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.9.3' />
|
||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.8.9.4' />
|
||||
</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.9.3' />
|
||||
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.8.9.4' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"description": "Cross-browser userscript for maximum lurking on 4chan.",
|
||||
"meta": {
|
||||
"name": "4chan X",
|
||||
"version": "1.8.9.3",
|
||||
"version": "1.8.9.4",
|
||||
"repo": "https://github.com/ccd0/4chan-x/",
|
||||
"page": "https://github.com/ccd0/4chan-x",
|
||||
"downloads": "https://ccd0.github.io/4chan-x/builds/",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user