diff --git a/4chan_x.meta.js b/4chan_x.meta.js index e1398649b..053d36de9 100644 --- a/4chan_x.meta.js +++ b/4chan_x.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 4chan X Alpha // @version 3.0.0 -// @description Adds various features. +// @description Cross-browser userscript for maximum lurking on 4chan. // @copyright 2009-2011 James Campos // @copyright 2012 Nicolas Stepien // @license MIT; http://en.wikipedia.org/wiki/Mit_license diff --git a/4chan_x.user.js b/4chan_x.user.js index 32ea8367e..b7f0c9731 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 4chan X Alpha // @version 3.0.0 -// @description Adds various features. +// @description Cross-browser userscript for maximum lurking on 4chan. // @copyright 2009-2011 James Campos // @copyright 2012 Nicolas Stepien // @license MIT; http://en.wikipedia.org/wiki/Mit_license diff --git a/grunt.js b/grunt.js index aa475e930..07b8a788f 100644 --- a/grunt.js +++ b/grunt.js @@ -6,58 +6,11 @@ module.exports = function(grunt) { meta: { name: '<%= pkg.name.replace(/-/g, " ") %>', repo: 'https://github.com/MayhemYDG/4chan-x/', - banner: [ - '/* <%= meta.name %> - Version <%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>', - ' * http://mayhemydg.github.com/4chan-x/', - ' *', - ' * Copyright (c) 2009-2011 James Campos ', - ' * Copyright (c) <%= grunt.template.today("yyyy") %> Nicolas Stepien ', - ' * Licensed under the MIT license.', - ' * <%= meta.repo %>blob/master/LICENSE', - ' *', - ' * Contributors:', - ' * <%= meta.repo %>graphs/contributors', - ' * Non-GitHub contributors:', - ' * ferongr, xat-, Ongpot, thisisanon and Anonymous - favicon contributions', - ' * e000 - cooldown sanity check', - ' * Seiba - chrome quick reply focusing', - ' * herpaderpderp - recaptcha fixes', - ' * WakiMiko - recaptcha tab order http://userscripts.org/scripts/show/82657', - ' *', - ' * All the people who\'ve taken the time to write bug reports.', - ' *', - ' * Thank you.', - ' */' - ].join('\n'), - metadataBlock: [ - '// ==UserScript==', - '// @name <%= meta.name %>', - '// @version <%= pkg.version %>', - '// @description Adds various features.', - '// @copyright 2009-2011 James Campos ', - '// @copyright <%= grunt.template.today("yyyy") %> Nicolas Stepien ', - '// @license MIT; http://en.wikipedia.org/wiki/Mit_license', - '// @match *://boards.4chan.org/*', - '// @match *://images.4chan.org/*', - '// @match *://sys.4chan.org/*', - '// @match *://api.4chan.org/*', - '// @match *://*.foolz.us/api/*', - '// @grant GM_getValue', - '// @grant GM_setValue', - '// @grant GM_deleteValue', - '// @grant GM_openInTab', - '// @run-at document-start', - '// @updateURL <%= meta.repo %>raw/stable/<%= meta.files.metajs %>', - '// @downloadURL <%= meta.repo %>raw/stable/<%= meta.files.userjs %>', - '// @icon <%= meta.repo %>raw/stable/img/icon.gif', - '// ==/UserScript==' - ].join('\n'), - latest: 'document.dispatchEvent(new CustomEvent("<%= pkg.name.replace(/-/g, "") %>Update",{detail:{v:"<%= pkg.version %>"}}))', files: { metajs: '4chan_x.meta.js', userjs: '4chan_x.user.js', latestjs: 'latestv3.js' - }, + } }, concat: { coffee: { @@ -72,15 +25,15 @@ module.exports = function(grunt) { dest: 'tmp/script.coffee' }, js: { - src: ['', '', 'tmp/script.js'], + src: ['', '', 'tmp/script.js'], dest: '' }, meta: { - src: '', + src: '', dest: '' }, latest: { - src: '', + src: '', dest: '' } }, @@ -88,7 +41,7 @@ module.exports = function(grunt) { all: { src: 'tmp/script.coffee', dest: 'tmp/script.js' - }, + } }, exec: { commit: { @@ -111,7 +64,14 @@ module.exports = function(grunt) { } }, watch: { - files: ['grunt.js', 'lib/**/*.coffee', 'src/**/*.coffee', 'css/**/*.css', 'img/*'], + files: [ + 'grunt.js', + 'lib/**/*.coffee', + 'src/**/*.coffee', + 'src/**/*.js', + 'css/**/*.css', + 'img/*' + ], tasks: 'default' }, clean: { diff --git a/latestv3.js b/latestv3.js index 8aa354586..490546351 100644 --- a/latestv3.js +++ b/latestv3.js @@ -1 +1 @@ -document.dispatchEvent(new CustomEvent("4chanXAlphaUpdate",{detail:{v:"3.0.0"}})) +document.dispatchEvent(new CustomEvent("4chanXAlphaVersion",{detail:{v:"3.0.0"}}))