Fix FappeTyme always enabled.
This commit is contained in:
parent
27e17cf718
commit
4d365b825d
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
@ -89,8 +89,9 @@ Header =
|
||||
|
||||
$.rm $ '#navtopright', fullBoardList
|
||||
|
||||
$.prepend d.body, $.id('navtopright')
|
||||
$.add d.body, Header.menuButton
|
||||
settings = $.id('navtopright')
|
||||
$.prepend d.body, settings
|
||||
$.add settings, Header.menuButton
|
||||
|
||||
$.add boardList, fullBoardList
|
||||
$.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]
|
||||
|
||||
@ -11,7 +11,8 @@ Settings =
|
||||
return unless Main.isThisPageLegit()
|
||||
# Wait for #boardNavMobile instead of #boardNavDesktop,
|
||||
# it might be incomplete otherwise.
|
||||
$.add d.body, link
|
||||
$.asap (-> $.id 'boardNavMobile'), ->
|
||||
$.add $.id('navtopright'), link
|
||||
|
||||
$.get 'previousversion', null, (item) ->
|
||||
if previous = item['previousversion']
|
||||
|
||||
@ -58,6 +58,7 @@ body > hr {
|
||||
.cataloglink,
|
||||
.navLinks,
|
||||
a[style="cursor: pointer; float: right;"] {
|
||||
z-index: 7;
|
||||
position: fixed;
|
||||
top: 100%;
|
||||
left: 100%;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
FappeTyme =
|
||||
init: ->
|
||||
return if not Conf['Fappe Tyme'] and (g.VIEW is 'catalog' or g.BOARD is 'f')
|
||||
return if !Conf['Fappe Tyme'] or (g.VIEW is 'catalog' or g.BOARD is 'f')
|
||||
el = $.el 'a',
|
||||
href: 'javascript:;'
|
||||
id: 'fappeTyme'
|
||||
id: 'fappeTyme'
|
||||
title: 'Fappe Tyme'
|
||||
|
||||
$.on el, 'click', FappeTyme.toggle
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user