diff --git a/CHANGELOG.md b/CHANGELOG.md index 938070aae..5306a1e93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ ### v1.14.16 +**v1.14.16.7** *(2020-03-30)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.16.7/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.16.7/builds/4chan-X-noupdate.crx)] +- Fix bug causing some sections on advanced settings not to show up outside 4chan. +- Sauce: Update DeviantArt URL format (#2563) and ImgOps URL format. +- Embedding: Update Gfycat, LiveLeak, and Openings.moe embedding, and fix minor bugs. + **v1.14.16.6** *(2020-03-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.16.6/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.16.6/builds/4chan-X-noupdate.crx)] - Fix description exceeding maximum length. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index c8192e071..2b44ff184 100644 Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js index c45ff5f14..e6a27034c 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.14.16.6 +// @version 1.14.16.7 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index c37a876d6..dc527d51d 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.14.16.6 +// @version 1.14.16.7 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -215,7 +215,7 @@ docSet = function() { }; g = { - VERSION: '1.14.16.6', + VERSION: '1.14.16.7', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -454,7 +454,7 @@ Config = (function() { filesize: '', MD5: '' }, - sauces: "# Known filename formats:\nhttps://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/\nhttps://www.deviantart.com/gallery/#/d%$1%$2;regexp:/^\\w+_by_\\w+[_-]d([\\da-z]{6})\\b|^d([\\da-z]{6})-[\\da-z]{8}-/\nhttps://imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/\nhttps://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/\nhttps://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/\n\n# Reverse image search:\nhttps://www.google.com/searchbyimage?image_url=%IMG&safe=off\nhttps://yandex.com/images/search?rpt=imageview&url=%IMG\n#//tineye.com/search?url=%IMG\n#//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights\n\n# Specialized reverse image search:\n//iqdb.org/?url=%IMG\nhttps://trace.moe/?auto&url=%IMG;text:wait\n#//3d.iqdb.org/?url=%IMG\n#//saucenao.com/search.php?url=%IMG\n\n# \"View Same\" in archives:\nhttp://eye.swfchan.com/search/?q=%name;types:swf\n#https://desuarchive.org/_/search/image/%sMD5/\n#https://archive.4plebs.org/_/search/image/%sMD5/\n#https://boards.fireden.net/_/search/image/%sMD5/\n#https://foolz.fireden.net/_/search/image/%sMD5/\n\n# Other tools:\n#http://exif.regex.info/exif.cgi?imgurl=%URL\n#//imgops.com/%URL;types:gif,jpg,png\n#//www.gif-explode.com/%URL;types:gif", + sauces: "# Known filename formats:\nhttps://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/\njavascript:void(open(\"https://www.deviantart.com/\"+%$1.replace(/_/g,\"-\")+\"/art/\"+parseInt(%$2,36)));regexp:/^\\w+_by_(\\w+)[_-]d([\\da-z]{6})\\b/\nhttps://imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/\nhttps://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/\nhttps://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/\n\n# Reverse image search:\nhttps://www.google.com/searchbyimage?image_url=%IMG&safe=off\nhttps://yandex.com/images/search?rpt=imageview&url=%IMG\n#//tineye.com/search?url=%IMG\n#//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights\n\n# Specialized reverse image search:\n//iqdb.org/?url=%IMG\nhttps://trace.moe/?auto&url=%IMG;text:wait\n#//3d.iqdb.org/?url=%IMG\n#//saucenao.com/search.php?url=%IMG\n\n# \"View Same\" in archives:\nhttp://eye.swfchan.com/search/?q=%name;types:swf\n#https://desuarchive.org/_/search/image/%sMD5/\n#https://archive.4plebs.org/_/search/image/%sMD5/\n#https://boards.fireden.net/_/search/image/%sMD5/\n#https://foolz.fireden.net/_/search/image/%sMD5/\n\n# Other tools:\n#http://exif.regex.info/exif.cgi?imgurl=%URL\n#//imgops.com/start?url=%URL;types:gif,jpg,png\n#//www.gif-explode.com/%URL;types:gif", FappeT: { werk: false }, @@ -13438,6 +13438,11 @@ Settings = (function() { set('archiveLists', data['archiveLists'].replace('https://mayhemydg.github.io/archives.json/archives.json', 'https://nstepien.github.io/archives.json/archives.json')); } } + if (compareString < '00001.00014.00016.00007') { + if (data['sauces'] != null) { + set('sauces', data['sauces'].replace(/https:\/\/www\.deviantart\.com\/gallery\/#\/d%\$1%\$2;regexp:\/\^\\w\+_by_\\w\+\[_-\]d\(\[\\da-z\]\{6\}\)\\b\|\^d\(\[\\da-z\]\{6\}\)-\[\\da-z\]\{8\}-\//g, 'javascript:void(open("https://www.deviantart.com/"+%$1.replace(/_/g,"-")+"/art/"+parseInt(%$2,36)));regexp:/^\\w+_by_(\\w+)[_-]d([\\da-z]{6})\\b/').replace(/\/\/imgops\.com\/%URL/g, '//imgops.com/start?url=%URL')); + } + } return changes; }, loadSettings: function(data, cb) { @@ -16803,7 +16808,11 @@ Embedding = (function() { case 200: case 304: text = service.text(req.response, uid); - Embedding.cache.set(data, text); + if (typeof text === 'string') { + Embedding.cache.set(data, text); + } else { + text = link.textContent; + } break; case 404: text = "Not Found"; @@ -16950,10 +16959,12 @@ Embedding = (function() { key: 'Gfycat', regExp: /^\w+:\/\/(?:www\.)?gfycat\.com\/(?:iframe\/)?(\w+)/, el: function(a) { - var div; - return div = $.el('iframe', { - src: "//gfycat.com/iframe/" + a.dataset.uid + var el; + el = $.el('iframe', { + src: "//gfycat.com/ifr/" + a.dataset.uid }); + el.setAttribute("allowfullscreen", "true"); + return el; } }, { key: 'Gist', @@ -17005,11 +17016,11 @@ Embedding = (function() { } }, { key: 'LiveLeak', - regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*i=(\w+)/, + regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*[tif]=(\w+)/, el: function(a) { var el; el = $.el('iframe', { - src: "https://www.liveleak.com/ll_embed?i=" + a.dataset.uid + src: "https://www.liveleak.com/e/" + a.dataset.uid }); el.setAttribute("allowfullscreen", "true"); return el; @@ -17115,14 +17126,14 @@ Embedding = (function() { }, { key: 'Openings.moe', regExp: /^\w+:\/\/openings.moe\/\?video=([^.&=]+)/, - style: 'max-width: 80vw; max-height: 80vh;', + style: 'width: 1280px; height: 720px; max-width: 80vw; max-height: 80vh;', el: function(a) { - return $.el('video', { - controls: true, - preload: 'auto', - src: "//openings.moe/video/" + a.dataset.uid + ".webm", - loop: true + var el; + el = $.el('iframe', { + src: "https://openings.moe/?video=" + a.dataset.uid }); + el.setAttribute("allowfullscreen", "true"); + return el; } }, { key: 'Pastebin', @@ -18744,7 +18755,7 @@ FileInfo = (function() { n: function() { var fullname, shortname; fullname = this.file.name; - shortname = g.SITE.Build.shortFilename(this.file.name, this.isReply); + shortname = SW.yotsuba.Build.shortFilename(this.file.name, this.isReply); if (fullname === shortname) { return {innerHTML: E(fullname)}; } else { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 67867d7f6..e0864c4e2 100644 Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js index 0531b4b84..c44658b52 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.16.6 +// @version 1.14.16.7 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -215,7 +215,7 @@ docSet = function() { }; g = { - VERSION: '1.14.16.6', + VERSION: '1.14.16.7', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -454,7 +454,7 @@ Config = (function() { filesize: '', MD5: '' }, - sauces: "# Known filename formats:\nhttps://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/\nhttps://www.deviantart.com/gallery/#/d%$1%$2;regexp:/^\\w+_by_\\w+[_-]d([\\da-z]{6})\\b|^d([\\da-z]{6})-[\\da-z]{8}-/\nhttps://imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/\nhttps://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/\nhttps://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/\n\n# Reverse image search:\nhttps://www.google.com/searchbyimage?image_url=%IMG&safe=off\nhttps://yandex.com/images/search?rpt=imageview&url=%IMG\n#//tineye.com/search?url=%IMG\n#//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights\n\n# Specialized reverse image search:\n//iqdb.org/?url=%IMG\nhttps://trace.moe/?auto&url=%IMG;text:wait\n#//3d.iqdb.org/?url=%IMG\n#//saucenao.com/search.php?url=%IMG\n\n# \"View Same\" in archives:\nhttp://eye.swfchan.com/search/?q=%name;types:swf\n#https://desuarchive.org/_/search/image/%sMD5/\n#https://archive.4plebs.org/_/search/image/%sMD5/\n#https://boards.fireden.net/_/search/image/%sMD5/\n#https://foolz.fireden.net/_/search/image/%sMD5/\n\n# Other tools:\n#http://exif.regex.info/exif.cgi?imgurl=%URL\n#//imgops.com/%URL;types:gif,jpg,png\n#//www.gif-explode.com/%URL;types:gif", + sauces: "# Known filename formats:\nhttps://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/\njavascript:void(open(\"https://www.deviantart.com/\"+%$1.replace(/_/g,\"-\")+\"/art/\"+parseInt(%$2,36)));regexp:/^\\w+_by_(\\w+)[_-]d([\\da-z]{6})\\b/\nhttps://imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/\nhttps://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/\nhttps://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/\n\n# Reverse image search:\nhttps://www.google.com/searchbyimage?image_url=%IMG&safe=off\nhttps://yandex.com/images/search?rpt=imageview&url=%IMG\n#//tineye.com/search?url=%IMG\n#//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights\n\n# Specialized reverse image search:\n//iqdb.org/?url=%IMG\nhttps://trace.moe/?auto&url=%IMG;text:wait\n#//3d.iqdb.org/?url=%IMG\n#//saucenao.com/search.php?url=%IMG\n\n# \"View Same\" in archives:\nhttp://eye.swfchan.com/search/?q=%name;types:swf\n#https://desuarchive.org/_/search/image/%sMD5/\n#https://archive.4plebs.org/_/search/image/%sMD5/\n#https://boards.fireden.net/_/search/image/%sMD5/\n#https://foolz.fireden.net/_/search/image/%sMD5/\n\n# Other tools:\n#http://exif.regex.info/exif.cgi?imgurl=%URL\n#//imgops.com/start?url=%URL;types:gif,jpg,png\n#//www.gif-explode.com/%URL;types:gif", FappeT: { werk: false }, @@ -13438,6 +13438,11 @@ Settings = (function() { set('archiveLists', data['archiveLists'].replace('https://mayhemydg.github.io/archives.json/archives.json', 'https://nstepien.github.io/archives.json/archives.json')); } } + if (compareString < '00001.00014.00016.00007') { + if (data['sauces'] != null) { + set('sauces', data['sauces'].replace(/https:\/\/www\.deviantart\.com\/gallery\/#\/d%\$1%\$2;regexp:\/\^\\w\+_by_\\w\+\[_-\]d\(\[\\da-z\]\{6\}\)\\b\|\^d\(\[\\da-z\]\{6\}\)-\[\\da-z\]\{8\}-\//g, 'javascript:void(open("https://www.deviantart.com/"+%$1.replace(/_/g,"-")+"/art/"+parseInt(%$2,36)));regexp:/^\\w+_by_(\\w+)[_-]d([\\da-z]{6})\\b/').replace(/\/\/imgops\.com\/%URL/g, '//imgops.com/start?url=%URL')); + } + } return changes; }, loadSettings: function(data, cb) { @@ -16803,7 +16808,11 @@ Embedding = (function() { case 200: case 304: text = service.text(req.response, uid); - Embedding.cache.set(data, text); + if (typeof text === 'string') { + Embedding.cache.set(data, text); + } else { + text = link.textContent; + } break; case 404: text = "Not Found"; @@ -16950,10 +16959,12 @@ Embedding = (function() { key: 'Gfycat', regExp: /^\w+:\/\/(?:www\.)?gfycat\.com\/(?:iframe\/)?(\w+)/, el: function(a) { - var div; - return div = $.el('iframe', { - src: "//gfycat.com/iframe/" + a.dataset.uid + var el; + el = $.el('iframe', { + src: "//gfycat.com/ifr/" + a.dataset.uid }); + el.setAttribute("allowfullscreen", "true"); + return el; } }, { key: 'Gist', @@ -17005,11 +17016,11 @@ Embedding = (function() { } }, { key: 'LiveLeak', - regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*i=(\w+)/, + regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*[tif]=(\w+)/, el: function(a) { var el; el = $.el('iframe', { - src: "https://www.liveleak.com/ll_embed?i=" + a.dataset.uid + src: "https://www.liveleak.com/e/" + a.dataset.uid }); el.setAttribute("allowfullscreen", "true"); return el; @@ -17115,14 +17126,14 @@ Embedding = (function() { }, { key: 'Openings.moe', regExp: /^\w+:\/\/openings.moe\/\?video=([^.&=]+)/, - style: 'max-width: 80vw; max-height: 80vh;', + style: 'width: 1280px; height: 720px; max-width: 80vw; max-height: 80vh;', el: function(a) { - return $.el('video', { - controls: true, - preload: 'auto', - src: "//openings.moe/video/" + a.dataset.uid + ".webm", - loop: true + var el; + el = $.el('iframe', { + src: "https://openings.moe/?video=" + a.dataset.uid }); + el.setAttribute("allowfullscreen", "true"); + return el; } }, { key: 'Pastebin', @@ -18744,7 +18755,7 @@ FileInfo = (function() { n: function() { var fullname, shortname; fullname = this.file.name; - shortname = g.SITE.Build.shortFilename(this.file.name, this.isReply); + shortname = SW.yotsuba.Build.shortFilename(this.file.name, this.isReply); if (fullname === shortname) { return {innerHTML: E(fullname)}; } else { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 87cc6e6aa..acdfef785 100644 Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index e3889955c..83b7686bd 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.16.6 +// @version 1.14.16.7 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index e59590ac7..d85573a61 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.16.6 +// @version 1.14.16.7 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -215,7 +215,7 @@ docSet = function() { }; g = { - VERSION: '1.14.16.6', + VERSION: '1.14.16.7', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -454,7 +454,7 @@ Config = (function() { filesize: '', MD5: '' }, - sauces: "# Known filename formats:\nhttps://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/\nhttps://www.deviantart.com/gallery/#/d%$1%$2;regexp:/^\\w+_by_\\w+[_-]d([\\da-z]{6})\\b|^d([\\da-z]{6})-[\\da-z]{8}-/\nhttps://imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/\nhttps://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/\nhttps://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/\n\n# Reverse image search:\nhttps://www.google.com/searchbyimage?image_url=%IMG&safe=off\nhttps://yandex.com/images/search?rpt=imageview&url=%IMG\n#//tineye.com/search?url=%IMG\n#//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights\n\n# Specialized reverse image search:\n//iqdb.org/?url=%IMG\nhttps://trace.moe/?auto&url=%IMG;text:wait\n#//3d.iqdb.org/?url=%IMG\n#//saucenao.com/search.php?url=%IMG\n\n# \"View Same\" in archives:\nhttp://eye.swfchan.com/search/?q=%name;types:swf\n#https://desuarchive.org/_/search/image/%sMD5/\n#https://archive.4plebs.org/_/search/image/%sMD5/\n#https://boards.fireden.net/_/search/image/%sMD5/\n#https://foolz.fireden.net/_/search/image/%sMD5/\n\n# Other tools:\n#http://exif.regex.info/exif.cgi?imgurl=%URL\n#//imgops.com/%URL;types:gif,jpg,png\n#//www.gif-explode.com/%URL;types:gif", + sauces: "# Known filename formats:\nhttps://www.pixiv.net/member_illust.php?mode=medium&illust_id=%$1;regexp:/^(\\d+)_p\\d+/\njavascript:void(open(\"https://www.deviantart.com/\"+%$1.replace(/_/g,\"-\")+\"/art/\"+parseInt(%$2,36)));regexp:/^\\w+_by_(\\w+)[_-]d([\\da-z]{6})\\b/\nhttps://imgur.com/%$1;regexp:/^(?![a-zA-Z][a-z]{6})(?![A-Z]{7})(?!\\d{7})([\\da-zA-Z]{7})(?: \\(\\d+\\))?\\.\\w+$/\nhttps://flickr.com/photo.gne?id=%$1;regexp:/^(\\d+)_[\\da-f]{10}(?:_\\w)*\\b/\nhttps://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/\n\n# Reverse image search:\nhttps://www.google.com/searchbyimage?image_url=%IMG&safe=off\nhttps://yandex.com/images/search?rpt=imageview&url=%IMG\n#//tineye.com/search?url=%IMG\n#//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights\n\n# Specialized reverse image search:\n//iqdb.org/?url=%IMG\nhttps://trace.moe/?auto&url=%IMG;text:wait\n#//3d.iqdb.org/?url=%IMG\n#//saucenao.com/search.php?url=%IMG\n\n# \"View Same\" in archives:\nhttp://eye.swfchan.com/search/?q=%name;types:swf\n#https://desuarchive.org/_/search/image/%sMD5/\n#https://archive.4plebs.org/_/search/image/%sMD5/\n#https://boards.fireden.net/_/search/image/%sMD5/\n#https://foolz.fireden.net/_/search/image/%sMD5/\n\n# Other tools:\n#http://exif.regex.info/exif.cgi?imgurl=%URL\n#//imgops.com/start?url=%URL;types:gif,jpg,png\n#//www.gif-explode.com/%URL;types:gif", FappeT: { werk: false }, @@ -13438,6 +13438,11 @@ Settings = (function() { set('archiveLists', data['archiveLists'].replace('https://mayhemydg.github.io/archives.json/archives.json', 'https://nstepien.github.io/archives.json/archives.json')); } } + if (compareString < '00001.00014.00016.00007') { + if (data['sauces'] != null) { + set('sauces', data['sauces'].replace(/https:\/\/www\.deviantart\.com\/gallery\/#\/d%\$1%\$2;regexp:\/\^\\w\+_by_\\w\+\[_-\]d\(\[\\da-z\]\{6\}\)\\b\|\^d\(\[\\da-z\]\{6\}\)-\[\\da-z\]\{8\}-\//g, 'javascript:void(open("https://www.deviantart.com/"+%$1.replace(/_/g,"-")+"/art/"+parseInt(%$2,36)));regexp:/^\\w+_by_(\\w+)[_-]d([\\da-z]{6})\\b/').replace(/\/\/imgops\.com\/%URL/g, '//imgops.com/start?url=%URL')); + } + } return changes; }, loadSettings: function(data, cb) { @@ -16803,7 +16808,11 @@ Embedding = (function() { case 200: case 304: text = service.text(req.response, uid); - Embedding.cache.set(data, text); + if (typeof text === 'string') { + Embedding.cache.set(data, text); + } else { + text = link.textContent; + } break; case 404: text = "Not Found"; @@ -16950,10 +16959,12 @@ Embedding = (function() { key: 'Gfycat', regExp: /^\w+:\/\/(?:www\.)?gfycat\.com\/(?:iframe\/)?(\w+)/, el: function(a) { - var div; - return div = $.el('iframe', { - src: "//gfycat.com/iframe/" + a.dataset.uid + var el; + el = $.el('iframe', { + src: "//gfycat.com/ifr/" + a.dataset.uid }); + el.setAttribute("allowfullscreen", "true"); + return el; } }, { key: 'Gist', @@ -17005,11 +17016,11 @@ Embedding = (function() { } }, { key: 'LiveLeak', - regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*i=(\w+)/, + regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*[tif]=(\w+)/, el: function(a) { var el; el = $.el('iframe', { - src: "https://www.liveleak.com/ll_embed?i=" + a.dataset.uid + src: "https://www.liveleak.com/e/" + a.dataset.uid }); el.setAttribute("allowfullscreen", "true"); return el; @@ -17115,14 +17126,14 @@ Embedding = (function() { }, { key: 'Openings.moe', regExp: /^\w+:\/\/openings.moe\/\?video=([^.&=]+)/, - style: 'max-width: 80vw; max-height: 80vh;', + style: 'width: 1280px; height: 720px; max-width: 80vw; max-height: 80vh;', el: function(a) { - return $.el('video', { - controls: true, - preload: 'auto', - src: "//openings.moe/video/" + a.dataset.uid + ".webm", - loop: true + var el; + el = $.el('iframe', { + src: "https://openings.moe/?video=" + a.dataset.uid }); + el.setAttribute("allowfullscreen", "true"); + return el; } }, { key: 'Pastebin', @@ -18744,7 +18755,7 @@ FileInfo = (function() { n: function() { var fullname, shortname; fullname = this.file.name; - shortname = g.SITE.Build.shortFilename(this.file.name, this.isReply); + shortname = SW.yotsuba.Build.shortFilename(this.file.name, this.isReply); if (fullname === shortname) { return {innerHTML: E(fullname)}; } else { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 3c1ac41ea..b667aaf11 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.json b/builds/updates-beta.json index 7f1e8f704..66bb46273 100644 --- a/builds/updates-beta.json +++ b/builds/updates-beta.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.16.6", + "version": "1.14.16.7", "update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx" } ] diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index c9a5f3257..c789ab8b2 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.json b/builds/updates.json index cdfff6a82..ecb1e2a3a 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.16.6", + "version": "1.14.16.7", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index 1a5d2b333..0a035a017 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index 877f5e612..ff3f255ba 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.16.6", - "date": "2020-03-24T12:25:37.657Z" + "version": "1.14.16.7", + "date": "2020-03-30T03:52:30.159Z" } \ No newline at end of file