Oops.
This commit is contained in:
parent
b0e1748f0c
commit
a973654502
9246
builds/4chan-X.js
9246
builds/4chan-X.js
File diff suppressed because one or more lines are too long
@ -1,21 +0,0 @@
|
||||
// ==UserScript==
|
||||
// @name 4chan X
|
||||
// @version 3.1.3
|
||||
// @namespace 4chan-X
|
||||
// @description Cross-browser extension for productive lurking on 4chan.
|
||||
// @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/*
|
||||
// @match *://images.4chan.org/*
|
||||
// @match *://sys.4chan.org/*
|
||||
// @grant GM_getValue
|
||||
// @grant GM_setValue
|
||||
// @grant GM_deleteValue
|
||||
// @grant GM_openInTab
|
||||
// @run-at document-start
|
||||
// @updateURL https://4chan-x.just-believe.in/builds/4chan-X.meta.js
|
||||
// @downloadURL https://4chan-x.just-believe.in/builds/4chan-X.user.js
|
||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||
// ==/UserScript==
|
||||
File diff suppressed because one or more lines are too long
@ -44,7 +44,6 @@
|
||||
(function() {
|
||||
var $, $$, Anonymize, ArchiveLink, Banner, Board, Build, CatalogLinks, Clone, Conf, Config, CustomCSS, DataBoard, DataBoards, DeleteLink, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Get, GlobalMessage, Header, Icons, ImageExpand, ImageHover, ImageReplace, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Notification, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteYou, Quotify, Recursive, Redirect, RelativeDates, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
||||
__slice = [].slice,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
@ -3380,8 +3379,8 @@
|
||||
});
|
||||
return this.setup();
|
||||
},
|
||||
agent: "-moz-",
|
||||
sizing: "-moz-box-sizing",
|
||||
agent: "-o-",
|
||||
sizing: "box-sizing",
|
||||
setup: function() {
|
||||
this.addStyleReady();
|
||||
if (d.head) {
|
||||
@ -6476,11 +6475,11 @@
|
||||
});
|
||||
},
|
||||
sync: function(hiddenPSAs) {
|
||||
var btn, psa, _ref, _ref1;
|
||||
var btn, psa, _ref;
|
||||
|
||||
btn = PSAHiding.btn;
|
||||
psa = $.id('globalMessage');
|
||||
return _ref1 = (_ref = PSAHiding.trim(psa), __indexOf.call(hiddenPSAs, _ref) >= 0) ? [true, '<span>[ + ]</span>', 'show-announcement'] : [false, '<span>[ - ]</span>', 'hide-announcement'], psa.hidden = _ref1[0], btn.innerHTML = _ref1[1], btn.className = _ref1[2], _ref1;
|
||||
return _ref = hiddenPSAs.contains(PSAHiding.trim(psa)) ? [true, '<span>[ + ]</span>', 'show-announcement'] : [false, '<span>[ - ]</span>', 'hide-announcement'], psa.hidden = _ref[0], btn.innerHTML = _ref[1], btn.className = _ref[2], _ref;
|
||||
},
|
||||
trim: function(psa) {
|
||||
return psa.textContent.replace(/\W+/g, '').toLowerCase();
|
||||
@ -8797,7 +8796,7 @@
|
||||
a.setAttribute('data-postid', postID);
|
||||
}
|
||||
}
|
||||
if (__indexOf.call(this.quotes, quoteID) < 0) {
|
||||
if (!this.quotes.contains(quoteID)) {
|
||||
this.quotes.push(quoteID);
|
||||
}
|
||||
if (!a) {
|
||||
|
||||
@ -44,7 +44,6 @@
|
||||
(function() {
|
||||
var $, $$, Anonymize, ArchiveLink, Banner, Board, Build, CatalogLinks, Clone, Conf, Config, CustomCSS, DataBoard, DataBoards, DeleteLink, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Get, GlobalMessage, Header, Icons, ImageExpand, ImageHover, ImageReplace, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Notification, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteYou, Quotify, Recursive, Redirect, RelativeDates, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
||||
__slice = [].slice,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
@ -3371,8 +3370,8 @@
|
||||
});
|
||||
return this.setup();
|
||||
},
|
||||
agent: "-o-",
|
||||
sizing: "box-sizing",
|
||||
agent: "-moz-",
|
||||
sizing: "-moz-box-sizing",
|
||||
setup: function() {
|
||||
this.addStyleReady();
|
||||
if (d.head) {
|
||||
@ -6469,11 +6468,11 @@
|
||||
});
|
||||
},
|
||||
sync: function(hiddenPSAs) {
|
||||
var btn, psa, _ref, _ref1;
|
||||
var btn, psa, _ref;
|
||||
|
||||
btn = PSAHiding.btn;
|
||||
psa = $.id('globalMessage');
|
||||
return _ref1 = (_ref = PSAHiding.trim(psa), __indexOf.call(hiddenPSAs, _ref) >= 0) ? [true, '<span>[ + ]</span>', 'show-announcement'] : [false, '<span>[ - ]</span>', 'hide-announcement'], psa.hidden = _ref1[0], btn.innerHTML = _ref1[1], btn.className = _ref1[2], _ref1;
|
||||
return _ref = hiddenPSAs.contains(PSAHiding.trim(psa)) ? [true, '<span>[ + ]</span>', 'show-announcement'] : [false, '<span>[ - ]</span>', 'hide-announcement'], psa.hidden = _ref[0], btn.innerHTML = _ref[1], btn.className = _ref[2], _ref;
|
||||
},
|
||||
trim: function(psa) {
|
||||
return psa.textContent.replace(/\W+/g, '').toLowerCase();
|
||||
@ -8791,7 +8790,7 @@
|
||||
a.setAttribute('data-postid', postID);
|
||||
}
|
||||
}
|
||||
if (__indexOf.call(this.quotes, quoteID) < 0) {
|
||||
if (!this.quotes.contains(quoteID)) {
|
||||
this.quotes.push(quoteID);
|
||||
}
|
||||
if (!a) {
|
||||
|
||||
Binary file not shown.
BIN
builds/crx.crx
BIN
builds/crx.crx
Binary file not shown.
@ -23,7 +23,6 @@
|
||||
(function() {
|
||||
var $, $$, Anonymize, ArchiveLink, Banner, Board, Build, CatalogLinks, Clone, Conf, Config, CustomCSS, DataBoard, DataBoards, DeleteLink, DownloadLink, Emoji, ExpandComment, ExpandThread, FappeTyme, Favicon, FileInfo, Filter, Fourchan, Get, GlobalMessage, Header, Icons, ImageExpand, ImageHover, ImageReplace, JSColor, Keybinds, Linkify, Main, MascotTools, Mascots, Menu, Nav, Notification, PSAHiding, Polyfill, Post, PostHiding, QR, QuoteBacklink, QuoteCT, QuoteInline, QuoteOP, QuotePreview, QuoteStrikeThrough, QuoteYou, Quotify, Recursive, Redirect, RelativeDates, Report, ReportLink, RevealSpoilers, Rice, Sauce, Settings, Style, ThemeTools, Themes, Thread, ThreadExcerpt, ThreadHiding, ThreadStats, ThreadUpdater, ThreadWatcher, Time, UI, Unread, c, d, doc, editMascot, editTheme, g, userNavigation,
|
||||
__slice = [].slice,
|
||||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
@ -6414,11 +6413,11 @@
|
||||
});
|
||||
},
|
||||
sync: function(hiddenPSAs) {
|
||||
var btn, psa, _ref, _ref1;
|
||||
var btn, psa, _ref;
|
||||
|
||||
btn = PSAHiding.btn;
|
||||
psa = $.id('globalMessage');
|
||||
return _ref1 = (_ref = PSAHiding.trim(psa), __indexOf.call(hiddenPSAs, _ref) >= 0) ? [true, '<span>[ + ]</span>', 'show-announcement'] : [false, '<span>[ - ]</span>', 'hide-announcement'], psa.hidden = _ref1[0], btn.innerHTML = _ref1[1], btn.className = _ref1[2], _ref1;
|
||||
return _ref = hiddenPSAs.contains(PSAHiding.trim(psa)) ? [true, '<span>[ + ]</span>', 'show-announcement'] : [false, '<span>[ - ]</span>', 'hide-announcement'], psa.hidden = _ref[0], btn.innerHTML = _ref[1], btn.className = _ref[2], _ref;
|
||||
},
|
||||
trim: function(psa) {
|
||||
return psa.textContent.replace(/\W+/g, '').toLowerCase();
|
||||
@ -8735,7 +8734,7 @@
|
||||
a.setAttribute('data-postid', postID);
|
||||
}
|
||||
}
|
||||
if (__indexOf.call(this.quotes, quoteID) < 0) {
|
||||
if (!this.quotes.contains(quoteID)) {
|
||||
this.quotes.push(quoteID);
|
||||
}
|
||||
if (!a) {
|
||||
|
||||
@ -20,9 +20,9 @@ Style =
|
||||
|
||||
@setup()
|
||||
|
||||
agent: "<% if (type === 'crx') { %>-webkit-<% } else if (type === 'userjs') { %>-moz-<% } else { %>-o-<% } %>"
|
||||
agent: "<% if (type === 'crx') { %>-webkit-<% } else if (type === 'userscript') { %>-moz-<% } else { %>-o-<% } %>"
|
||||
|
||||
sizing: "<% if (type === 'userjs') { %>-moz-<% } else { %><% } %>box-sizing"
|
||||
sizing: "<% if (type === 'userscript') { %>-moz-<% } else { %><% } %>box-sizing"
|
||||
|
||||
setup: ->
|
||||
@addStyleReady()
|
||||
|
||||
@ -343,7 +343,7 @@ PSAHiding =
|
||||
sync: (hiddenPSAs) ->
|
||||
{btn} = PSAHiding
|
||||
psa = $.id 'globalMessage'
|
||||
[psa.hidden, btn.innerHTML, btn.className] = if PSAHiding.trim(psa) in hiddenPSAs
|
||||
[psa.hidden, btn.innerHTML, btn.className] = if hiddenPSAs.contains PSAHiding.trim psa
|
||||
[true, '<span>[ + ]</span>', 'show-announcement']
|
||||
else
|
||||
[false, '<span>[ - ]</span>', 'hide-announcement']
|
||||
@ -2246,7 +2246,7 @@ Quotify =
|
||||
a.setAttribute 'data-boardid', boardID
|
||||
a.setAttribute 'data-postid', postID
|
||||
|
||||
unless quoteID in @quotes
|
||||
unless @quotes.contains quoteID
|
||||
@quotes.push quoteID
|
||||
|
||||
unless a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user