From 2074474395488dd104020889e3c98d0f4c791055 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 13 May 2013 15:15:08 -0700 Subject: [PATCH] Don't want it, don't need it. --- LICENSE | 2 +- builds/4chan-X.js | 22 +--------------------- builds/4chan-X.user.js | 22 +--------------------- builds/crx/script.js | 22 +--------------------- src/General/Main.coffee | 13 ------------- 5 files changed, 4 insertions(+), 77 deletions(-) diff --git a/LICENSE b/LICENSE index 00e06ca7a..e94d10761 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.2 - 2013-05-12 +* 4chan X - Version 1.2.2 - 2013-05-13 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 29132b8ec..d9ccaa939 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.2 - 2013-05-12 +* 4chan X - Version 1.2.2 - 2013-05-13 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -10440,29 +10440,9 @@ }, errors: [], logError: function(data) { - if (!Main.errors.length) { - $.on(window, 'unload', Main.postErrors); - } c.error(data.message, data.error.stack); return Main.errors.push(data); }, - postErrors: function() { - var errors; - - errors = Main.errors.map(function(d) { - return d.message + ' ' + d.error.stack; - }); - return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, { - sync: true, - form: $.formData({ - n: "4chan X v" + g.VERSION, - t: 'userjs', - ua: window.navigator.userAgent, - url: window.location.href, - e: errors.join('\n') - }) - }); - }, isThisPageLegit: function() { var _ref; diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 198f51b25..1af29e282 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.2 - 2013-05-12 +* 4chan X - Version 1.2.2 - 2013-05-13 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -10451,29 +10451,9 @@ }, errors: [], logError: function(data) { - if (!Main.errors.length) { - $.on(window, 'unload', Main.postErrors); - } c.error(data.message, data.error.stack); return Main.errors.push(data); }, - postErrors: function() { - var errors; - - errors = Main.errors.map(function(d) { - return d.message + ' ' + d.error.stack; - }); - return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, { - sync: true, - form: $.formData({ - n: "4chan X v" + g.VERSION, - t: 'userscript', - ua: window.navigator.userAgent, - url: window.location.href, - e: errors.join('\n') - }) - }); - }, isThisPageLegit: function() { var _ref; diff --git a/builds/crx/script.js b/builds/crx/script.js index 5d884ada0..39ae88a90 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.2 - 2013-05-12 +* 4chan X - Version 1.2.2 - 2013-05-13 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -10433,29 +10433,9 @@ }, errors: [], logError: function(data) { - if (!Main.errors.length) { - $.on(window, 'unload', Main.postErrors); - } c.error(data.message, data.error.stack); return Main.errors.push(data); }, - postErrors: function() { - var errors; - - errors = Main.errors.map(function(d) { - return d.message + ' ' + d.error.stack; - }); - return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, { - sync: true, - form: $.formData({ - n: "4chan X v" + g.VERSION, - t: 'crx', - ua: window.navigator.userAgent, - url: window.location.href, - e: errors.join('\n') - }) - }); - }, isThisPageLegit: function() { var _ref; diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 0cfd6544a..d23b9483e 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -352,22 +352,9 @@ Main = errors: [] logError: (data) -> - unless Main.errors.length - $.on window, 'unload', Main.postErrors c.error data.message, data.error.stack Main.errors.push data - postErrors: -> - errors = Main.errors.map (d) -> d.message + ' ' + d.error.stack - $.ajax '<%= meta.page %>errors', {}, - sync: true - form: $.formData - n: "<%= meta.name %> v#{g.VERSION}" - t: '<%= type %>' - ua: window.navigator.userAgent - url: window.location.href - e: errors.join '\n' - isThisPageLegit: -> # 404 error page or similar. unless 'thisPageIsLegit' of Main