4chan x -> 4chan X

This commit is contained in:
Jordan Bates 2013-04-24 10:05:33 -07:00
parent 51f09aa048
commit d1c26d48e1
6 changed files with 54 additions and 54 deletions

View File

@ -1,12 +1,12 @@
// ==UserScript==
// @name 4chan x
// @name 4chan X
// @version 1.1.0
// @namespace 4chan-x
// @description The most comprehensive 4chan userscript
// @copyright 2013-2013 Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2013-2013 Jordan Bates <saudrapsmann@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2012-2013 Nicolas Stepien <stepien.nicolas@gmail.com>
// @namespace 4chan-X
// @description Cross-browser userscript for maximum lurking on 4chan.
// @copyright 2013-2013 Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2013-2013 Jordan Bates <saudrapsmann@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2012-2013 Nicolas Stepien <stepien.nicolas@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @match *://api.4chan.org/*
// @match *://boards.4chan.org/*
@ -17,12 +17,12 @@
// @grant GM_deleteValue
// @grant GM_openInTab
// @run-at document-start
// @updateURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_x.meta.js
// @downloadURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_x.user.js
// @updateURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_X.meta.js
// @downloadURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_X.user.js
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan x - Version 1.1.0 - 2013-04-24
* 4chan X - Version 1.1.0 - 2013-04-24
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -124,7 +124,7 @@
'Thread Expansion': [true, 'Add buttons to expand threads.'],
'Index Navigation': [false, 'Add buttons to navigate between threads.'],
'Reply Navigation': [false, 'Add buttons to navigate to top / bottom of thread.'],
'Check for Updates': [true, 'Check for updated versions of 4chan x.']
'Check for Updates': [true, 'Check for updated versions of 4chan X.']
},
'Linkification': {
'Linkify': [true, 'Convert text into links where applicable.'],
@ -290,7 +290,7 @@
g = {
VERSION: '1.1.0',
NAMESPACE: '4chan x.',
NAMESPACE: '4chan X.',
boards: {},
threads: {},
posts: {}
@ -8754,7 +8754,7 @@
curr = g.VERSION.match(/\d+/g).map(Number);
changelog = 'https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md';
el = $.el('span', {
innerHTML: "4chan x has been updated to <a href='" + changelog + "' target=_blank>version " + g.VERSION + "</a>."
innerHTML: "4chan X has been updated to <a href='" + changelog + "' target=_blank>version " + g.VERSION + "</a>."
});
new Notification('info', el, 30);
} else {
@ -8789,7 +8789,7 @@
return;
}
$.event('CloseMenu');
html = "<nav>\n <div class=sections-list></div>\n <p class='imp-exp-result warning'></p>\n <div class=credits>\n <a class=export>Export</a> |\n <a class=import>Import</a> |\n <input type=file style='display: none;'>\n <a href='http://seaweedchan.github.io/4chan-x/' target=_blank>4chan x</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md' target=_blank>" + g.VERSION + "</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CONTRIBUTING.md#reporting-bugs-and-suggestions' target=_blank>Issues</a> |\n <a href=javascript:; class=close title=Close>×</a>\n </div>\n</nav>\n<hr>\n<div class=section-container><section></section></div>";
html = "<nav>\n <div class=sections-list></div>\n <p class='imp-exp-result warning'></p>\n <div class=credits>\n <a class=export>Export</a> |\n <a class=import>Import</a> |\n <input type=file style='display: none;'>\n <a href='http://seaweedchan.github.io/4chan-x/' target=_blank>4chan X</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md' target=_blank>" + g.VERSION + "</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CONTRIBUTING.md#reporting-bugs-and-suggestions' target=_blank>Issues</a> |\n <a href=javascript:; class=close title=Close>×</a>\n </div>\n</nav>\n<hr>\n<div class=section-container><section></section></div>";
Settings.overlay = overlay = $.el('div', {
id: 'overlay'
});
@ -8974,7 +8974,7 @@
a = $.el('a', {
className: 'warning',
textContent: 'Save me!',
download: "4chan x v" + g.VERSION + "-" + now + ".json",
download: "4chan X v" + g.VERSION + "-" + now + ".json",
href: "data:application/json;base64," + (btoa(unescape(encodeURIComponent(JSON.stringify(data, null, 2))))),
target: '_blank'
});
@ -9613,7 +9613,7 @@
}
$.set('lastchecked', now);
el = $.el('span', {
innerHTML: "Update: 4chan x v" + version + " is out, get it <a href=http://seaweedchan.github.io/4chan-x/ target=_blank>here</a>."
innerHTML: "Update: 4chan X v" + version + " is out, get it <a href=http://seaweedchan.github.io/4chan-x/ target=_blank>here</a>."
});
return new Notification('info', el, 120);
}
@ -9678,7 +9678,7 @@
return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, {
sync: true,
form: $.formData({
n: "4chan x v" + g.VERSION,
n: "4chan X v" + g.VERSION,
t: 'userjs',
ua: window.navigator.userAgent,
url: window.location.href,

View File

@ -1,12 +1,12 @@
// ==UserScript==
// @name 4chan x
// @name 4chan X
// @version 1.1.0
// @namespace 4chan-x
// @description The most comprehensive 4chan userscript
// @copyright 2013-2013 Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2013-2013 Jordan Bates <saudrapsmann@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2012-2013 Nicolas Stepien <stepien.nicolas@gmail.com>
// @namespace 4chan-X
// @description Cross-browser userscript for maximum lurking on 4chan.
// @copyright 2013-2013 Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2013-2013 Jordan Bates <saudrapsmann@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2012-2013 Nicolas Stepien <stepien.nicolas@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @match *://api.4chan.org/*
// @match *://boards.4chan.org/*
@ -17,12 +17,12 @@
// @grant GM_deleteValue
// @grant GM_openInTab
// @run-at document-start
// @updateURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_x.meta.js
// @downloadURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_x.user.js
// @updateURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_X.meta.js
// @downloadURL https://github.com/seaweedchan/4chan-x/raw/stable/builds/4chan_X.user.js
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan x - Version 1.1.0 - 2013-04-24
* 4chan X - Version 1.1.0 - 2013-04-24
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -124,7 +124,7 @@
'Thread Expansion': [true, 'Add buttons to expand threads.'],
'Index Navigation': [false, 'Add buttons to navigate between threads.'],
'Reply Navigation': [false, 'Add buttons to navigate to top / bottom of thread.'],
'Check for Updates': [true, 'Check for updated versions of 4chan x.']
'Check for Updates': [true, 'Check for updated versions of 4chan X.']
},
'Linkification': {
'Linkify': [true, 'Convert text into links where applicable.'],
@ -287,7 +287,7 @@
g = {
VERSION: '1.1.0',
NAMESPACE: '4chan x.',
NAMESPACE: '4chan X.',
boards: {},
threads: {},
posts: {}
@ -8770,7 +8770,7 @@
curr = g.VERSION.match(/\d+/g).map(Number);
changelog = 'https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md';
el = $.el('span', {
innerHTML: "4chan x has been updated to <a href='" + changelog + "' target=_blank>version " + g.VERSION + "</a>."
innerHTML: "4chan X has been updated to <a href='" + changelog + "' target=_blank>version " + g.VERSION + "</a>."
});
new Notification('info', el, 30);
} else {
@ -8805,7 +8805,7 @@
return;
}
$.event('CloseMenu');
html = "<nav>\n <div class=sections-list></div>\n <p class='imp-exp-result warning'></p>\n <div class=credits>\n <a class=export>Export</a> |\n <a class=import>Import</a> |\n <input type=file style='display: none;'>\n <a href='http://seaweedchan.github.io/4chan-x/' target=_blank>4chan x</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md' target=_blank>" + g.VERSION + "</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CONTRIBUTING.md#reporting-bugs-and-suggestions' target=_blank>Issues</a> |\n <a href=javascript:; class=close title=Close>×</a>\n </div>\n</nav>\n<hr>\n<div class=section-container><section></section></div>";
html = "<nav>\n <div class=sections-list></div>\n <p class='imp-exp-result warning'></p>\n <div class=credits>\n <a class=export>Export</a> |\n <a class=import>Import</a> |\n <input type=file style='display: none;'>\n <a href='http://seaweedchan.github.io/4chan-x/' target=_blank>4chan X</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md' target=_blank>" + g.VERSION + "</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CONTRIBUTING.md#reporting-bugs-and-suggestions' target=_blank>Issues</a> |\n <a href=javascript:; class=close title=Close>×</a>\n </div>\n</nav>\n<hr>\n<div class=section-container><section></section></div>";
Settings.overlay = overlay = $.el('div', {
id: 'overlay'
});
@ -8990,7 +8990,7 @@
a = $.el('a', {
className: 'warning',
textContent: 'Save me!',
download: "4chan x v" + g.VERSION + "-" + now + ".json",
download: "4chan X v" + g.VERSION + "-" + now + ".json",
href: "data:application/json;base64," + (btoa(unescape(encodeURIComponent(JSON.stringify(data, null, 2))))),
target: '_blank'
});
@ -9631,7 +9631,7 @@
}
$.set('lastchecked', now);
el = $.el('span', {
innerHTML: "Update: 4chan x v" + version + " is out, get it <a href=http://seaweedchan.github.io/4chan-x/ target=_blank>here</a>."
innerHTML: "Update: 4chan X v" + version + " is out, get it <a href=http://seaweedchan.github.io/4chan-x/ target=_blank>here</a>."
});
return new Notification('info', el, 120);
}
@ -9696,7 +9696,7 @@
return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, {
sync: true,
form: $.formData({
n: "4chan x v" + g.VERSION,
n: "4chan X v" + g.VERSION,
t: 'userscript',
ua: window.navigator.userAgent,
url: window.location.href,

View File

@ -1,8 +1,8 @@
{
"name": "4chan x",
"name": "4chan X",
"version": "1.1.0",
"manifest_version": 2,
"description": "The most comprehensive 4chan userscript",
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"icons": {
"16": "icon16.png",
"48": "icon48.png",

View File

@ -21,7 +21,7 @@
'Thread Expansion': [true, 'Add buttons to expand threads.'],
'Index Navigation': [false, 'Add buttons to navigate between threads.'],
'Reply Navigation': [false, 'Add buttons to navigate to top / bottom of thread.'],
'Check for Updates': [true, 'Check for updated versions of 4chan x.']
'Check for Updates': [true, 'Check for updated versions of 4chan X.']
},
'Linkification': {
'Linkify': [true, 'Convert text into links where applicable.'],
@ -184,7 +184,7 @@
g = {
VERSION: '1.1.0',
NAMESPACE: '4chan x.',
NAMESPACE: '4chan X.',
boards: {},
threads: {},
posts: {}
@ -8615,7 +8615,7 @@
curr = g.VERSION.match(/\d+/g).map(Number);
changelog = 'https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md';
el = $.el('span', {
innerHTML: "4chan x has been updated to <a href='" + changelog + "' target=_blank>version " + g.VERSION + "</a>."
innerHTML: "4chan X has been updated to <a href='" + changelog + "' target=_blank>version " + g.VERSION + "</a>."
});
new Notification('info', el, 30);
} else {
@ -8650,7 +8650,7 @@
return;
}
$.event('CloseMenu');
html = "<nav>\n <div class=sections-list></div>\n <p class='imp-exp-result warning'></p>\n <div class=credits>\n <a class=export>Export</a> |\n <a class=import>Import</a> |\n <input type=file style='display: none;'>\n <a href='http://seaweedchan.github.io/4chan-x/' target=_blank>4chan x</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md' target=_blank>" + g.VERSION + "</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CONTRIBUTING.md#reporting-bugs-and-suggestions' target=_blank>Issues</a> |\n <a href=javascript:; class=close title=Close>×</a>\n </div>\n</nav>\n<hr>\n<div class=section-container><section></section></div>";
html = "<nav>\n <div class=sections-list></div>\n <p class='imp-exp-result warning'></p>\n <div class=credits>\n <a class=export>Export</a> |\n <a class=import>Import</a> |\n <input type=file style='display: none;'>\n <a href='http://seaweedchan.github.io/4chan-x/' target=_blank>4chan X</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CHANGELOG.md' target=_blank>" + g.VERSION + "</a> |\n <a href='https://github.com/seaweedchan/4chan-x/blob/master/CONTRIBUTING.md#reporting-bugs-and-suggestions' target=_blank>Issues</a> |\n <a href=javascript:; class=close title=Close>×</a>\n </div>\n</nav>\n<hr>\n<div class=section-container><section></section></div>";
Settings.overlay = overlay = $.el('div', {
id: 'overlay'
});
@ -8835,7 +8835,7 @@
a = $.el('a', {
className: 'warning',
textContent: 'Save me!',
download: "4chan x v" + g.VERSION + "-" + now + ".json",
download: "4chan X v" + g.VERSION + "-" + now + ".json",
href: "data:application/json;base64," + (btoa(unescape(encodeURIComponent(JSON.stringify(data, null, 2))))),
target: '_blank'
});
@ -9474,7 +9474,7 @@
}
$.set('lastchecked', now);
el = $.el('span', {
innerHTML: "Update: 4chan x v" + version + " is out, get it <a href=http://seaweedchan.github.io/4chan-x/ target=_blank>here</a>."
innerHTML: "Update: 4chan X v" + version + " is out, get it <a href=http://seaweedchan.github.io/4chan-x/ target=_blank>here</a>."
});
return new Notification('info', el, 120);
}
@ -9539,7 +9539,7 @@
return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, {
sync: true,
form: $.formData({
n: "4chan x v" + g.VERSION,
n: "4chan X v" + g.VERSION,
t: 'crx',
ua: window.navigator.userAgent,
url: window.location.href,

View File

@ -1,9 +1,9 @@
{
"name": "4chan-x",
"name": "4chan-X",
"version": "1.1.0",
"description": "The most comprehensive 4chan userscript",
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": {
"name": "4chan x",
"name": "4chan X",
"repo": "https://github.com/seaweedchan/4chan-x/",
"page": "http://seaweedchan.github.io/4chan-x/",
"mainBranch": "master",
@ -14,8 +14,8 @@
"*://sys.4chan.org/*"
],
"files": {
"metajs": "4chan_x.meta.js",
"userjs": "4chan_x.user.js"
"metajs": "4chan_X.meta.js",
"userjs": "4chan_X.user.js"
}
},
"devDependencies": {

View File

@ -3,10 +3,10 @@
// @version <%= version %>
// @namespace <%= name %>
// @description <%= description %>
// @copyright 2013-<%= grunt.template.today('yyyy') %> Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2013-<%= grunt.template.today('yyyy') %> Jordan Bates <saudrapsmann@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2012-<%= grunt.template.today('yyyy') %> Nicolas Stepien <stepien.nicolas@gmail.com>
// @copyright 2013-<%= grunt.template.today('yyyy') %> Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2013-<%= grunt.template.today('yyyy') %> Jordan Bates <saudrapsmann@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2012-<%= grunt.template.today('yyyy') %> Nicolas Stepien <stepien.nicolas@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
<%=
meta.matches.map(function(match) {
@ -18,7 +18,7 @@
// @grant GM_deleteValue
// @grant GM_openInTab
// @run-at document-start
// @updateURL <%= meta.repo %>raw/stable/builds/<%= meta.files.metajs %>
// @downloadURL <%= meta.repo %>raw/stable/builds/<%= meta.files.userjs %>
// @updateURL <%= meta.repo %>raw/stable/builds/<%= meta.files.metajs %>
// @downloadURL <%= meta.repo %>raw/stable/builds/<%= meta.files.userjs %>
// @icon data:image/png;base64,<%= grunt.file.read('src/img/icon48.png', {encoding: 'base64'}) %>
// ==/UserScript==