Release 4chan X v1.14.20.0.
This commit is contained in:
parent
115390fde3
commit
455feabfac
@ -2,6 +2,15 @@
|
||||
|
||||
-Sometimes the changelog has notes (not comprehensive) acknowledging people's work. This does not mean the changes are their fault, only that their code was used. All changes to the script are chosen by and the fault of the maintainer (ccd0).
|
||||
|
||||
### v1.14.20
|
||||
|
||||
**v1.14.20.0** *(2020-06-16)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.20.0/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.20.0/builds/4chan-X-noupdate.crx)]
|
||||
- Based on v1.14.19.4.
|
||||
- Make image features work with .webp images.
|
||||
- Make embedding work with .webp links. #365
|
||||
- Make video features work with .ogv videos.
|
||||
- Fix 'Reveal Spoiler Thumbnails' on .bmp files.
|
||||
|
||||
### v1.14.19
|
||||
|
||||
**v1.14.19.4** *(2020-06-11)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.19.4/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.19.4/builds/4chan-X-noupdate.crx)]
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X beta
|
||||
// @version 1.14.19.4
|
||||
// @version 1.14.20.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X beta
|
||||
// @version 1.14.19.4
|
||||
// @version 1.14.20.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -218,7 +218,7 @@ docSet = function() {
|
||||
};
|
||||
|
||||
g = {
|
||||
VERSION: '1.14.19.4',
|
||||
VERSION: '1.14.20.0',
|
||||
NAMESPACE: '4chan X.',
|
||||
sites: Object.create(null),
|
||||
boards: Object.create(null)
|
||||
@ -326,7 +326,7 @@ Config = (function() {
|
||||
'Replace GIF': [false, 'Replace gif thumbnails with the actual image.'],
|
||||
'Replace JPG': [false, 'Replace jpg thumbnails with the actual image.'],
|
||||
'Replace PNG': [false, 'Replace png thumbnails with the actual image.'],
|
||||
'Replace WEBM': [false, 'Replace webm and mp4 thumbnails with the actual video. Probably will degrade browser performance ;)'],
|
||||
'Replace WEBM': [false, 'Replace webm, mp4, and ogv thumbnails with the actual video. Probably will degrade browser performance ;)'],
|
||||
'Image Prefetching': [true, 'Add a shortcut icon to the header to turn on image preloading.'],
|
||||
'Fappe Tyme': [true, 'Hide posts without images when header menu item is checked. *hint* *hint*'],
|
||||
'Werk Tyme': [true, 'Hide all post images when header menu item is checked.'],
|
||||
@ -5377,6 +5377,14 @@ $ = (function() {
|
||||
});
|
||||
};
|
||||
|
||||
$.isImage = function(url) {
|
||||
return /\.(jpe?g|png|gif|bmp|webp)$/i.test(url);
|
||||
};
|
||||
|
||||
$.isVideo = function(url) {
|
||||
return /\.(webm|mp4|ogv)$/i.test(url);
|
||||
};
|
||||
|
||||
$.engine = (function() {
|
||||
if (/Edge\//.test(navigator.userAgent)) {
|
||||
return 'edge';
|
||||
@ -7138,8 +7146,8 @@ Post = (function() {
|
||||
}
|
||||
$.extend(file, {
|
||||
url: file.link.href,
|
||||
isImage: /\.(jpe?g|png|gif|bmp)$/i.test(file.link.href),
|
||||
isVideo: /\.(webm|mp4)$/i.test(file.link.href)
|
||||
isImage: $.isImage(file.link.href),
|
||||
isVideo: $.isVideo(file.link.href)
|
||||
});
|
||||
size = +file.size.match(/[\d.]+/)[0];
|
||||
unit = ['B', 'KB', 'MB', 'GB'].indexOf(file.size.match(/\w+$/)[0]);
|
||||
@ -8040,7 +8048,7 @@ SW = {};
|
||||
});
|
||||
if (thumb) {
|
||||
$.extend(file, {
|
||||
thumbURL: /\/static\//.test(thumb.src) && /\.(?:gif|jpe?g|png)$/.test(link.href) ? link.href : thumb.src,
|
||||
thumbURL: /\/static\//.test(thumb.src) && $.isImage(link.href) ? link.href : thumb.src,
|
||||
isSpoiler: /^Spoiler/i.test(info[1] || '') || link.textContent === 'Spoiler Image'
|
||||
});
|
||||
}
|
||||
@ -14669,6 +14677,7 @@ Gallery = (function() {
|
||||
elType = $.getOwn({
|
||||
'webm': 'video',
|
||||
'mp4': 'video',
|
||||
'ogv': 'video',
|
||||
'pdf': 'iframe'
|
||||
}, ext) || 'img';
|
||||
file = $.el(elType);
|
||||
@ -16835,7 +16844,7 @@ Embedding = (function() {
|
||||
}
|
||||
}, {
|
||||
key: 'image',
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp)(?::\w+)?(?:[?#]|$)/i,
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp|webp)(?::\w+)?(?:[?#]|$)/i,
|
||||
style: '',
|
||||
el: function(a) {
|
||||
return $.el('div', {innerHTML: "<a target=\"_blank\" href=\"" + E(a.dataset.href) + "\"><img src=\"" + E(a.dataset.href) + "\" style=\"max-width: 80vw; max-height: 80vh;\"></a>"});
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.14.19.4
|
||||
// @version 1.14.20.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -218,7 +218,7 @@ docSet = function() {
|
||||
};
|
||||
|
||||
g = {
|
||||
VERSION: '1.14.19.4',
|
||||
VERSION: '1.14.20.0',
|
||||
NAMESPACE: '4chan X.',
|
||||
sites: Object.create(null),
|
||||
boards: Object.create(null)
|
||||
@ -326,7 +326,7 @@ Config = (function() {
|
||||
'Replace GIF': [false, 'Replace gif thumbnails with the actual image.'],
|
||||
'Replace JPG': [false, 'Replace jpg thumbnails with the actual image.'],
|
||||
'Replace PNG': [false, 'Replace png thumbnails with the actual image.'],
|
||||
'Replace WEBM': [false, 'Replace webm and mp4 thumbnails with the actual video. Probably will degrade browser performance ;)'],
|
||||
'Replace WEBM': [false, 'Replace webm, mp4, and ogv thumbnails with the actual video. Probably will degrade browser performance ;)'],
|
||||
'Image Prefetching': [true, 'Add a shortcut icon to the header to turn on image preloading.'],
|
||||
'Fappe Tyme': [true, 'Hide posts without images when header menu item is checked. *hint* *hint*'],
|
||||
'Werk Tyme': [true, 'Hide all post images when header menu item is checked.'],
|
||||
@ -5377,6 +5377,14 @@ $ = (function() {
|
||||
});
|
||||
};
|
||||
|
||||
$.isImage = function(url) {
|
||||
return /\.(jpe?g|png|gif|bmp|webp)$/i.test(url);
|
||||
};
|
||||
|
||||
$.isVideo = function(url) {
|
||||
return /\.(webm|mp4|ogv)$/i.test(url);
|
||||
};
|
||||
|
||||
$.engine = (function() {
|
||||
if (/Edge\//.test(navigator.userAgent)) {
|
||||
return 'edge';
|
||||
@ -7138,8 +7146,8 @@ Post = (function() {
|
||||
}
|
||||
$.extend(file, {
|
||||
url: file.link.href,
|
||||
isImage: /\.(jpe?g|png|gif|bmp)$/i.test(file.link.href),
|
||||
isVideo: /\.(webm|mp4)$/i.test(file.link.href)
|
||||
isImage: $.isImage(file.link.href),
|
||||
isVideo: $.isVideo(file.link.href)
|
||||
});
|
||||
size = +file.size.match(/[\d.]+/)[0];
|
||||
unit = ['B', 'KB', 'MB', 'GB'].indexOf(file.size.match(/\w+$/)[0]);
|
||||
@ -8040,7 +8048,7 @@ SW = {};
|
||||
});
|
||||
if (thumb) {
|
||||
$.extend(file, {
|
||||
thumbURL: /\/static\//.test(thumb.src) && /\.(?:gif|jpe?g|png)$/.test(link.href) ? link.href : thumb.src,
|
||||
thumbURL: /\/static\//.test(thumb.src) && $.isImage(link.href) ? link.href : thumb.src,
|
||||
isSpoiler: /^Spoiler/i.test(info[1] || '') || link.textContent === 'Spoiler Image'
|
||||
});
|
||||
}
|
||||
@ -14669,6 +14677,7 @@ Gallery = (function() {
|
||||
elType = $.getOwn({
|
||||
'webm': 'video',
|
||||
'mp4': 'video',
|
||||
'ogv': 'video',
|
||||
'pdf': 'iframe'
|
||||
}, ext) || 'img';
|
||||
file = $.el(elType);
|
||||
@ -16835,7 +16844,7 @@ Embedding = (function() {
|
||||
}
|
||||
}, {
|
||||
key: 'image',
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp)(?::\w+)?(?:[?#]|$)/i,
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp|webp)(?::\w+)?(?:[?#]|$)/i,
|
||||
style: '',
|
||||
el: function(a) {
|
||||
return $.el('div', {innerHTML: "<a target=\"_blank\" href=\"" + E(a.dataset.href) + "\"><img src=\"" + E(a.dataset.href) + "\" style=\"max-width: 80vw; max-height: 80vh;\"></a>"});
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.14.19.4
|
||||
// @version 1.14.20.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 1.14.19.4
|
||||
// @version 1.14.20.0
|
||||
// @minGMVer 1.14
|
||||
// @minFFVer 26
|
||||
// @namespace 4chan-X
|
||||
@ -218,7 +218,7 @@ docSet = function() {
|
||||
};
|
||||
|
||||
g = {
|
||||
VERSION: '1.14.19.4',
|
||||
VERSION: '1.14.20.0',
|
||||
NAMESPACE: '4chan X.',
|
||||
sites: Object.create(null),
|
||||
boards: Object.create(null)
|
||||
@ -326,7 +326,7 @@ Config = (function() {
|
||||
'Replace GIF': [false, 'Replace gif thumbnails with the actual image.'],
|
||||
'Replace JPG': [false, 'Replace jpg thumbnails with the actual image.'],
|
||||
'Replace PNG': [false, 'Replace png thumbnails with the actual image.'],
|
||||
'Replace WEBM': [false, 'Replace webm and mp4 thumbnails with the actual video. Probably will degrade browser performance ;)'],
|
||||
'Replace WEBM': [false, 'Replace webm, mp4, and ogv thumbnails with the actual video. Probably will degrade browser performance ;)'],
|
||||
'Image Prefetching': [true, 'Add a shortcut icon to the header to turn on image preloading.'],
|
||||
'Fappe Tyme': [true, 'Hide posts without images when header menu item is checked. *hint* *hint*'],
|
||||
'Werk Tyme': [true, 'Hide all post images when header menu item is checked.'],
|
||||
@ -5377,6 +5377,14 @@ $ = (function() {
|
||||
});
|
||||
};
|
||||
|
||||
$.isImage = function(url) {
|
||||
return /\.(jpe?g|png|gif|bmp|webp)$/i.test(url);
|
||||
};
|
||||
|
||||
$.isVideo = function(url) {
|
||||
return /\.(webm|mp4|ogv)$/i.test(url);
|
||||
};
|
||||
|
||||
$.engine = (function() {
|
||||
if (/Edge\//.test(navigator.userAgent)) {
|
||||
return 'edge';
|
||||
@ -7138,8 +7146,8 @@ Post = (function() {
|
||||
}
|
||||
$.extend(file, {
|
||||
url: file.link.href,
|
||||
isImage: /\.(jpe?g|png|gif|bmp)$/i.test(file.link.href),
|
||||
isVideo: /\.(webm|mp4)$/i.test(file.link.href)
|
||||
isImage: $.isImage(file.link.href),
|
||||
isVideo: $.isVideo(file.link.href)
|
||||
});
|
||||
size = +file.size.match(/[\d.]+/)[0];
|
||||
unit = ['B', 'KB', 'MB', 'GB'].indexOf(file.size.match(/\w+$/)[0]);
|
||||
@ -8040,7 +8048,7 @@ SW = {};
|
||||
});
|
||||
if (thumb) {
|
||||
$.extend(file, {
|
||||
thumbURL: /\/static\//.test(thumb.src) && /\.(?:gif|jpe?g|png)$/.test(link.href) ? link.href : thumb.src,
|
||||
thumbURL: /\/static\//.test(thumb.src) && $.isImage(link.href) ? link.href : thumb.src,
|
||||
isSpoiler: /^Spoiler/i.test(info[1] || '') || link.textContent === 'Spoiler Image'
|
||||
});
|
||||
}
|
||||
@ -14669,6 +14677,7 @@ Gallery = (function() {
|
||||
elType = $.getOwn({
|
||||
'webm': 'video',
|
||||
'mp4': 'video',
|
||||
'ogv': 'video',
|
||||
'pdf': 'iframe'
|
||||
}, ext) || 'img';
|
||||
file = $.el(elType);
|
||||
@ -16835,7 +16844,7 @@ Embedding = (function() {
|
||||
}
|
||||
}, {
|
||||
key: 'image',
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp)(?::\w+)?(?:[?#]|$)/i,
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp|webp)(?::\w+)?(?:[?#]|$)/i,
|
||||
style: '',
|
||||
el: function(a) {
|
||||
return $.el('div', {innerHTML: "<a target=\"_blank\" href=\"" + E(a.dataset.href) + "\"><img src=\"" + E(a.dataset.href) + "\" style=\"max-width: 80vw; max-height: 80vh;\"></a>"});
|
||||
|
||||
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
"4chan-x@4chan-x.net": {
|
||||
"updates": [
|
||||
{
|
||||
"version": "1.14.19.4",
|
||||
"version": "1.14.20.0",
|
||||
"update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx"
|
||||
}
|
||||
]
|
||||
|
||||
@ -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://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.19.4' />
|
||||
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.20.0' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"4chan-x@4chan-x.net": {
|
||||
"updates": [
|
||||
{
|
||||
"version": "1.14.19.4",
|
||||
"version": "1.14.20.0",
|
||||
"update_link": "https://www.4chan-x.net/builds/4chan-X.crx"
|
||||
}
|
||||
]
|
||||
|
||||
@ -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://www.4chan-x.net/builds/4chan-X.crx' version='1.14.19.4' />
|
||||
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.20.0' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"version": "1.14.19.4",
|
||||
"date": "2020-06-11T08:21:51.865Z"
|
||||
"version": "1.14.20.0",
|
||||
"date": "2020-06-16T08:56:06.279Z"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user