Fappe Tyme.

This commit is contained in:
Zixaphir 2013-04-22 16:17:19 -07:00
parent 1aad1524b0
commit 5ef61ba05b
9 changed files with 175 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -135,6 +135,10 @@ Config =
false
'Replace jpgs.'
]
'Fappe Tyme': [
false
'Hide posts without images. *hint* *hint*'
]
'Menu':
'Menu': [
@ -464,6 +468,10 @@ http://iqdb.org/?url=%TURL
'e'
'Expand all images.'
]
'fappeTyme': [
'f'
'Fappe Tyme.'
]
# Board Navigation
'Front page': [
'0'

View File

@ -484,7 +484,7 @@ a.hide-announcement {
/* Quote Threading */
.threadContainer {
margin-left: 20px;
border-left: 1px solid rgba(0,0,0,0.5);
border-left: 1px solid rgba(128,128,128,.3);
}
.threadOP {
clear: both;
@ -522,6 +522,10 @@ a.hide-announcement {
max-width: 75%;
padding-bottom: 16px;
}
.fappeTyme .thread > .noFile,
.fappeTyme .threadContainer > .noFile {
display: none;
}
/* Index/Reply Navigation */
#navlinks {

View File

@ -0,0 +1,27 @@
FappeTyme =
init: ->
return if !Conf['Fappe Tyme'] or g.VIEW is 'catalog' or g.BOARD is 'f'
el = $.el 'label',
innerHTML: "<input type=checkbox name=fappe-tyme> Fappe Tyme"
title: 'Fappe Tyme'
FappeTyme.input = input = el.firstElementChild
$.on input, 'change', FappeTyme.toggle
$.event 'AddMenuEntry',
type: 'header'
el: el
order: 97
Post::callbacks.push
name: 'Fappe Tyme'
cb: @node
node: ->
return if @file
$.addClass @nodes.root, "noFile"
toggle: ->
$.event 'CloseMenu'
(if @checked then $.addClass else $.rmClass) doc, 'fappeTyme'

View File

@ -62,6 +62,8 @@ Keybinds =
Keybinds.img threadRoot
when Conf['Expand images']
Keybinds.img threadRoot, true
when Conf['fappeTyme']
do FappeTyme.input.click
# Board Navigation
when Conf['Front page']
window.location = "/#{g.BOARD}/0#delform"

View File

@ -96,6 +96,7 @@ Main =
'Time Formatting': Time
'Relative Post Dates': RelativeDates
'File Info Formatting': FileInfo
'Fappe Tyme': FappeTyme
'Sauce': Sauce
'Image Expansion': ImageExpand
'Image Expansion (Menu)': ImageExpand.menu