Start styling the front page again.
This commit is contained in:
parent
21f51a9e24
commit
3c4d53cdab
5
.gitignore
vendored
5
.gitignore
vendored
@ -4,12 +4,7 @@ node_modules/
|
|||||||
tmp-crx/
|
tmp-crx/
|
||||||
tmp-userjs/
|
tmp-userjs/
|
||||||
tmp-userscript/
|
tmp-userscript/
|
||||||
<<<<<<< HEAD
|
|
||||||
builds/4chan-X.zip
|
builds/4chan-X.zip
|
||||||
Gruntfile.js
|
Gruntfile.js
|
||||||
builds/4chan-*
|
builds/4chan-*
|
||||||
=======
|
|
||||||
builds/4chan-X-Chrome.zip
|
|
||||||
builds/4chan-X-Opera.nex
|
|
||||||
Gruntfile.js
|
Gruntfile.js
|
||||||
>>>>>>> v3
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4,10 +4,8 @@
|
|||||||
// @namespace zixaphir
|
// @namespace zixaphir
|
||||||
// @description The most comprehensive 4chan userscript.
|
// @description The most comprehensive 4chan userscript.
|
||||||
// @license MIT; https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
// @license MIT; https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
// @match *://api.4chan.org/*
|
// @match *://*.4chan.org/*
|
||||||
// @match *://boards.4chan.org/*
|
// @match *://4chan.org/*
|
||||||
// @match *://images.4chan.org/*
|
|
||||||
// @match *://sys.4chan.org/*
|
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_deleteValue
|
// @grant GM_deleteValue
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"content_scripts": [{
|
"content_scripts": [{
|
||||||
"js": ["script.js"],
|
"js": ["script.js"],
|
||||||
"matches": ["*://api.4chan.org/*","*://boards.4chan.org/*","*://images.4chan.org/*","*://sys.4chan.org/*"],
|
"matches": ["*://*.4chan.org/*","*://4chan.org/*"],
|
||||||
"all_frames": true,
|
"all_frames": true,
|
||||||
"run_at": "document_start"
|
"run_at": "document_start"
|
||||||
}],
|
}],
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -10,10 +10,8 @@
|
|||||||
"buildsPath": "builds/",
|
"buildsPath": "builds/",
|
||||||
"mainBranch": "master",
|
"mainBranch": "master",
|
||||||
"matches": [
|
"matches": [
|
||||||
"*://api.4chan.org/*",
|
"*://*.4chan.org/*",
|
||||||
"*://boards.4chan.org/*",
|
"*://4chan.org/*"
|
||||||
"*://images.4chan.org/*",
|
|
||||||
"*://sys.4chan.org/*"
|
|
||||||
],
|
],
|
||||||
"files": {
|
"files": {
|
||||||
"metajs": "appchan-x.meta.js",
|
"metajs": "appchan-x.meta.js",
|
||||||
|
|||||||
@ -11,10 +11,13 @@ Main =
|
|||||||
else # string or number
|
else # string or number
|
||||||
Conf[parent] = obj
|
Conf[parent] = obj
|
||||||
return
|
return
|
||||||
|
|
||||||
flatten null, Config
|
flatten null, Config
|
||||||
|
|
||||||
|
# Unflattened Config.
|
||||||
for db in DataBoards
|
for db in DataBoards
|
||||||
Conf[db] = boards: {}
|
Conf[db] = boards: {}
|
||||||
# Unflattened Config.
|
|
||||||
$.extend Conf,
|
$.extend Conf,
|
||||||
'userThemes': []
|
'userThemes': []
|
||||||
'userMascots': []
|
'userMascots': []
|
||||||
@ -32,7 +35,6 @@ Main =
|
|||||||
|
|
||||||
pathname = location.pathname.split '/'
|
pathname = location.pathname.split '/'
|
||||||
g.BOARD = new Board pathname[1]
|
g.BOARD = new Board pathname[1]
|
||||||
return if g.BOARD.ID in ['z', 'fk']
|
|
||||||
g.VIEW =
|
g.VIEW =
|
||||||
switch pathname[2]
|
switch pathname[2]
|
||||||
when 'res'
|
when 'res'
|
||||||
@ -61,10 +63,18 @@ Main =
|
|||||||
if Conf["NSFW/SFW Themes"]
|
if Conf["NSFW/SFW Themes"]
|
||||||
Conf["theme"] = Conf["theme_#{g.TYPE}"]
|
Conf["theme"] = Conf["theme_#{g.TYPE}"]
|
||||||
|
|
||||||
|
return if g.BOARD.ID in ['z', 'fk'] then Style.init()
|
||||||
|
|
||||||
switch location.hostname
|
switch location.hostname
|
||||||
|
when '4chan.org'
|
||||||
|
g.VIEW = 'home'
|
||||||
|
Style.init()
|
||||||
|
return
|
||||||
when 'api.4chan.org'
|
when 'api.4chan.org'
|
||||||
return
|
return
|
||||||
when 'sys.4chan.org'
|
when 'sys.4chan.org'
|
||||||
|
g.VIEW = 'report'
|
||||||
|
Style.init()
|
||||||
Report.init()
|
Report.init()
|
||||||
return
|
return
|
||||||
when 'images.4chan.org'
|
when 'images.4chan.org'
|
||||||
|
|||||||
@ -2120,27 +2120,36 @@ article li {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#doc {
|
#doc {
|
||||||
margin: 0 auto;
|
<%= sizing %>: border-box;
|
||||||
width: 1000px;
|
margin: 10px auto;
|
||||||
|
width: 1006px;
|
||||||
|
padding: 2px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
.rounded-edges #doc,
|
||||||
|
.rounded-edges #doc div {
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
#boards .boxcontent {
|
#boards .boxcontent {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#filter-container,
|
#filter-container,
|
||||||
#options-container {
|
#options-container {
|
||||||
float: right;
|
top: 4px;
|
||||||
position: relative;
|
right: 8px;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
#optionssmenu {
|
#filtermenu,
|
||||||
|
#optionsmenu {
|
||||||
top: 100% !important;
|
top: 100% !important;
|
||||||
left: 0 !important;
|
left: auto !important;
|
||||||
|
right: 0 !important;
|
||||||
}
|
}
|
||||||
#boards .column {
|
#boards .column {
|
||||||
<%= sizing %>: border-box;
|
<%= sizing %>: border-box;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 16em;
|
width: 180px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
@ -2148,6 +2157,7 @@ article li {
|
|||||||
.boxcontent ul {
|
.boxcontent ul {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
.right-box .boxcontent ul {
|
.right-box .boxcontent ul {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
@ -2156,9 +2166,32 @@ article li {
|
|||||||
.boxcontent li {
|
.boxcontent li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
.bd ul {
|
.boxbar {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
#doc h3,
|
||||||
|
.boxbar h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
#doc h3 {
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
.underline-links #doc h3 {
|
||||||
|
text-decoration: underline !important;
|
||||||
|
}
|
||||||
|
#ft,
|
||||||
|
.box-outer {
|
||||||
|
margin: 2px 0 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
#ft,
|
||||||
|
.boxbar,
|
||||||
|
.boxcontent {
|
||||||
|
padding: 0 8px;
|
||||||
|
}
|
||||||
|
.yui-module {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
.yuimenuitem::before {
|
.yuimenuitem::before {
|
||||||
content: " [ ] ";
|
content: " [ ] ";
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
@ -2166,11 +2199,17 @@ article li {
|
|||||||
.yuimenuitem-checked::before {
|
.yuimenuitem-checked::before {
|
||||||
content: " [x] "
|
content: " [x] "
|
||||||
}
|
}
|
||||||
|
.yui-g {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.yui-u {
|
.yui-u {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 475px;
|
width: 499px;
|
||||||
margin: 10px;
|
float: right;
|
||||||
|
}
|
||||||
|
.yui-u.first {
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
#recent-images .boxcontent {
|
#recent-images .boxcontent {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@ -156,10 +156,12 @@ textarea.field:focus {
|
|||||||
.has-file #qr-filename-container:focus #qr-extras-container {
|
.has-file #qr-filename-container:focus #qr-extras-container {
|
||||||
background: #{theme["Focused Input Background"]};
|
background: #{theme["Focused Input Background"]};
|
||||||
}
|
}
|
||||||
|
#ft,
|
||||||
#mouseover,
|
#mouseover,
|
||||||
#post-preview,
|
#post-preview,
|
||||||
#qp .post,
|
#qp .post,
|
||||||
#xupdater,
|
#xupdater,
|
||||||
|
.box-outer,
|
||||||
.reply.post {
|
.reply.post {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
@ -178,6 +180,7 @@ textarea.field:focus {
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: #{theme["Navigation Border"]};
|
border-color: #{theme["Navigation Border"]};
|
||||||
}
|
}
|
||||||
|
#doc,
|
||||||
.board > .thread {
|
.board > .thread {
|
||||||
background: #{theme["Thread Wrapper Background"]};
|
background: #{theme["Thread Wrapper Background"]};
|
||||||
border: 1px solid #{theme["Thread Wrapper Border"]};
|
border: 1px solid #{theme["Thread Wrapper Border"]};
|
||||||
@ -393,6 +396,7 @@ a .name {
|
|||||||
.alternate-post-colors .replyContainer:not(.hidden):nth-of-type(2n+1) .post {
|
.alternate-post-colors .replyContainer:not(.hidden):nth-of-type(2n+1) .post {
|
||||||
background-image: <%= agent %>linear-gradient(#{if Style.lightTheme then "rgba(0,0,0,0.05), rgba(0,0,0,0.05)" else "rgba(255,255,255,0.02), rgba(255,255,255,0.02)"});
|
background-image: <%= agent %>linear-gradient(#{if Style.lightTheme then "rgba(0,0,0,0.05), rgba(0,0,0,0.05)" else "rgba(255,255,255,0.02), rgba(255,255,255,0.02)"});
|
||||||
}
|
}
|
||||||
|
.color-reply-headings .boxbar,
|
||||||
.color-reply-headings .postInfo {
|
.color-reply-headings .postInfo {
|
||||||
background: #{if (replyHeading = new Style.color Style.colorToHex theme["Reply Background"]) then "rgba(" + (replyHeading.shiftRGB -12, false) + ",0.8)" else "rgba(0,0,0,0.1)"};
|
background: #{if (replyHeading = new Style.color Style.colorToHex theme["Reply Background"]) then "rgba(" + (replyHeading.shiftRGB -12, false) + ",0.8)" else "rgba(0,0,0,0.1)"};
|
||||||
border-bottom: 1px solid #{theme["Reply Border"]}
|
border-bottom: 1px solid #{theme["Reply Border"]}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user