Release 4chan X v1.14.22.4.

This commit is contained in:
ccd0 2023-02-28 14:23:33 -08:00
parent 71873cd7b2
commit ea2462ecc4
15 changed files with 33 additions and 35 deletions

View File

@ -4,6 +4,10 @@
### v1.14.22 ### v1.14.22
**v1.14.22.4** *(2023-02-28)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.22.4/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.22.4/builds/4chan-X-noupdate.crx)]
- Recognize JPEG files with .jfif extensions as images for purposes of Image Hover etc.; also recognize .avif and .jxl files as images.
- Avoid breaking sauce settings of people with links to original Google Images and Google Lens, provided they didn't already update to v1.14.22.3.
**v1.14.22.3** *(2023-02-27)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.22.3/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.22.3/builds/4chan-X-noupdate.crx)] **v1.14.22.3** *(2023-02-27)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.22.3/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.22.3/builds/4chan-X-noupdate.crx)]
- Switch Google image search back to old version, thanks to https://boards.4channel.org/g/thread/91737566#p91789527 and others. - Switch Google image search back to old version, thanks to https://boards.4channel.org/g/thread/91737566#p91789527 and others.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.14.22.3 // @version 1.14.22.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.14.22.3 // @version 1.14.22.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -211,7 +211,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.14.22.3', VERSION: '1.14.22.4',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
sites: Object.create(null), sites: Object.create(null),
boards: Object.create(null) boards: Object.create(null)
@ -5369,7 +5369,7 @@ $ = (function() {
}; };
$.isImage = function(url) { $.isImage = function(url) {
return /\.(jpe?g|png|gif|bmp|webp)$/i.test(url); return /\.(jpe?g|jfif|png|gif|bmp|webp|avif|jxl)$/i.test(url);
}; };
$.isVideo = function(url) { $.isVideo = function(url) {
@ -13500,14 +13500,12 @@ Settings = (function() {
set('archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json')); set('archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json'));
} }
} }
if (compareString < '00001.00014.00022.00002') {
if (data['sauces'] != null) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://lens.google.com/uploadbyurl?url=%$1'));
}
}
if (compareString < '00001.00014.00022.00003') { if (compareString < '00001.00014.00022.00003') {
if (data['sauces'] != null) { if (data['sauces'] != null) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off')); set('sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off'));
if (compareString === '00001.00014.00022.00002' && !/\bsbisrc=/.test(data['sauces'])) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/m, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off'));
}
} }
addSauces(['#https://lens.google.com/uploadbyurl?url=%IMG;text:lens']); addSauces(['#https://lens.google.com/uploadbyurl?url=%IMG;text:lens']);
} }

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.14.22.3 // @version 1.14.22.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -211,7 +211,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.14.22.3', VERSION: '1.14.22.4',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
sites: Object.create(null), sites: Object.create(null),
boards: Object.create(null) boards: Object.create(null)
@ -5369,7 +5369,7 @@ $ = (function() {
}; };
$.isImage = function(url) { $.isImage = function(url) {
return /\.(jpe?g|png|gif|bmp|webp)$/i.test(url); return /\.(jpe?g|jfif|png|gif|bmp|webp|avif|jxl)$/i.test(url);
}; };
$.isVideo = function(url) { $.isVideo = function(url) {
@ -13500,14 +13500,12 @@ Settings = (function() {
set('archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json')); set('archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json'));
} }
} }
if (compareString < '00001.00014.00022.00002') {
if (data['sauces'] != null) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://lens.google.com/uploadbyurl?url=%$1'));
}
}
if (compareString < '00001.00014.00022.00003') { if (compareString < '00001.00014.00022.00003') {
if (data['sauces'] != null) { if (data['sauces'] != null) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off')); set('sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off'));
if (compareString === '00001.00014.00022.00002' && !/\bsbisrc=/.test(data['sauces'])) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/m, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off'));
}
} }
addSauces(['#https://lens.google.com/uploadbyurl?url=%IMG;text:lens']); addSauces(['#https://lens.google.com/uploadbyurl?url=%IMG;text:lens']);
} }

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.14.22.3 // @version 1.14.22.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -211,7 +211,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.14.22.3', VERSION: '1.14.22.4',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
sites: Object.create(null), sites: Object.create(null),
boards: Object.create(null) boards: Object.create(null)
@ -5369,7 +5369,7 @@ $ = (function() {
}; };
$.isImage = function(url) { $.isImage = function(url) {
return /\.(jpe?g|png|gif|bmp|webp)$/i.test(url); return /\.(jpe?g|jfif|png|gif|bmp|webp|avif|jxl)$/i.test(url);
}; };
$.isVideo = function(url) { $.isVideo = function(url) {
@ -13500,14 +13500,12 @@ Settings = (function() {
set('archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json')); set('archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json'));
} }
} }
if (compareString < '00001.00014.00022.00002') {
if (data['sauces'] != null) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://lens.google.com/uploadbyurl?url=%$1'));
}
}
if (compareString < '00001.00014.00022.00003') { if (compareString < '00001.00014.00022.00003') {
if (data['sauces'] != null) { if (data['sauces'] != null) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off')); set('sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off'));
if (compareString === '00001.00014.00022.00002' && !/\bsbisrc=/.test(data['sauces'])) {
set('sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/m, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off'));
}
} }
addSauces(['#https://lens.google.com/uploadbyurl?url=%IMG;text:lens']); addSauces(['#https://lens.google.com/uploadbyurl?url=%IMG;text:lens']);
} }

Binary file not shown.

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": { "4chan-x@4chan-x.net": {
"updates": [ "updates": [
{ {
"version": "1.14.22.3", "version": "1.14.22.4",
"update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx" "update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx"
} }
] ]

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://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.22.3' /> <updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.22.4' />
</app> </app>
</gupdate> </gupdate>

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": { "4chan-x@4chan-x.net": {
"updates": [ "updates": [
{ {
"version": "1.14.22.3", "version": "1.14.22.4",
"update_link": "https://www.4chan-x.net/builds/4chan-X.crx" "update_link": "https://www.4chan-x.net/builds/4chan-X.crx"
} }
] ]

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://www.4chan-x.net/builds/4chan-X.crx' version='1.14.22.3' /> <updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.22.4' />
</app> </app>
</gupdate> </gupdate>

View File

@ -1,4 +1,4 @@
{ {
"version": "1.14.22.3", "version": "1.14.22.4",
"date": "2023-02-27T07:10:21.264Z" "date": "2023-02-28T22:19:57.872Z"
} }