Messing around with some syntax

This commit is contained in:
Zixaphir 2013-12-26 15:50:02 -07:00
parent abf3da2482
commit 9262e8a7af
5 changed files with 36 additions and 14 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.2.44 - 2013-12-25
* 4chan X - Version 1.2.44 - 2013-12-26
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -22,7 +22,7 @@
// ==/UserScript==
/*
* 4chan X - Version 1.2.44 - 2013-12-25
* 4chan X - Version 1.2.44 - 2013-12-26
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* 4chan X - Version 1.2.44 - 2013-12-25
* 4chan X - Version 1.2.44 - 2013-12-26
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -51,7 +51,15 @@ PostHiding =
return false
PostHiding.menu.post = post
true
subEntries: [{el: apply}, {el: thisPost}, {el: replies}, {el: makeStub}]
subEntries: [
el: apply
,
el: thisPost
,
el: replies
,
el: makeStub
]
# Show
div = $.el 'div',
@ -85,7 +93,13 @@ PostHiding =
thisPost.firstChild.checked = post.isHidden
replies.firstChild.checked = if data?.hideRecursively? then data.hideRecursively else Conf['Recursive Hiding']
true
subEntries: [{el: apply}, {el: thisPost}, {el: replies}]
subEntries: [
el: apply
,
el: thisPost
,
el: replies
]
$.event 'AddMenuEntry',
type: 'post'

View File

@ -68,15 +68,23 @@ Header =
textContent: 'Header'
order: 107
subEntries: [
{el: barFixedToggler}
{el: headerToggler}
{el: scrollHeaderToggler}
{el: barPositionToggler}
{el: linkJustifyToggler}
{el: footerToggler}
{el: shortcutToggler}
{el: customNavToggler}
{el: editCustomNav}
el: barFixedToggler
,
el: headerToggler
,
el: scrollHeaderToggler
,
el: barPositionToggler
,
el: linkJustifyToggler
,
el: footerToggler
,
el: shortcutToggler
,
el: customNavToggler
,
el: editCustomNav
]
$.on window, 'load hashchange', Header.hashScroll