Merge branch 'mayhem' into v3

Conflicts:
	CHANGELOG.md
	css/style.css
	package.json
	src/General/Header.coffee
This commit is contained in:
Zixaphir 2014-03-27 13:50:02 -07:00
commit cefb710c04
9 changed files with 1095 additions and 12 deletions

View File

@ -1,4 +1,5 @@
**MayhemYDG**: **MayhemYDG**:
- Fix captcha not refreshing.
- Thread and post hiding changes: - Thread and post hiding changes:
- The posts' menu now has a label entry listing the reasons why a post got hidden or highlighted. - The posts' menu now has a label entry listing the reasons why a post got hidden or highlighted.
- `Thread Hiding` and `Reply Hiding` settings are merged into one: `Post Hiding`. - `Thread Hiding` and `Reply Hiding` settings are merged into one: `Post Hiding`.

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.4.1 - 2014-03-26 * 4chan X - Version 1.4.1 - 2014-03-27
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE * https://github.com/Spittie/4chan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.4.1 - 2014-03-26 * 4chan X - Version 1.4.1 - 2014-03-27
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE * https://github.com/Spittie/4chan-x/blob/master/LICENSE
@ -6906,7 +6906,9 @@
$.sync('captchas', QR.captcha.sync); $.sync('captchas', QR.captcha.sync);
QR.captcha.nodes.challenge = challenge; QR.captcha.nodes.challenge = challenge;
new MutationObserver(QR.captcha.load.bind(QR.captcha)).observe(challenge, { new MutationObserver(QR.captcha.load.bind(QR.captcha)).observe(challenge, {
childList: true childList: true,
subtree: true,
attributes: true
}); });
return QR.captcha.load(); return QR.captcha.load();
}, },
@ -9311,7 +9313,7 @@
})(), })(),
toggle: function(e) { toggle: function(e) {
var fullID; var fullID;
fullID = $.x('ancestor::*[@data-full-i-d]', this).dataset.fullID; fullID = $.x('ancestor::*[@data-full-i-d][1]', this).dataset.fullID;
return Menu.menu.toggle(e, this, g.posts[fullID]); return Menu.menu.toggle(e, this, g.posts[fullID]);
} }
}; };

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.4.1 - 2014-03-26 * 4chan X - Version 1.4.1 - 2014-03-27
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE * https://github.com/Spittie/4chan-x/blob/master/LICENSE
@ -6951,7 +6951,9 @@
$.sync('captchas', QR.captcha.sync); $.sync('captchas', QR.captcha.sync);
QR.captcha.nodes.challenge = challenge; QR.captcha.nodes.challenge = challenge;
new MutationObserver(QR.captcha.load.bind(QR.captcha)).observe(challenge, { new MutationObserver(QR.captcha.load.bind(QR.captcha)).observe(challenge, {
childList: true childList: true,
subtree: true,
attributes: true
}); });
return QR.captcha.load(); return QR.captcha.load();
}, },
@ -9328,7 +9330,7 @@
})(), })(),
toggle: function(e) { toggle: function(e) {
var fullID; var fullID;
fullID = $.x('ancestor::*[@data-full-i-d]', this).dataset.fullID; fullID = $.x('ancestor::*[@data-full-i-d][1]', this).dataset.fullID;
return Menu.menu.toggle(e, this, g.posts[fullID]); return Menu.menu.toggle(e, this, g.posts[fullID]);
} }
}; };

1068
css/style.css Normal file

File diff suppressed because it is too large Load Diff

View File

@ -27,13 +27,22 @@
"files": ["c", "po"] "files": ["c", "po"]
}, { }, {
"uid": 3, "uid": 3,
"name": "4plebs", "name": "4plebs Archive",
"domain": "archive.4plebs.org", "domain": "archive.4plebs.org",
"http": true, "http": true,
"https": true, "https": true,
"software": "foolfuuka", "software": "foolfuuka",
"boards": ["adv", "hr", "o", "pol", "s4s", "tg", "tv", "x"], "boards": ["adv", "hr", "o", "pol", "s4s", "tg", "trv", "tv", "x"],
"files": ["adv", "hr", "o", "pol", "s4s", "tg", "tv", "x"] "files": ["adv", "hr", "o", "pol", "s4s", "tg", "trv", "tv", "x"]
}, {
"uid": 18,
"name": "4plebs Flash Archive",
"domain": "flash.4plebs.org",
"http": true,
"https": true,
"software": "foolfuuka",
"boards": ["f"],
"files": ["f"]
}, { }, {
"uid": 4, "uid": 4,
"name": "Nyafuu", "name": "Nyafuu",

View File

@ -1,6 +1,5 @@
Header = Header =
init: -> init: ->
@menu = new UI.Menu 'header' @menu = new UI.Menu 'header'
menuButton = $.el 'span', menuButton = $.el 'span',

View File

@ -35,5 +35,5 @@ Menu =
button button
toggle: (e) -> toggle: (e) ->
fullID = $.x('ancestor::*[@data-full-i-d]', @).dataset.fullID fullID = $.x('ancestor::*[@data-full-i-d][1]', @).dataset.fullID
Menu.menu.toggle e, @, g.posts[fullID] Menu.menu.toggle e, @, g.posts[fullID]

View File

@ -60,6 +60,8 @@ QR.captcha =
QR.captcha.nodes.challenge = challenge QR.captcha.nodes.challenge = challenge
new MutationObserver(QR.captcha.load.bind QR.captcha).observe challenge, new MutationObserver(QR.captcha.load.bind QR.captcha).observe challenge,
childList: true childList: true
subtree: true
attributes: true
QR.captcha.load() QR.captcha.load()
sync: (captchas) -> sync: (captchas) ->