diff --git a/CHANGELOG.md b/CHANGELOG.md index b41acc890..9b0c46ce7 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ 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.11.10 + +**v1.11.10.0** *(2015-08-20)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.10.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.10.0/builds/4chan-X-noupdate.crx "Chromium version")] +- Based on v1.11.9.2. +- Support [port of Greasemonkey 3 to Pale Moon](https://github.com/janekptacijarabaci/greasemonkey/releases/latest). +- Fix bug causing updateless versions of userscript to check for and install updates. + ### v1.11.9 **v1.11.9.2** *(2015-08-16)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.9.2/builds/4chan-X-noupdate.crx "Chromium version")] diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 447250849..1cba614b6 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 981fc5e6a..104f4874c 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.11.9.2 +// @version 1.11.10.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -32,7 +32,7 @@ // @grant GM_openInTab // @grant GM_xmlhttpRequest // @run-at document-start -// @updateURL https://www.4chan-x.net/builds/4chan-X-beta.meta.js +// @updateURL https://www.4chan-x.net/builds/4chan-X-beta.meta.js // @downloadURL https://www.4chan-x.net/builds/4chan-X-beta.user.js // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAF5JREFUeNrtkTESABAQxPD/R6tsE2dUGYUtFJvLDKf93KevHJAjpBorAQWSBIKqFASC4G0pCAkm4GfaEvgYXl0T6HBaE97f0vmnfYHbZOMLZCx9ISdKWwjOWZSC8GYm4SUGwfYgqI4AAAAASUVORK5CYII= // ==/UserScript== diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index 257742e1f..ef284456d 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.11.9.2 +// @version 1.11.10.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -33,7 +33,7 @@ // @grant GM_openInTab // @grant GM_xmlhttpRequest // @run-at document-start -// @updateURL https://www.4chan-x.net/builds/4chan-X-beta.meta.js +// @updateURL https://www.4chan-x.net/builds/4chan-X-beta.meta.js // @downloadURL https://www.4chan-x.net/builds/4chan-X-beta.user.js // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAF5JREFUeNrtkTESABAQxPD/R6tsE2dUGYUtFJvLDKf93KevHJAjpBorAQWSBIKqFASC4G0pCAkm4GfaEvgYXl0T6HBaE97f0vmnfYHbZOMLZCx9ISdKWwjOWZSC8GYm4SUGwfYgqI4AAAAASUVORK5CYII= // ==/UserScript== @@ -412,7 +412,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.9.2', + VERSION: '1.11.10.0', NAMESPACE: '4chan X.', boards: {} }; @@ -802,6 +802,46 @@ })); }; + (function() { + var clone, err, ref, unsafeConstructors; + if (!(/PaleMoon\//.test(navigator.userAgent) && +(typeof GM_info !== "undefined" && GM_info !== null ? (ref = GM_info.version) != null ? ref.split('.')[0] : void 0 : void 0) >= 2 && typeof cloneInto === 'undefined')) { + return; + } + try { + return new CustomEvent('x', { + detail: {} + }); + } catch (_error) { + err = _error; + unsafeConstructors = { + Object: unsafeWindow.Object, + Array: unsafeWindow.Array + }; + clone = function(obj) { + var constructor, key, obj2, val; + if ((obj != null) && typeof obj === 'object' && (constructor = unsafeConstructors[obj.constructor.name])) { + obj2 = new constructor(); + for (key in obj) { + val = obj[key]; + obj2[key] = clone(val); + } + return obj2; + } else { + return obj; + } + }; + return $.event = function(event, detail, root) { + if (root == null) { + root = d; + } + return root.dispatchEvent(new CustomEvent(event, { + bubbles: true, + detail: clone(detail) + })); + }; + } + })(); + $.open = typeof GM_openInTab !== "undefined" && GM_openInTab !== null ? GM_openInTab : function(url) { return window.open(url, '_blank'); }; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index dd5584d49..2afbcb422 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 a5609951c..5ff4a56bc 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.11.9.2 +// @version 1.11.10.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -33,7 +33,8 @@ // @grant GM_openInTab // @grant GM_xmlhttpRequest // @run-at document-start -// @downloadURL https://www.4chan-x.net/builds/4chan-X-noupdate.user.js +// @updateURL https://noupdate.invalid/ +// @downloadURL https://noupdate.invalid/ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAF5JREFUeNrtkTESABAQxPD/R6tsE2dUGYUtFJvLDKf93KevHJAjpBorAQWSBIKqFASC4G0pCAkm4GfaEvgYXl0T6HBaE97f0vmnfYHbZOMLZCx9ISdKWwjOWZSC8GYm4SUGwfYgqI4AAAAASUVORK5CYII= // ==/UserScript== @@ -411,7 +412,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.9.2', + VERSION: '1.11.10.0', NAMESPACE: '4chan X.', boards: {} }; @@ -801,6 +802,46 @@ })); }; + (function() { + var clone, err, ref, unsafeConstructors; + if (!(/PaleMoon\//.test(navigator.userAgent) && +(typeof GM_info !== "undefined" && GM_info !== null ? (ref = GM_info.version) != null ? ref.split('.')[0] : void 0 : void 0) >= 2 && typeof cloneInto === 'undefined')) { + return; + } + try { + return new CustomEvent('x', { + detail: {} + }); + } catch (_error) { + err = _error; + unsafeConstructors = { + Object: unsafeWindow.Object, + Array: unsafeWindow.Array + }; + clone = function(obj) { + var constructor, key, obj2, val; + if ((obj != null) && typeof obj === 'object' && (constructor = unsafeConstructors[obj.constructor.name])) { + obj2 = new constructor(); + for (key in obj) { + val = obj[key]; + obj2[key] = clone(val); + } + return obj2; + } else { + return obj; + } + }; + return $.event = function(event, detail, root) { + if (root == null) { + root = d; + } + return root.dispatchEvent(new CustomEvent(event, { + bubbles: true, + detail: clone(detail) + })); + }; + } + })(); + $.open = typeof GM_openInTab !== "undefined" && GM_openInTab !== null ? GM_openInTab : function(url) { return window.open(url, '_blank'); }; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index d2ddf59a7..4398907f5 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 d22715a88..67a50436c 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.11.9.2 +// @version 1.11.10.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -32,7 +32,7 @@ // @grant GM_openInTab // @grant GM_xmlhttpRequest // @run-at document-start -// @updateURL https://www.4chan-x.net/builds/4chan-X.meta.js +// @updateURL https://www.4chan-x.net/builds/4chan-X.meta.js // @downloadURL https://www.4chan-x.net/builds/4chan-X.user.js // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAF5JREFUeNrtkTESABAQxPD/R6tsE2dUGYUtFJvLDKf93KevHJAjpBorAQWSBIKqFASC4G0pCAkm4GfaEvgYXl0T6HBaE97f0vmnfYHbZOMLZCx9ISdKWwjOWZSC8GYm4SUGwfYgqI4AAAAASUVORK5CYII= // ==/UserScript== diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b8b14fbaa..6e1bf8862 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.11.9.2 +// @version 1.11.10.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -33,7 +33,7 @@ // @grant GM_openInTab // @grant GM_xmlhttpRequest // @run-at document-start -// @updateURL https://www.4chan-x.net/builds/4chan-X.meta.js +// @updateURL https://www.4chan-x.net/builds/4chan-X.meta.js // @downloadURL https://www.4chan-x.net/builds/4chan-X.user.js // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAF5JREFUeNrtkTESABAQxPD/R6tsE2dUGYUtFJvLDKf93KevHJAjpBorAQWSBIKqFASC4G0pCAkm4GfaEvgYXl0T6HBaE97f0vmnfYHbZOMLZCx9ISdKWwjOWZSC8GYm4SUGwfYgqI4AAAAASUVORK5CYII= // ==/UserScript== @@ -412,7 +412,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.9.2', + VERSION: '1.11.10.0', NAMESPACE: '4chan X.', boards: {} }; @@ -802,6 +802,46 @@ })); }; + (function() { + var clone, err, ref, unsafeConstructors; + if (!(/PaleMoon\//.test(navigator.userAgent) && +(typeof GM_info !== "undefined" && GM_info !== null ? (ref = GM_info.version) != null ? ref.split('.')[0] : void 0 : void 0) >= 2 && typeof cloneInto === 'undefined')) { + return; + } + try { + return new CustomEvent('x', { + detail: {} + }); + } catch (_error) { + err = _error; + unsafeConstructors = { + Object: unsafeWindow.Object, + Array: unsafeWindow.Array + }; + clone = function(obj) { + var constructor, key, obj2, val; + if ((obj != null) && typeof obj === 'object' && (constructor = unsafeConstructors[obj.constructor.name])) { + obj2 = new constructor(); + for (key in obj) { + val = obj[key]; + obj2[key] = clone(val); + } + return obj2; + } else { + return obj; + } + }; + return $.event = function(event, detail, root) { + if (root == null) { + root = d; + } + return root.dispatchEvent(new CustomEvent(event, { + bubbles: true, + detail: clone(detail) + })); + }; + } + })(); + $.open = typeof GM_openInTab !== "undefined" && GM_openInTab !== null ? GM_openInTab : function(url) { return window.open(url, '_blank'); }; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 7cab7db0e..1cccc12b6 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 5b59db41f..0b9f01013 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 34a7d1cb0..adafd7c2e 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index 9f8e7f2ec..8e12b092a 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "meta": { "name": "4chan X", "fork": "ccd0", - "version": "1.11.9.2", - "date": "2015-08-17T01:13:28.335Z", + "version": "1.11.10.0", + "date": "2015-08-20T08:34:03.582Z", "page": "https://www.4chan-x.net/", "downloads": "https://www.4chan-x.net/builds/", "oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",