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