Fappe Tyme.
This commit is contained in:
parent
1aad1524b0
commit
5ef61ba05b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
builds/crx.crx
BIN
builds/crx.crx
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -135,6 +135,10 @@ Config =
|
|||||||
false
|
false
|
||||||
'Replace jpgs.'
|
'Replace jpgs.'
|
||||||
]
|
]
|
||||||
|
'Fappe Tyme': [
|
||||||
|
false
|
||||||
|
'Hide posts without images. *hint* *hint*'
|
||||||
|
]
|
||||||
|
|
||||||
'Menu':
|
'Menu':
|
||||||
'Menu': [
|
'Menu': [
|
||||||
@ -464,6 +468,10 @@ http://iqdb.org/?url=%TURL
|
|||||||
'e'
|
'e'
|
||||||
'Expand all images.'
|
'Expand all images.'
|
||||||
]
|
]
|
||||||
|
'fappeTyme': [
|
||||||
|
'f'
|
||||||
|
'Fappe Tyme.'
|
||||||
|
]
|
||||||
# Board Navigation
|
# Board Navigation
|
||||||
'Front page': [
|
'Front page': [
|
||||||
'0'
|
'0'
|
||||||
|
|||||||
@ -484,7 +484,7 @@ a.hide-announcement {
|
|||||||
/* Quote Threading */
|
/* Quote Threading */
|
||||||
.threadContainer {
|
.threadContainer {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
border-left: 1px solid rgba(0,0,0,0.5);
|
border-left: 1px solid rgba(128,128,128,.3);
|
||||||
}
|
}
|
||||||
.threadOP {
|
.threadOP {
|
||||||
clear: both;
|
clear: both;
|
||||||
@ -522,6 +522,10 @@ a.hide-announcement {
|
|||||||
max-width: 75%;
|
max-width: 75%;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
.fappeTyme .thread > .noFile,
|
||||||
|
.fappeTyme .threadContainer > .noFile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Index/Reply Navigation */
|
/* Index/Reply Navigation */
|
||||||
#navlinks {
|
#navlinks {
|
||||||
|
|||||||
27
src/features/imaging/fappetyme.coffee
Normal file
27
src/features/imaging/fappetyme.coffee
Normal 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'
|
||||||
@ -62,6 +62,8 @@ Keybinds =
|
|||||||
Keybinds.img threadRoot
|
Keybinds.img threadRoot
|
||||||
when Conf['Expand images']
|
when Conf['Expand images']
|
||||||
Keybinds.img threadRoot, true
|
Keybinds.img threadRoot, true
|
||||||
|
when Conf['fappeTyme']
|
||||||
|
do FappeTyme.input.click
|
||||||
# Board Navigation
|
# Board Navigation
|
||||||
when Conf['Front page']
|
when Conf['Front page']
|
||||||
window.location = "/#{g.BOARD}/0#delform"
|
window.location = "/#{g.BOARD}/0#delform"
|
||||||
|
|||||||
@ -96,6 +96,7 @@ Main =
|
|||||||
'Time Formatting': Time
|
'Time Formatting': Time
|
||||||
'Relative Post Dates': RelativeDates
|
'Relative Post Dates': RelativeDates
|
||||||
'File Info Formatting': FileInfo
|
'File Info Formatting': FileInfo
|
||||||
|
'Fappe Tyme': FappeTyme
|
||||||
'Sauce': Sauce
|
'Sauce': Sauce
|
||||||
'Image Expansion': ImageExpand
|
'Image Expansion': ImageExpand
|
||||||
'Image Expansion (Menu)': ImageExpand.menu
|
'Image Expansion (Menu)': ImageExpand.menu
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user