Merge branch 'v3'
Conflicts: LICENSE builds/appchan-x.user.js builds/crx/script.js
This commit is contained in:
commit
0c9a2b9006
@ -1,6 +1,12 @@
|
|||||||
|
**MayhemYDG**
|
||||||
|
- Bugfixes.
|
||||||
|
|
||||||
### v2.9.19
|
### v2.9.19
|
||||||
*2014-04-19*
|
*2014-04-19*
|
||||||
|
|
||||||
|
**Zixaphir**
|
||||||
|
- Bugfixes.
|
||||||
|
|
||||||
### v2.9.18
|
### v2.9.18
|
||||||
*2014-04-19*
|
*2014-04-19*
|
||||||
|
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* appchan x - Version 2.9.19 - 2014-04-19
|
* appchan x - Version 2.9.19 - 2014-04-20
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -105,7 +105,7 @@ a[href="javascript:;"] {
|
|||||||
:root.bottom-header body {
|
:root.bottom-header body {
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
body > .desktop,
|
body > .desktop:not(#boardNavDesktop):not(#boardNavDesktopFoot),
|
||||||
:root.fourchan-x #navtopright,
|
:root.fourchan-x #navtopright,
|
||||||
:root.fourchan-x #navbotright,
|
:root.fourchan-x #navbotright,
|
||||||
:root.fourchan-x:not(.show-original-top-board-list) #boardNavDesktop,
|
:root.fourchan-x:not(.show-original-top-board-list) #boardNavDesktop,
|
||||||
|
|||||||
@ -228,6 +228,7 @@ Build =
|
|||||||
for quote in $$ '.quotelink', container
|
for quote in $$ '.quotelink', container
|
||||||
href = quote.getAttribute 'href'
|
href = quote.getAttribute 'href'
|
||||||
continue if href[0] is '/' # Cross-board quote, or board link
|
continue if href[0] is '/' # Cross-board quote, or board link
|
||||||
|
href = "#{threadID}#{href}" if href[0] is '#'
|
||||||
quote.href = "/#{boardID}/thread/#{href}" # Fix pathnames
|
quote.href = "/#{boardID}/thread/#{href}" # Fix pathnames
|
||||||
|
|
||||||
container
|
container
|
||||||
|
|||||||
@ -823,7 +823,7 @@ nav a,
|
|||||||
/* From 4chan SS / OneeChan */
|
/* From 4chan SS / OneeChan */
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
.fourchan-banner-reflection .boardBanner::after {
|
.fourchan-banner-reflection .boardBanner::after {
|
||||||
background-image: -moz-element(#Banner);
|
background-image: -moz-element(#bannerCnt);
|
||||||
bottom: -100%;
|
bottom: -100%;
|
||||||
content: '';
|
content: '';
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -836,7 +836,7 @@ nav a,
|
|||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
.fourchan-banner-reflection #Banner {
|
.fourchan-banner-reflection #bannerCnt {
|
||||||
-webkit-box-reflect: below 0 -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0) 10%, rgba(255,255,255,.5));
|
-webkit-box-reflect: below 0 -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0) 10%, rgba(255,255,255,.5));
|
||||||
}
|
}
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|||||||
@ -10,24 +10,28 @@ Banner =
|
|||||||
{children} = banner
|
{children} = banner
|
||||||
nodes = []
|
nodes = []
|
||||||
|
|
||||||
i = 0
|
for child, i in children
|
||||||
while child = children[i++]
|
if i is 0
|
||||||
if i is 1
|
$.rm child
|
||||||
child.id = "Banner"
|
img = $.el 'img',
|
||||||
child.title = "Click to change"
|
alt: '4chan'
|
||||||
|
title: 'Click to change'
|
||||||
|
|
||||||
$.on child, 'click', Banner.cb.toggle
|
$.on img, 'click', Banner.cb.toggle
|
||||||
|
Banner.cb.toggle.call img
|
||||||
|
|
||||||
|
$.prepend banner, img
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
nodes.push child
|
|
||||||
|
|
||||||
if Conf['Custom Board Titles']
|
if Conf['Custom Board Titles']
|
||||||
Banner.custom(child).title = "Ctrl+click to edit board #{if i is 3
|
Banner.custom(child).title = "Ctrl+click to edit board #{if i is 2
|
||||||
'sub'
|
'sub'
|
||||||
else
|
else
|
||||||
''}title"
|
''}title"
|
||||||
|
|
||||||
|
nodes.push child
|
||||||
|
|
||||||
$.add title, nodes
|
$.add title, nodes
|
||||||
$.after banner, title
|
$.after banner, title
|
||||||
return
|
return
|
||||||
@ -36,13 +40,13 @@ Banner =
|
|||||||
toggle: do ->
|
toggle: do ->
|
||||||
types =
|
types =
|
||||||
jpg: 227
|
jpg: 227
|
||||||
png: 270
|
png: 262
|
||||||
gif: 253
|
gif: 253
|
||||||
|
|
||||||
->
|
->
|
||||||
type = Object.keys(types)[Math.floor 3 * Math.random()]
|
type = Object.keys(types)[Math.floor 3 * Math.random()]
|
||||||
num = Math.floor types[type] * Math.random()
|
num = Math.floor types[type] * Math.random()
|
||||||
@src = "//static.4chan.org/image/title/#{num}.#{type}"
|
@src = "//s.4cdn.org/image/title/#{num}.#{type}"
|
||||||
|
|
||||||
click: (e) ->
|
click: (e) ->
|
||||||
if e.ctrlKey
|
if e.ctrlKey
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user