diff --git a/CHANGELOG.md b/CHANGELOG.md index 50ac54ee0..68b90d013 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ The links to individual versions below are to copies of the script with the upda ### v1.10.12 +**v1.10.12.2** *(2015-05-08)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.12.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.12.2/builds/4chan-X-noupdate.crx "Chromium version")] +- Fix sandboxed HTTP sauce links not loading from HTTPS pages. + **v1.10.12.1** *(2015-05-04)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.12.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.12.1/builds/4chan-X-noupdate.crx "Chromium version")] - Give paste area cursor pointer like the other QR buttons. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 4bbd859a3..e6ccfdf40 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 8ee979024..f9ea4dc8c 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.10.12.1 +// @version 1.10.12.2 // @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 1d533acc1..28b83c5cc 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X beta -// @version 1.10.12.1 +// @version 1.10.12.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -396,7 +396,7 @@ doc = d.documentElement; g = { - VERSION: '1.10.12.1', + VERSION: '1.10.12.2', NAMESPACE: '4chan X.', boards: {} }; @@ -10612,6 +10612,13 @@ innerHTML: "[sb] " + E(url) + "" }); }, + rmOrigin: function(e) { + if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || e.button !== 0) { + return; + } + $.open(this.href); + return e.preventDefault(); + }, createSauceLink: function(link, post) { var a, ext, i, k, key, len1, m, part, parts, ref, ref1, ref2, skip, url; if (!(link = link.trim())) { @@ -10676,6 +10683,9 @@ if (/^javascript:/i.test(parts['url'])) { a.removeAttribute('target'); } + if (parts['sandbox'] != null) { + $.on(a, 'click', Sauce.rmOrigin); + } return a; }, node: function() { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 515938b9b..429a95872 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 ded79b9f5..d21eb55cd 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.10.12.1 +// @version 1.10.12.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -395,7 +395,7 @@ doc = d.documentElement; g = { - VERSION: '1.10.12.1', + VERSION: '1.10.12.2', NAMESPACE: '4chan X.', boards: {} }; @@ -10611,6 +10611,13 @@ innerHTML: "[sb] " + E(url) + "" }); }, + rmOrigin: function(e) { + if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || e.button !== 0) { + return; + } + $.open(this.href); + return e.preventDefault(); + }, createSauceLink: function(link, post) { var a, ext, i, k, key, len1, m, part, parts, ref, ref1, ref2, skip, url; if (!(link = link.trim())) { @@ -10675,6 +10682,9 @@ if (/^javascript:/i.test(parts['url'])) { a.removeAttribute('target'); } + if (parts['sandbox'] != null) { + $.on(a, 'click', Sauce.rmOrigin); + } return a; }, node: function() { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 5e7426ded..4dd18bfc4 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 d6442df05..832cb8ebf 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.10.12.1 +// @version 1.10.12.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 6ad8e3d8a..551f3c3d9 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.10.12.1 +// @version 1.10.12.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -396,7 +396,7 @@ doc = d.documentElement; g = { - VERSION: '1.10.12.1', + VERSION: '1.10.12.2', NAMESPACE: '4chan X.', boards: {} }; @@ -10612,6 +10612,13 @@ innerHTML: "[sb] " + E(url) + "" }); }, + rmOrigin: function(e) { + if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || e.button !== 0) { + return; + } + $.open(this.href); + return e.preventDefault(); + }, createSauceLink: function(link, post) { var a, ext, i, k, key, len1, m, part, parts, ref, ref1, ref2, skip, url; if (!(link = link.trim())) { @@ -10676,6 +10683,9 @@ if (/^javascript:/i.test(parts['url'])) { a.removeAttribute('target'); } + if (parts['sandbox'] != null) { + $.on(a, 'click', Sauce.rmOrigin); + } return a; }, node: function() { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 5818cd7fb..ec745ebe7 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index 5a183dbe9..94a543d10 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.xml b/builds/updates.xml index c5120df3a..76187f770 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index 38e393b4a..2fbae2e94 100755 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X", - "version": "1.10.12.1", - "date": "2015-05-05T03:45:36.466Z", + "version": "1.10.12.2", + "date": "2015-05-09T02:24:39.395Z", "repo": "https://github.com/ccd0/4chan-x/", "page": "https://github.com/ccd0/4chan-x", "downloads": "https://ccd0.github.io/4chan-x/builds/",