├── .gitattributes ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Gruntfile.coffee ├── LICENSE ├── README.md ├── builds ├── StyleChan-Chrome.zip ├── StyleChan.crx ├── StyleChan.meta.js ├── StyleChan.user.js ├── crx │ ├── icon128.png │ ├── icon16.png │ ├── icon48.png │ ├── manifest.json │ └── script.js └── updates.xml ├── package.json └── src ├── css ├── Catalog.css ├── Cleanup.css ├── Colors.css ├── Fonts.css ├── General.css ├── Highlight.css ├── Icons.css ├── Options.css ├── Original.css ├── Quickreply.css └── Sidebar.css ├── img ├── icon128.png ├── icon16.png └── icon48.png ├── meta ├── botproc.js ├── manifest.json ├── metadata.js └── updates.xml ├── script.js └── style.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | node_modules/ 21 | *~ 22 | *.db 23 | tmp/ 24 | TODO.md 25 | *.pem 26 | Gruntfile.js 27 | 28 | # ========================= 29 | # Operating System Files 30 | # ========================= 31 | 32 | # OSX 33 | # ========================= 34 | 35 | .DS_Store 36 | .AppleDouble 37 | .LSOverride 38 | 39 | # Thumbnails 40 | ._* 41 | 42 | # Files that might appear in the root of a volume 43 | .DocumentRevisions-V100 44 | .fseventsd 45 | .Spotlight-V100 46 | .TemporaryItems 47 | .Trashes 48 | .VolumeIcon.icns 49 | 50 | # Directories potentially created on remote AFP share 51 | .AppleDB 52 | .AppleDesktop 53 | Network Trash Folder 54 | Temporary Items 55 | .apdisk 56 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ### v1.0.14 2 | *2016-12-01* 3 | 4 | - Add title attributes to checkboxes 5 | - Give native catalog thread backgrounds equal height regardless of content size 6 | - Change margins on native catalog to show 6 threads per row 7 | 8 | **ccd0:** 9 | 10 | - Rice reverse sort checkbox. (4chanX #97) 11 | 12 | ### v1.0.13 13 | *2016-10-31* 14 | 15 | - Fix body margins 16 | 17 | ### v1.0.12 18 | *2016-10-23* 19 | 20 | - Fix board banner showing outside sidebar (#96) 21 | 22 | ### v1.0.11 23 | *2016-10-22* 24 | 25 | - Fix Left Minimal Sidebar being broken 26 | - Small native catalog fixes 27 | - Show 4chan Pass link when enabled in 4chan X 28 | - Don't hide Banner when Minimal Sidebar is enabled 29 | - Add additional CSS rule to Stilig theme for OP background 30 | - Change Blue Tone theme background 31 | 32 | ### v1.0.10 33 | *2016-10-03* 34 | 35 | - Add CSS for since4pass 36 | - Fix Update and Reply to Thread not being underlined when Underline All Links was enabled 37 | 38 | 39 | ### v1.0.9 40 | *2016-10-02* 41 | 42 | - Fix bug introduced in last version with (You) posts not being highlighted 43 | 44 | ### v1.0.8 45 | *2016-10-02* 46 | 47 | YOU MIGHT NEED TO RESET ONEECHAN OPTIONS FOR THINGS TO WORK PROPERLY 48 | 49 | - CSS for 4chan Pass signature 50 | - Add options `Highlight (OP) quotes` and `Highlight (You) quotes` 51 | - Rename `Highlight` options 52 | 53 | ### v1.0.7 54 | *2016-10-01* 55 | 56 | - Updates for new 4chan X catalog 57 | - Add option `Show Board Banners` 58 | - Changes to native catalog for backgrounds and margins 59 | - Some page 404 touch-ups 60 | 61 | ### v1.0.6 62 | *2016-09-22* 63 | 64 | - Small bugfixes 65 | 66 | ### v1.0.5 67 | *2016-09-21* 68 | 69 | - Fix for 4chan X catalog (#85) 70 | 71 | ### v1.0.4 72 | *2016-09-20* 73 | 74 | - Update remaining classes (#85) 75 | - Style Tegaki links and native catalog post previews 76 | - Small CSS fixes 77 | 78 | ### v1.0.3 79 | *2016-09-17* 80 | 81 | - Style embed window on /f/ 82 | - Update class thread-view -> is_thread (#85) 83 | - Small CSS fixes 84 | 85 | ### v1.0.2 86 | *2016-07-08* 87 | 88 | - Update user-agent classes for 4chan X v1.12.0.0+ 89 | 90 | ## v1.0.1 91 | *2016-05-19* 92 | 93 | - Fix banner border showing up while loading 94 | - Remove unused stuff from OneeChan 95 | - Remove 4chan Dark Upgrade theme 96 | 97 | ### v1.0 98 | *2016-05-19* 99 | 100 | Stylechan release. 101 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | ## Reporting bugs and suggestions 3 | 4 | 1. Make sure both your **browser** and **StyleChan** are up to date. 5 | 2. Disable your other extensions & scripts to identify conflicts. 6 | 3. If your issue persists, open a [new issue](https://github.com/nebukazar/StyleChan/issues) with the following information: 7 | 1. Precise steps to reproduce the problem, with the expected and actual results. 8 | 2. Console errors, if any. 9 | 3. Browser version. 10 | 11 | Open your console with: 12 | - `Ctrl + Shift + J` on Chrome. 13 | - `Ctrl + Shift + K` on Firefox. 14 | 15 | ## Development & Contribution 16 | 17 | ### Get started 18 | 19 | - Install [node.js](http://nodejs.org/). 20 | - Install [Grunt's CLI](http://gruntjs.com/) with `npm install -g grunt-cli`. 21 | - Clone StyleChan. 22 | - `cd` into it. 23 | - Install/Update StyleChan dependencies with `npm install`. 24 | 25 | ### Build 26 | 27 | - Build with `grunt`. 28 | 29 | ### Release 30 | 31 | - Update the version with `grunt patch`, `grunt minor` or `grunt major`. 32 | - Release with `grunt release`. 33 | 34 | Note: this is only used to release new StyleChan versions, and is **not** needed or wanted in pull requests. 35 | 36 | ### Contribute 37 | 38 | - Edit the sources. 39 | - Open a pull request to merge branch. 40 | -------------------------------------------------------------------------------- /Gruntfile.coffee: -------------------------------------------------------------------------------- 1 | module.exports = (grunt) -> 2 | pkg = grunt.file.readJSON 'package.json' 3 | concatOptions = 4 | process: 5 | data: pkg 6 | 7 | shellOptions = 8 | stdout: true 9 | stderr: true 10 | failOnError: true 11 | 12 | # Project configuration. 13 | grunt.initConfig 14 | pkg: pkg 15 | concat: 16 | style: 17 | options: concatOptions 18 | files: 19 | 'tmp/style.css': 'src/style.js' 20 | userscript: 21 | options: concatOptions 22 | files: 23 | 'builds/<%= pkg.name %>.meta.js': 'src/meta/metadata.js' 24 | 'builds/<%= pkg.name %>.user.js': [ 25 | 'src/meta/botproc.js' 26 | 'src/meta/metadata.js' 27 | 'src/script.js' 28 | ] 29 | crx: 30 | options: concatOptions 31 | files: 32 | 'builds/updates.xml': 'src/meta/updates.xml' 33 | 'builds/crx/manifest.json': 'src/meta/manifest.json' 34 | 'builds/crx/script.js': [ 35 | 'src/meta/botproc.js' 36 | 'src/script.js' 37 | ] 38 | 39 | cssmin: 40 | minify: 41 | src: 'tmp/style.css' 42 | dest: 'tmp/style.min.css' 43 | 44 | shell: 45 | commit: 46 | options: shellOptions 47 | command: [ 48 | 'git checkout <%= pkg.meta.mainBranch %>', 49 | 'git commit -am "Release <%= pkg.meta.name %> v<%= pkg.version %>."', 50 | 'git tag -a <%= pkg.version %> -m "<%= pkg.meta.name %> v<%= pkg.version %>."', 51 | 'git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.version %>."' 52 | ].join(' && ') 53 | stdout: true 54 | 55 | push: 56 | options: shellOptions 57 | command: 'git push origin --tags -f && git push origin --all' 58 | 59 | compress: 60 | crx: 61 | options: 62 | archive: 'builds/StyleChan-Chrome.zip' 63 | level: 9 64 | pretty: true 65 | expand: true 66 | cwd: 'builds/crx/' 67 | src: '**' 68 | 69 | clean: 70 | tmp: 'tmp/' 71 | 72 | grunt.loadNpmTasks 'grunt-bump' 73 | # grunt.loadNpmTasks 'grunt-concurrent' 74 | grunt.loadNpmTasks 'grunt-contrib-clean' 75 | # grunt.loadNpmTasks 'grunt-contrib-coffee' 76 | grunt.loadNpmTasks 'grunt-contrib-compress' 77 | grunt.loadNpmTasks 'grunt-contrib-concat' 78 | grunt.loadNpmTasks 'grunt-contrib-copy' 79 | grunt.loadNpmTasks 'grunt-shell' 80 | grunt.loadNpmTasks 'grunt-contrib-cssmin' 81 | 82 | grunt.registerTask 'default', [ 83 | 'build' 84 | ] 85 | 86 | grunt.registerTask 'build', [ 87 | 'concat:style' 88 | 'cssmin:minify' 89 | 'concat:crx' 90 | 'compress:crx' 91 | 'concat:userscript' 92 | 'clean:tmp' 93 | ] 94 | 95 | grunt.registerTask 'release', [ 96 | 'default' 97 | 'compress:crx' 98 | 'shell:commit' 99 | 'shell:push' 100 | ] 101 | 102 | grunt.registerTask 'patch', [ 103 | 'bump-only' 104 | 'reloadPkg' 105 | 'updcl:3' 106 | ] 107 | 108 | grunt.registerTask 'minor', [ 109 | 'bump-only:minor' 110 | 'reloadPkg' 111 | 'updcl:2' 112 | ] 113 | 114 | grunt.registerTask 'major', [ 115 | 'bump-only:major' 116 | 'reloadPkg' 117 | 'updcl:1' 118 | ] 119 | 120 | grunt.registerTask 'reloadPkg', 'Reload the package', -> 121 | # Update the `pkg` object with the new version. 122 | pkg = grunt.file.readJSON('package.json') 123 | grunt.config.data.pkg = concatOptions.process.data = pkg 124 | grunt.log.ok('pkg reloaded.') 125 | 126 | grunt.registerTask 'updcl', 'Update the changelog', (i) -> 127 | # i is the number of #s for markdown. 128 | version = [] 129 | version.length = +i + 1 130 | version = version.join('#') + ' v' + pkg.version + '\n*' + grunt.template.today('yyyy-mm-dd') + '*\n' 131 | grunt.file.write 'CHANGELOG.md', version + '\n' + grunt.file.read('CHANGELOG.md') 132 | grunt.log.ok 'Changelog updated for v' + pkg.version + '.' 133 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | OneeChan Copyright Copyright https://github.com/seaweedchan/OneeChan 2 | 4chan Style Script Copyright ahodesuka http://github.com/ahodesuka/4chan-Style-Script 3 | Appchan X Copyright Zixaphir http://github.com/zixaphir/appchan-x 4 | jscolor, JavaScript Color Picker v1.3.11 http://jscolor.com Copyright © 2008-2011 Jan Odvarko, http://odvarko.cz under GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html 5 | 4chan SS Icons from http://raphaeljs.com/icons/ Copyright © 2008 Dmitry Baranovskiy 6 | 7 | Permission is hereby granted, free of charge, to any person 8 | obtaining a copy of this software and associated documentation 9 | files (the "Software"), to deal in the Software without 10 | restriction, including without limitation the rights to use, 11 | copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the 13 | Software is furnished to do so, subject to the following 14 | conditions: 15 | 16 | The above copyright notice and this permission notice shall be 17 | included in all copies or substantial portions of the Software. 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 20 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 22 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 23 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 25 | OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | StyleChan: Copyright © 2011-2013 Jordan Bates 28 | 29 | Contributors: 30 | * ahodesuka 31 | * ihavenoface 32 | * Spittie 33 | * ccd0 34 | * zixaphir 35 | * Hupotronic 36 | * libricoleur 37 | * tracerneo 38 | 39 | All the people who've taken the time to write bug reports. 40 | * Thank you. 41 | 42 | GNU GENERAL PUBLIC LICENSE 43 | Version 3, 29 June 2007 44 | 45 | Copyright (C) 2007 Free Software Foundation, Inc. 46 | Everyone is permitted to copy and distribute verbatim copies 47 | of this license document, but changing it is not allowed. 48 | 49 | Preamble 50 | 51 | The GNU General Public License is a free, copyleft license for 52 | software and other kinds of works. 53 | 54 | The licenses for most software and other practical works are designed 55 | to take away your freedom to share and change the works. By contrast, 56 | the GNU General Public License is intended to guarantee your freedom to 57 | share and change all versions of a program--to make sure it remains free 58 | software for all its users. We, the Free Software Foundation, use the 59 | GNU General Public License for most of our software; it applies also to 60 | any other work released this way by its authors. You can apply it to 61 | your programs, too. 62 | 63 | When we speak of free software, we are referring to freedom, not 64 | price. Our General Public Licenses are designed to make sure that you 65 | have the freedom to distribute copies of free software (and charge for 66 | them if you wish), that you receive source code or can get it if you 67 | want it, that you can change the software or use pieces of it in new 68 | free programs, and that you know you can do these things. 69 | 70 | To protect your rights, we need to prevent others from denying you 71 | these rights or asking you to surrender the rights. Therefore, you have 72 | certain responsibilities if you distribute copies of the software, or if 73 | you modify it: responsibilities to respect the freedom of others. 74 | 75 | For example, if you distribute copies of such a program, whether 76 | gratis or for a fee, you must pass on to the recipients the same 77 | freedoms that you received. You must make sure that they, too, receive 78 | or can get the source code. And you must show them these terms so they 79 | know their rights. 80 | 81 | Developers that use the GNU GPL protect your rights with two steps: 82 | (1) assert copyright on the software, and (2) offer you this License 83 | giving you legal permission to copy, distribute and/or modify it. 84 | 85 | For the developers' and authors' protection, the GPL clearly explains 86 | that there is no warranty for this free software. For both users' and 87 | authors' sake, the GPL requires that modified versions be marked as 88 | changed, so that their problems will not be attributed erroneously to 89 | authors of previous versions. 90 | 91 | Some devices are designed to deny users access to install or run 92 | modified versions of the software inside them, although the manufacturer 93 | can do so. This is fundamentally incompatible with the aim of 94 | protecting users' freedom to change the software. The systematic 95 | pattern of such abuse occurs in the area of products for individuals to 96 | use, which is precisely where it is most unacceptable. Therefore, we 97 | have designed this version of the GPL to prohibit the practice for those 98 | products. If such problems arise substantially in other domains, we 99 | stand ready to extend this provision to those domains in future versions 100 | of the GPL, as needed to protect the freedom of users. 101 | 102 | Finally, every program is threatened constantly by software patents. 103 | States should not allow patents to restrict development and use of 104 | software on general-purpose computers, but in those that do, we wish to 105 | avoid the special danger that patents applied to a free program could 106 | make it effectively proprietary. To prevent this, the GPL assures that 107 | patents cannot be used to render the program non-free. 108 | 109 | The precise terms and conditions for copying, distribution and 110 | modification follow. 111 | 112 | TERMS AND CONDITIONS 113 | 114 | 0. Definitions. 115 | 116 | "This License" refers to version 3 of the GNU General Public License. 117 | 118 | "Copyright" also means copyright-like laws that apply to other kinds of 119 | works, such as semiconductor masks. 120 | 121 | "The Program" refers to any copyrightable work licensed under this 122 | License. Each licensee is addressed as "you". "Licensees" and 123 | "recipients" may be individuals or organizations. 124 | 125 | To "modify" a work means to copy from or adapt all or part of the work 126 | in a fashion requiring copyright permission, other than the making of an 127 | exact copy. The resulting work is called a "modified version" of the 128 | earlier work or a work "based on" the earlier work. 129 | 130 | A "covered work" means either the unmodified Program or a work based 131 | on the Program. 132 | 133 | To "propagate" a work means to do anything with it that, without 134 | permission, would make you directly or secondarily liable for 135 | infringement under applicable copyright law, except executing it on a 136 | computer or modifying a private copy. Propagation includes copying, 137 | distribution (with or without modification), making available to the 138 | public, and in some countries other activities as well. 139 | 140 | To "convey" a work means any kind of propagation that enables other 141 | parties to make or receive copies. Mere interaction with a user through 142 | a computer network, with no transfer of a copy, is not conveying. 143 | 144 | An interactive user interface displays "Appropriate Legal Notices" 145 | to the extent that it includes a convenient and prominently visible 146 | feature that (1) displays an appropriate copyright notice, and (2) 147 | tells the user that there is no warranty for the work (except to the 148 | extent that warranties are provided), that licensees may convey the 149 | work under this License, and how to view a copy of this License. If 150 | the interface presents a list of user commands or options, such as a 151 | menu, a prominent item in the list meets this criterion. 152 | 153 | 1. Source Code. 154 | 155 | The "source code" for a work means the preferred form of the work 156 | for making modifications to it. "Object code" means any non-source 157 | form of a work. 158 | 159 | A "Standard Interface" means an interface that either is an official 160 | standard defined by a recognized standards body, or, in the case of 161 | interfaces specified for a particular programming language, one that 162 | is widely used among developers working in that language. 163 | 164 | The "System Libraries" of an executable work include anything, other 165 | than the work as a whole, that (a) is included in the normal form of 166 | packaging a Major Component, but which is not part of that Major 167 | Component, and (b) serves only to enable use of the work with that 168 | Major Component, or to implement a Standard Interface for which an 169 | implementation is available to the public in source code form. A 170 | "Major Component", in this context, means a major essential component 171 | (kernel, window system, and so on) of the specific operating system 172 | (if any) on which the executable work runs, or a compiler used to 173 | produce the work, or an object code interpreter used to run it. 174 | 175 | The "Corresponding Source" for a work in object code form means all 176 | the source code needed to generate, install, and (for an executable 177 | work) run the object code and to modify the work, including scripts to 178 | control those activities. However, it does not include the work's 179 | System Libraries, or general-purpose tools or generally available free 180 | programs which are used unmodified in performing those activities but 181 | which are not part of the work. For example, Corresponding Source 182 | includes interface definition files associated with source files for 183 | the work, and the source code for shared libraries and dynamically 184 | linked subprograms that the work is specifically designed to require, 185 | such as by intimate data communication or control flow between those 186 | subprograms and other parts of the work. 187 | 188 | The Corresponding Source need not include anything that users 189 | can regenerate automatically from other parts of the Corresponding 190 | Source. 191 | 192 | The Corresponding Source for a work in source code form is that 193 | same work. 194 | 195 | 2. Basic Permissions. 196 | 197 | All rights granted under this License are granted for the term of 198 | copyright on the Program, and are irrevocable provided the stated 199 | conditions are met. This License explicitly affirms your unlimited 200 | permission to run the unmodified Program. The output from running a 201 | covered work is covered by this License only if the output, given its 202 | content, constitutes a covered work. This License acknowledges your 203 | rights of fair use or other equivalent, as provided by copyright law. 204 | 205 | You may make, run and propagate covered works that you do not 206 | convey, without conditions so long as your license otherwise remains 207 | in force. You may convey covered works to others for the sole purpose 208 | of having them make modifications exclusively for you, or provide you 209 | with facilities for running those works, provided that you comply with 210 | the terms of this License in conveying all material for which you do 211 | not control copyright. Those thus making or running the covered works 212 | for you must do so exclusively on your behalf, under your direction 213 | and control, on terms that prohibit them from making any copies of 214 | your copyrighted material outside their relationship with you. 215 | 216 | Conveying under any other circumstances is permitted solely under 217 | the conditions stated below. Sublicensing is not allowed; section 10 218 | makes it unnecessary. 219 | 220 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 221 | 222 | No covered work shall be deemed part of an effective technological 223 | measure under any applicable law fulfilling obligations under article 224 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 225 | similar laws prohibiting or restricting circumvention of such 226 | measures. 227 | 228 | When you convey a covered work, you waive any legal power to forbid 229 | circumvention of technological measures to the extent such circumvention 230 | is effected by exercising rights under this License with respect to 231 | the covered work, and you disclaim any intention to limit operation or 232 | modification of the work as a means of enforcing, against the work's 233 | users, your or third parties' legal rights to forbid circumvention of 234 | technological measures. 235 | 236 | 4. Conveying Verbatim Copies. 237 | 238 | You may convey verbatim copies of the Program's source code as you 239 | receive it, in any medium, provided that you conspicuously and 240 | appropriately publish on each copy an appropriate copyright notice; 241 | keep intact all notices stating that this License and any 242 | non-permissive terms added in accord with section 7 apply to the code; 243 | keep intact all notices of the absence of any warranty; and give all 244 | recipients a copy of this License along with the Program. 245 | 246 | You may charge any price or no price for each copy that you convey, 247 | and you may offer support or warranty protection for a fee. 248 | 249 | 5. Conveying Modified Source Versions. 250 | 251 | You may convey a work based on the Program, or the modifications to 252 | produce it from the Program, in the form of source code under the 253 | terms of section 4, provided that you also meet all of these conditions: 254 | 255 | a) The work must carry prominent notices stating that you modified 256 | it, and giving a relevant date. 257 | 258 | b) The work must carry prominent notices stating that it is 259 | released under this License and any conditions added under section 260 | 7. This requirement modifies the requirement in section 4 to 261 | "keep intact all notices". 262 | 263 | c) You must license the entire work, as a whole, under this 264 | License to anyone who comes into possession of a copy. This 265 | License will therefore apply, along with any applicable section 7 266 | additional terms, to the whole of the work, and all its parts, 267 | regardless of how they are packaged. This License gives no 268 | permission to license the work in any other way, but it does not 269 | invalidate such permission if you have separately received it. 270 | 271 | d) If the work has interactive user interfaces, each must display 272 | Appropriate Legal Notices; however, if the Program has interactive 273 | interfaces that do not display Appropriate Legal Notices, your 274 | work need not make them do so. 275 | 276 | A compilation of a covered work with other separate and independent 277 | works, which are not by their nature extensions of the covered work, 278 | and which are not combined with it such as to form a larger program, 279 | in or on a volume of a storage or distribution medium, is called an 280 | "aggregate" if the compilation and its resulting copyright are not 281 | used to limit the access or legal rights of the compilation's users 282 | beyond what the individual works permit. Inclusion of a covered work 283 | in an aggregate does not cause this License to apply to the other 284 | parts of the aggregate. 285 | 286 | 6. Conveying Non-Source Forms. 287 | 288 | You may convey a covered work in object code form under the terms 289 | of sections 4 and 5, provided that you also convey the 290 | machine-readable Corresponding Source under the terms of this License, 291 | in one of these ways: 292 | 293 | a) Convey the object code in, or embodied in, a physical product 294 | (including a physical distribution medium), accompanied by the 295 | Corresponding Source fixed on a durable physical medium 296 | customarily used for software interchange. 297 | 298 | b) Convey the object code in, or embodied in, a physical product 299 | (including a physical distribution medium), accompanied by a 300 | written offer, valid for at least three years and valid for as 301 | long as you offer spare parts or customer support for that product 302 | model, to give anyone who possesses the object code either (1) a 303 | copy of the Corresponding Source for all the software in the 304 | product that is covered by this License, on a durable physical 305 | medium customarily used for software interchange, for a price no 306 | more than your reasonable cost of physically performing this 307 | conveying of source, or (2) access to copy the 308 | Corresponding Source from a network server at no charge. 309 | 310 | c) Convey individual copies of the object code with a copy of the 311 | written offer to provide the Corresponding Source. This 312 | alternative is allowed only occasionally and noncommercially, and 313 | only if you received the object code with such an offer, in accord 314 | with subsection 6b. 315 | 316 | d) Convey the object code by offering access from a designated 317 | place (gratis or for a charge), and offer equivalent access to the 318 | Corresponding Source in the same way through the same place at no 319 | further charge. You need not require recipients to copy the 320 | Corresponding Source along with the object code. If the place to 321 | copy the object code is a network server, the Corresponding Source 322 | may be on a different server (operated by you or a third party) 323 | that supports equivalent copying facilities, provided you maintain 324 | clear directions next to the object code saying where to find the 325 | Corresponding Source. Regardless of what server hosts the 326 | Corresponding Source, you remain obligated to ensure that it is 327 | available for as long as needed to satisfy these requirements. 328 | 329 | e) Convey the object code using peer-to-peer transmission, provided 330 | you inform other peers where the object code and Corresponding 331 | Source of the work are being offered to the general public at no 332 | charge under subsection 6d. 333 | 334 | A separable portion of the object code, whose source code is excluded 335 | from the Corresponding Source as a System Library, need not be 336 | included in conveying the object code work. 337 | 338 | A "User Product" is either (1) a "consumer product", which means any 339 | tangible personal property which is normally used for personal, family, 340 | or household purposes, or (2) anything designed or sold for incorporation 341 | into a dwelling. In determining whether a product is a consumer product, 342 | doubtful cases shall be resolved in favor of coverage. For a particular 343 | product received by a particular user, "normally used" refers to a 344 | typical or common use of that class of product, regardless of the status 345 | of the particular user or of the way in which the particular user 346 | actually uses, or expects or is expected to use, the product. A product 347 | is a consumer product regardless of whether the product has substantial 348 | commercial, industrial or non-consumer uses, unless such uses represent 349 | the only significant mode of use of the product. 350 | 351 | "Installation Information" for a User Product means any methods, 352 | procedures, authorization keys, or other information required to install 353 | and execute modified versions of a covered work in that User Product from 354 | a modified version of its Corresponding Source. The information must 355 | suffice to ensure that the continued functioning of the modified object 356 | code is in no case prevented or interfered with solely because 357 | modification has been made. 358 | 359 | If you convey an object code work under this section in, or with, or 360 | specifically for use in, a User Product, and the conveying occurs as 361 | part of a transaction in which the right of possession and use of the 362 | User Product is transferred to the recipient in perpetuity or for a 363 | fixed term (regardless of how the transaction is characterized), the 364 | Corresponding Source conveyed under this section must be accompanied 365 | by the Installation Information. But this requirement does not apply 366 | if neither you nor any third party retains the ability to install 367 | modified object code on the User Product (for example, the work has 368 | been installed in ROM). 369 | 370 | The requirement to provide Installation Information does not include a 371 | requirement to continue to provide support service, warranty, or updates 372 | for a work that has been modified or installed by the recipient, or for 373 | the User Product in which it has been modified or installed. Access to a 374 | network may be denied when the modification itself materially and 375 | adversely affects the operation of the network or violates the rules and 376 | protocols for communication across the network. 377 | 378 | Corresponding Source conveyed, and Installation Information provided, 379 | in accord with this section must be in a format that is publicly 380 | documented (and with an implementation available to the public in 381 | source code form), and must require no special password or key for 382 | unpacking, reading or copying. 383 | 384 | 7. Additional Terms. 385 | 386 | "Additional permissions" are terms that supplement the terms of this 387 | License by making exceptions from one or more of its conditions. 388 | Additional permissions that are applicable to the entire Program shall 389 | be treated as though they were included in this License, to the extent 390 | that they are valid under applicable law. If additional permissions 391 | apply only to part of the Program, that part may be used separately 392 | under those permissions, but the entire Program remains governed by 393 | this License without regard to the additional permissions. 394 | 395 | When you convey a copy of a covered work, you may at your option 396 | remove any additional permissions from that copy, or from any part of 397 | it. (Additional permissions may be written to require their own 398 | removal in certain cases when you modify the work.) You may place 399 | additional permissions on material, added by you to a covered work, 400 | for which you have or can give appropriate copyright permission. 401 | 402 | Notwithstanding any other provision of this License, for material you 403 | add to a covered work, you may (if authorized by the copyright holders of 404 | that material) supplement the terms of this License with terms: 405 | 406 | a) Disclaiming warranty or limiting liability differently from the 407 | terms of sections 15 and 16 of this License; or 408 | 409 | b) Requiring preservation of specified reasonable legal notices or 410 | author attributions in that material or in the Appropriate Legal 411 | Notices displayed by works containing it; or 412 | 413 | c) Prohibiting misrepresentation of the origin of that material, or 414 | requiring that modified versions of such material be marked in 415 | reasonable ways as different from the original version; or 416 | 417 | d) Limiting the use for publicity purposes of names of licensors or 418 | authors of the material; or 419 | 420 | e) Declining to grant rights under trademark law for use of some 421 | trade names, trademarks, or service marks; or 422 | 423 | f) Requiring indemnification of licensors and authors of that 424 | material by anyone who conveys the material (or modified versions of 425 | it) with contractual assumptions of liability to the recipient, for 426 | any liability that these contractual assumptions directly impose on 427 | those licensors and authors. 428 | 429 | All other non-permissive additional terms are considered "further 430 | restrictions" within the meaning of section 10. If the Program as you 431 | received it, or any part of it, contains a notice stating that it is 432 | governed by this License along with a term that is a further 433 | restriction, you may remove that term. If a license document contains 434 | a further restriction but permits relicensing or conveying under this 435 | License, you may add to a covered work material governed by the terms 436 | of that license document, provided that the further restriction does 437 | not survive such relicensing or conveying. 438 | 439 | If you add terms to a covered work in accord with this section, you 440 | must place, in the relevant source files, a statement of the 441 | additional terms that apply to those files, or a notice indicating 442 | where to find the applicable terms. 443 | 444 | Additional terms, permissive or non-permissive, may be stated in the 445 | form of a separately written license, or stated as exceptions; 446 | the above requirements apply either way. 447 | 448 | 8. Termination. 449 | 450 | You may not propagate or modify a covered work except as expressly 451 | provided under this License. Any attempt otherwise to propagate or 452 | modify it is void, and will automatically terminate your rights under 453 | this License (including any patent licenses granted under the third 454 | paragraph of section 11). 455 | 456 | However, if you cease all violation of this License, then your 457 | license from a particular copyright holder is reinstated (a) 458 | provisionally, unless and until the copyright holder explicitly and 459 | finally terminates your license, and (b) permanently, if the copyright 460 | holder fails to notify you of the violation by some reasonable means 461 | prior to 60 days after the cessation. 462 | 463 | Moreover, your license from a particular copyright holder is 464 | reinstated permanently if the copyright holder notifies you of the 465 | violation by some reasonable means, this is the first time you have 466 | received notice of violation of this License (for any work) from that 467 | copyright holder, and you cure the violation prior to 30 days after 468 | your receipt of the notice. 469 | 470 | Termination of your rights under this section does not terminate the 471 | licenses of parties who have received copies or rights from you under 472 | this License. If your rights have been terminated and not permanently 473 | reinstated, you do not qualify to receive new licenses for the same 474 | material under section 10. 475 | 476 | 9. Acceptance Not Required for Having Copies. 477 | 478 | You are not required to accept this License in order to receive or 479 | run a copy of the Program. Ancillary propagation of a covered work 480 | occurring solely as a consequence of using peer-to-peer transmission 481 | to receive a copy likewise does not require acceptance. However, 482 | nothing other than this License grants you permission to propagate or 483 | modify any covered work. These actions infringe copyright if you do 484 | not accept this License. Therefore, by modifying or propagating a 485 | covered work, you indicate your acceptance of this License to do so. 486 | 487 | 10. Automatic Licensing of Downstream Recipients. 488 | 489 | Each time you convey a covered work, the recipient automatically 490 | receives a license from the original licensors, to run, modify and 491 | propagate that work, subject to this License. You are not responsible 492 | for enforcing compliance by third parties with this License. 493 | 494 | An "entity transaction" is a transaction transferring control of an 495 | organization, or substantially all assets of one, or subdividing an 496 | organization, or merging organizations. If propagation of a covered 497 | work results from an entity transaction, each party to that 498 | transaction who receives a copy of the work also receives whatever 499 | licenses to the work the party's predecessor in interest had or could 500 | give under the previous paragraph, plus a right to possession of the 501 | Corresponding Source of the work from the predecessor in interest, if 502 | the predecessor has it or can get it with reasonable efforts. 503 | 504 | You may not impose any further restrictions on the exercise of the 505 | rights granted or affirmed under this License. For example, you may 506 | not impose a license fee, royalty, or other charge for exercise of 507 | rights granted under this License, and you may not initiate litigation 508 | (including a cross-claim or counterclaim in a lawsuit) alleging that 509 | any patent claim is infringed by making, using, selling, offering for 510 | sale, or importing the Program or any portion of it. 511 | 512 | 11. Patents. 513 | 514 | A "contributor" is a copyright holder who authorizes use under this 515 | License of the Program or a work on which the Program is based. The 516 | work thus licensed is called the contributor's "contributor version". 517 | 518 | A contributor's "essential patent claims" are all patent claims 519 | owned or controlled by the contributor, whether already acquired or 520 | hereafter acquired, that would be infringed by some manner, permitted 521 | by this License, of making, using, or selling its contributor version, 522 | but do not include claims that would be infringed only as a 523 | consequence of further modification of the contributor version. For 524 | purposes of this definition, "control" includes the right to grant 525 | patent sublicenses in a manner consistent with the requirements of 526 | this License. 527 | 528 | Each contributor grants you a non-exclusive, worldwide, royalty-free 529 | patent license under the contributor's essential patent claims, to 530 | make, use, sell, offer for sale, import and otherwise run, modify and 531 | propagate the contents of its contributor version. 532 | 533 | In the following three paragraphs, a "patent license" is any express 534 | agreement or commitment, however denominated, not to enforce a patent 535 | (such as an express permission to practice a patent or covenant not to 536 | sue for patent infringement). To "grant" such a patent license to a 537 | party means to make such an agreement or commitment not to enforce a 538 | patent against the party. 539 | 540 | If you convey a covered work, knowingly relying on a patent license, 541 | and the Corresponding Source of the work is not available for anyone 542 | to copy, free of charge and under the terms of this License, through a 543 | publicly available network server or other readily accessible means, 544 | then you must either (1) cause the Corresponding Source to be so 545 | available, or (2) arrange to deprive yourself of the benefit of the 546 | patent license for this particular work, or (3) arrange, in a manner 547 | consistent with the requirements of this License, to extend the patent 548 | license to downstream recipients. "Knowingly relying" means you have 549 | actual knowledge that, but for the patent license, your conveying the 550 | covered work in a country, or your recipient's use of the covered work 551 | in a country, would infringe one or more identifiable patents in that 552 | country that you have reason to believe are valid. 553 | 554 | If, pursuant to or in connection with a single transaction or 555 | arrangement, you convey, or propagate by procuring conveyance of, a 556 | covered work, and grant a patent license to some of the parties 557 | receiving the covered work authorizing them to use, propagate, modify 558 | or convey a specific copy of the covered work, then the patent license 559 | you grant is automatically extended to all recipients of the covered 560 | work and works based on it. 561 | 562 | A patent license is "discriminatory" if it does not include within 563 | the scope of its coverage, prohibits the exercise of, or is 564 | conditioned on the non-exercise of one or more of the rights that are 565 | specifically granted under this License. You may not convey a covered 566 | work if you are a party to an arrangement with a third party that is 567 | in the business of distributing software, under which you make payment 568 | to the third party based on the extent of your activity of conveying 569 | the work, and under which the third party grants, to any of the 570 | parties who would receive the covered work from you, a discriminatory 571 | patent license (a) in connection with copies of the covered work 572 | conveyed by you (or copies made from those copies), or (b) primarily 573 | for and in connection with specific products or compilations that 574 | contain the covered work, unless you entered into that arrangement, 575 | or that patent license was granted, prior to 28 March 2007. 576 | 577 | Nothing in this License shall be construed as excluding or limiting 578 | any implied license or other defenses to infringement that may 579 | otherwise be available to you under applicable patent law. 580 | 581 | 12. No Surrender of Others' Freedom. 582 | 583 | If conditions are imposed on you (whether by court order, agreement or 584 | otherwise) that contradict the conditions of this License, they do not 585 | excuse you from the conditions of this License. If you cannot convey a 586 | covered work so as to satisfy simultaneously your obligations under this 587 | License and any other pertinent obligations, then as a consequence you may 588 | not convey it at all. For example, if you agree to terms that obligate you 589 | to collect a royalty for further conveying from those to whom you convey 590 | the Program, the only way you could satisfy both those terms and this 591 | License would be to refrain entirely from conveying the Program. 592 | 593 | 13. Use with the GNU Affero General Public License. 594 | 595 | Notwithstanding any other provision of this License, you have 596 | permission to link or combine any covered work with a work licensed 597 | under version 3 of the GNU Affero General Public License into a single 598 | combined work, and to convey the resulting work. The terms of this 599 | License will continue to apply to the part which is the covered work, 600 | but the special requirements of the GNU Affero General Public License, 601 | section 13, concerning interaction through a network will apply to the 602 | combination as such. 603 | 604 | 14. Revised Versions of this License. 605 | 606 | The Free Software Foundation may publish revised and/or new versions of 607 | the GNU General Public License from time to time. Such new versions will 608 | be similar in spirit to the present version, but may differ in detail to 609 | address new problems or concerns. 610 | 611 | Each version is given a distinguishing version number. If the 612 | Program specifies that a certain numbered version of the GNU General 613 | Public License "or any later version" applies to it, you have the 614 | option of following the terms and conditions either of that numbered 615 | version or of any later version published by the Free Software 616 | Foundation. If the Program does not specify a version number of the 617 | GNU General Public License, you may choose any version ever published 618 | by the Free Software Foundation. 619 | 620 | If the Program specifies that a proxy can decide which future 621 | versions of the GNU General Public License can be used, that proxy's 622 | public statement of acceptance of a version permanently authorizes you 623 | to choose that version for the Program. 624 | 625 | Later license versions may give you additional or different 626 | permissions. However, no additional obligations are imposed on any 627 | author or copyright holder as a result of your choosing to follow a 628 | later version. 629 | 630 | 15. Disclaimer of Warranty. 631 | 632 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 633 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 634 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 635 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 636 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 637 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 638 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 639 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 640 | 641 | 16. Limitation of Liability. 642 | 643 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 644 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 645 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 646 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 647 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 648 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 649 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 650 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 651 | SUCH DAMAGES. 652 | 653 | 17. Interpretation of Sections 15 and 16. 654 | 655 | If the disclaimer of warranty and limitation of liability provided 656 | above cannot be given local legal effect according to their terms, 657 | reviewing courts shall apply local law that most closely approximates 658 | an absolute waiver of all civil liability in connection with the 659 | Program, unless a warranty or assumption of liability accompanies a 660 | copy of the Program in return for a fee. 661 | 662 | END OF TERMS AND CONDITIONS 663 | 664 | How to Apply These Terms to Your New Programs 665 | 666 | If you develop a new program, and you want it to be of the greatest 667 | possible use to the public, the best way to achieve this is to make it 668 | free software which everyone can redistribute and change under these terms. 669 | 670 | To do so, attach the following notices to the program. It is safest 671 | to attach them to the start of each source file to most effectively 672 | state the exclusion of warranty; and each file should have at least 673 | the "copyright" line and a pointer to where the full notice is found. 674 | 675 | 676 | Copyright (C) 677 | 678 | This program is free software: you can redistribute it and/or modify 679 | it under the terms of the GNU General Public License as published by 680 | the Free Software Foundation, either version 3 of the License, or 681 | (at your option) any later version. 682 | 683 | This program is distributed in the hope that it will be useful, 684 | but WITHOUT ANY WARRANTY; without even the implied warranty of 685 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 686 | GNU General Public License for more details. 687 | 688 | You should have received a copy of the GNU General Public License 689 | along with this program. If not, see . 690 | 691 | Also add information on how to contact you by electronic and paper mail. 692 | 693 | If the program does terminal interaction, make it output a short 694 | notice like this when it starts in an interactive mode: 695 | 696 | Copyright (C) 697 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 698 | This is free software, and you are welcome to redistribute it 699 | under certain conditions; type `show c' for details. 700 | 701 | The hypothetical commands `show w' and `show c' should show the appropriate 702 | parts of the General Public License. Of course, your program's commands 703 | might be different; for a GUI interface, you would use an "about box". 704 | 705 | You should also get your employer (if you work as a programmer) or school, 706 | if any, to sign a "copyright disclaimer" for the program, if necessary. 707 | For more information on this, and how to apply and follow the GNU GPL, see 708 | . 709 | 710 | The GNU General Public License does not permit incorporating your program 711 | into proprietary programs. If your program is a subroutine library, you 712 | may consider it more useful to permit linking proprietary applications with 713 | the library. If this is what you want to do, use the GNU Lesser General 714 | Public License instead of this License. But first, please read 715 | . 716 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![StyleChan](https://i.imgur.com/W8aFRNP.png) StyleChan 2 | ==== 3 | 4 | StyleChan is a userscript functioning on top of 4chan X allowing you to customize the site with various themes. 5 | 6 | Originally developed by [seaweedchan](https://github.com/seaweedchan), this is a fork of [Oneechan](https://nebukazar.github.com) without mascots. 7 | 8 | ##[Click to Install](https://nebukazar.github.io/StyleChan/builds/StyleChan.user.js) 9 | 10 | 11 | #### Install instructions 12 | 13 | Installing [4chan X](https://github.com/ccd0/4chan-x) is **required** for StyleChan to work. 14 | 15 | - Firefox: Requires the [Greasemonkey](https://addons.mozilla.org/firefox/addon/greasemonkey/) addon. Click the Install link above. 16 | 17 | - Chrome: Requires the [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl) extension. Click the Install link above. Alternatively you can download a [.crx here](https://nebukazar.github.io/StyleChan/builds/StyleChan.crx) if you are using Chromium or are not using Windows. Drag&drop into the extensions page to install. 18 | 19 | - Pale Moon: Requires the [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/?page=2#version-1.15.1-signed) addon. Click the Install link above. 20 | 21 | - MS Edge: Requires the [Tampermonkey](https://www.microsoft.com/store/apps/9NBLGGH5162S) addon. Click the Install link above. 22 | 23 | #### Troubleshooting 24 | 25 | - If you have any problems, try first resetting your 4chan X and StyleChan settings and restarting your browser 26 | 27 | - Check if it's not a 4chan X issue first, StyleChan mostly deals with stylesheets not site functionality 28 | 29 | - Something doesn't work let me know in the [Issues](https://github.com/nebukazar/StyleChan/issues) page 30 | 31 | - Please refer to the [Wiki](https://github.com/nebukazar/OneeChan/wiki) for instructions 32 | 33 | 34 | #### Development & Contribution 35 | 36 | - [Changelog](https://github.com/nebukazar/StyleChan/blob/master/CHANGELOG.md) 37 | - [Source Code](https://github.com/nebukazar/StyleChan) 38 | - [Reporting Bugs and Contributing](https://github.com/nebukazar/StyleChan/blob/master/CONTRIBUTING.md) 39 | -------------------------------------------------------------------------------- /builds/StyleChan-Chrome.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/builds/StyleChan-Chrome.zip -------------------------------------------------------------------------------- /builds/StyleChan.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/builds/StyleChan.crx -------------------------------------------------------------------------------- /builds/StyleChan.meta.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name StyleChan 3 | // @version 1.0.14 4 | // @namespace StyleChan 5 | // @description Customizable themes for 4chan X. 6 | // @minGMVer 1.14 7 | // @minFFVer 26 8 | // @license GPL-3.0; https://github.com/nebukazar/StyleChan/blob/master/LICENSE 9 | // @match *://boards.4chan.org/* 10 | // @grant GM_getValue 11 | // @grant GM_setValue 12 | // @grant GM_deleteValue 13 | // @grant GM_openInTab 14 | // @grant GM_listValues 15 | // @run-at document-start 16 | // @updateURL https://nebukazar.github.io/StyleChan/builds/StyleChan.meta.js 17 | // @downloadURL https://nebukazar.github.io/StyleChan/builds/StyleChan.user.js 18 | // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAOwgAADsIBFShKgAAACSJJREFUaN7tmWuMVdUVx39r73PPvXeYFzPDS3k0+KrYiDE1JrZWRUx1aouOr2gqbRSpj1RBEG2JhBJbNR1UfBQr1NZIaxvrOMQI2KZNW6tFJVqpxLYCFirDw2Fg5s7MfZyz9+qHO0MdAZl7B/CL/087Oees9f+vvffaa68Dn+HThQzl42kvfrVoRKQSpAGoAPJAO0oXggoWJQ5BRgD1fT47QHeqMQWJHa0Xv3T0BVyy6kJUGYbINIHpwIkfEbAV+BXoswonCnIjcAZQ1+dzL7AWdInCmwLa2rjm6Am4ZNVFgNaC3AtcCww7wGtZYD0wHhhzEFMbgdvSZtKqrN9AOSJMWZFHLcgdwPUHIQ+QBs78BPIAxwP3Z/2GE8pdDCULAEGQ44CrgURZXgdiEsjXrVqmrbrwyAq4cuVl/cPT+OTIlsrhXCdxhZQxCyUJSIwK+ofVQFDKt4dANUhZ9koSUDEp1T/cBPQeRgFbEHJHXMCy6qf6hxuA9w4T+Qh4CaVwxAUAKErap3cBjwM9h0HAW8CfAVobVx95ASsb15A1vSj6DPAbwA+B/G7gHgzbyjWw38bZmV6MeBUNpVKcVqmVSGLNxEnJGaeMzswl0piEJHqAhcAE4PwyfOeA+xRdI559h5ht2UFAPhGTahB8WjFOkY6ATMYTEjeNG2BkX97aXtNMshNcgpHimY7yDWAEUBDlAzW0+oDnX14Rtp81M+KmFb8HI6B8AXiSYqkwWETAQ6CLQLpbG1cjLe0ARtDJirkFzFmgw0AcsFmIHzHEqxQbuaaRAwW01TUTdoIPmWjyPCqeCw4wO3k1vK4JFkRV/MXm8DOf/QPiFUS+CCwHJg+S/FJFFwjS2U/eEKU84bcVcxfIePY7mrVD8IsM8U8UG/mmBqBvDwS94ENqTJ7F4rmIA+f4pHjONgVWJDq5TmKSy6cVV06+qn4d8B3g74cgnweWKLoA6HwldxumZTeWqMYTLlTMj0EmcMC6QuoUu8ATnO9JYFt2FgW01S3G5kAcU0SZesj4KceamAdMzByXkvQTV0wlzLQz3k1+DbgBWHeQL3uA+4BFgnS+lruDds7AEI1wJB9W7GyQykN4rwP5bkBPtfTlDmPzSvYYMeL4GsqhDPSLqBLHfJvTeS4l6SeuuoAt9m2M03XADODVj32xF7gb9H7QzCu5eezkNAyuwRE+oJhrgHBQvpHTFTNW+xKoMQVItmsonrGDM7BPRIWJuDPI6DxF08suO5/YCkZ4W4si/tj35i5gtqKPgWTX5B6jnVMRtM4TLFbM1ZRWlgwT/HDQogCfBJdGVXAlCSiKSJuYeTbHXB9KetnlU3EoorxLcU88BdwMPC1IobVxNRGVBOQrFXtvX+RtiV4FEenfJiauFtY+l8prwL9KFtA/EzF3BT06y3hNLZ82FS/gkY2K3qL4VsW71sbV2JZdCD7tSM5XZHqJke9zR6/XRJf26ZYt4xdT+V/Fh5xjCjyPMrwsIdCtAd/LjZbHg4zGozvnDngYtGxHcImYivmKmUfxwlMyBPeipXCNYrpc0yjMhK1z8MVryTr+v27LQaU4fhDu1ktHdDq2HP/AvgfFlOetIzVDkVnlkgftEvyjMVVdib5i2AC4EBJ5etTwOyivKuwPtHh8hCD6MdcEKcU2gtQMwb4HyQkFCn03WQMgIuSrpQ6lhHS2H3rVsADPC92BYfym2wf4dVT2gC4AfbN8/lLrsbPAV/XvAZOhGdujSEHPEOX0Mi1HaljiLU8Ahe7/LEB7IbvHJnN7bNBz3lgsGZSatwzuRkHXD0HEl0FO3JeFsiHUesVEnIdSVbo9Yg1Y6hPcL5Bt2/hDxlf3ki+YkaHxSxLGz1ZI9045hpA2vNa/YYhuAi33QlQj+M8BzPjtxOIS2nyqIH6Qp/BAqBp+GVfIQg2kU9q+z6TavWTjYFQg+pARnWFEFwZG74q9qcpMmUDStBHQ8zfBzwbdWoZLY3ChYsmGlRhbgIb1oJZ/QkmHmWJoUcv8RJfuSS59hvqwgMDElHXLrOiVFA+pikD8nSnrmlHqeqeMBQk1JLNK8LeAbilxyp3HZsEjxmPqmYsPQA1rEXYP0orH8JxabjMFtpkHV1Jz6ToiLycY0WVG9GIGnrBJI3qdNdqcc7ahe8pYxFgNyLwo6M2gm0qIW4cimwXPiovf6UujaXBp2aCGPw3CQqSGX6hwq4nY5h9eSe0NL1Nw5iQrLBOYwoHbbIEVvTZl3SMC43qnjKch7FFDYbUhni6DzE6CrrRE/zZ9i8UARNVColOzalmk5qDlMAhdGvAjTXC7KNvNGw9S962/ko/NSUEx8uccwn9gRK8yoktjL+PazjmFuqBdK3n/VSH+puBaKF54DuLevyL4ZkcqZ/sOsn2RamtYzJj2mA+TdrKJuUc856J9p4XQo8IGNTT7FC9ITD7acjdj0llileMs/GwQ5AesA6fy66yztyaMbz/39WdZ291IwN46T+Jyj50JcjxQAeoFOsC/IPhmT8N7CbYRNY0dKABg0ykPMHFDxK6qoNbk9DRxnCCK9wk2asC7cYX5UGLVMXvnEO0VnMrwhNHlRrSpBPL9cE7l57GXOUboCms9YctWBCcRlSMVMxFkpOBjwb1viDZHVOfq+AcdTV/6yKyUgd49ltibREUQL7Kicyi/yZt3KgtzziwORKPU8NI7NCX3hT7YmSZtHaF1ZxvR64dAHorZaU7S+q8krSfTUXp7tGQB9WGB3timEqI3SbHtMiQINBi4NetsVfDxCvBICAhECY2OFtFy66b9RYieaWCCKUNAyXNmjQeoF6g9XAKAYR6pNaXzL11A7A0KUcL4eEi/OAfCWynPXslLqOANBW92qsqOw8efXVZ0pz0ae8Cr0B0lPlRYw9A60/2IvcqTBW+2ujKWUMkCqusjhicLvuDNQ05lFf0NmgMjq5D5hOcFr/K0U/lpIOrC2qMwAwDbeitIJ932vLM3O5XlWuzz95fiqkXibzqVmZE3VziV1QqdFOucSCHjVdbHKrMiL7MD8R3ZuLxfbmXvw+fePZamcdvIx6YiED1Z4GQPx3iVLgObQN/Ju2DHsLpIuzsStakg/ryqjBJAod2pvJ93doeI+pr6qFwan+FTx/8Agjbnj0iHt+wAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTYtMDUtMTlUMTc6MDc6MTErMDA6MDAEoroVAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE2LTA1LTE5VDE3OjA3OjExKzAwOjAwdf8CqQAAAEZ0RVh0c29mdHdhcmUASW1hZ2VNYWdpY2sgNi43LjgtOSAyMDE0LTA1LTEyIFExNiBodHRwOi8vd3d3LmltYWdlbWFnaWNrLm9yZ9yG7QAAAAAYdEVYdFRodW1iOjpEb2N1bWVudDo6UGFnZXMAMaf/uy8AAAAYdEVYdFRodW1iOjpJbWFnZTo6aGVpZ2h0ADE5Mg8AcoUAAAAXdEVYdFRodW1iOjpJbWFnZTo6V2lkdGgAMTky06whCAAAABl0RVh0VGh1bWI6Ok1pbWV0eXBlAGltYWdlL3BuZz+yVk4AAAAXdEVYdFRodW1iOjpNVGltZQAxNDYzNjc3NjMxendcrAAAAA90RVh0VGh1bWI6OlNpemUAMEJClKI+7AAAAFZ0RVh0VGh1bWI6OlVSSQBmaWxlOi8vL21udGxvZy9mYXZpY29ucy8yMDE2LTA1LTE5LzU4MjdkNzExNjY1MjgzOTVlOGQ1NmNhZmVlYjRhNWJlLmljby5wbmfKOfUqAAAAAElFTkSuQmCC 19 | // ==/UserScript== -------------------------------------------------------------------------------- /builds/crx/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/builds/crx/icon128.png -------------------------------------------------------------------------------- /builds/crx/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/builds/crx/icon16.png -------------------------------------------------------------------------------- /builds/crx/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/builds/crx/icon48.png -------------------------------------------------------------------------------- /builds/crx/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "StyleChan", 3 | "version": "1.0.14", 4 | "manifest_version": 2, 5 | "description": "Customizable themes for 4chan X.", 6 | "icons": { 7 | "16": "icon16.png", 8 | "48": "icon48.png", 9 | "128": "icon128.png" 10 | }, 11 | "content_scripts": [{ 12 | "js": ["script.js"], 13 | "matches": ["*://boards.4chan.org/*"], 14 | "all_frames": true, 15 | "run_at": "document_start" 16 | }], 17 | "homepage_url": "https://github.com/nebukazar/StyleChan/", 18 | "update_url": "https://nebukazar.github.io/StyleChan/builds/updates.xml", 19 | "minimum_chrome_version": "32", 20 | "permissions": [ 21 | "storage", 22 | "*://www.4chan.org/*", 23 | "*://boards.4chan.org/*" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /builds/updates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "StyleChan", 3 | "version": "1.0.14", 4 | "description": "Customizable themes for 4chan X.", 5 | "meta": { 6 | "name": "StyleChan", 7 | "repo": "https://github.com/nebukazar/StyleChan/", 8 | "page": "https://github.com/nebukazar/StyleChan/", 9 | "downloads": "https://nebukazar.github.io/StyleChan/builds/", 10 | "appid": "peblejlenbfconioafjbmipeogjdhcff", 11 | "buildsPath": "builds/", 12 | "mainBranch": "master", 13 | "matches": [ 14 | "*://boards.4chan.org/*" 15 | ], 16 | "files": { 17 | "metajs": "StyleChan.meta.js", 18 | "userjs": "StyleChan.user.js" 19 | }, 20 | "min": { 21 | "chrome": "32", 22 | "firefox": "26", 23 | "greasemonkey": "1.14" 24 | } 25 | }, 26 | "devDependencies": { 27 | "grunt": "~0.4.5", 28 | "grunt-bump": "~0.0.16", 29 | "grunt-contrib-clean": "~0.6.0", 30 | "grunt-contrib-concat": "~0.5.0", 31 | "grunt-contrib-compress": "~0.12.0", 32 | "grunt-contrib-cssmin": "~0.6.0", 33 | "grunt-contrib-copy": "~0.7.0", 34 | "grunt-shell": "~1.1.1" 35 | }, 36 | "repository": { 37 | "type": "git", 38 | "url": "https://github.com/nebukazar/StyleChan.git" 39 | }, 40 | "author": "seaweedchan", 41 | "contributors": [ 42 | "nebukazar" 43 | ], 44 | "namespace": "seaweedchan.github.com", 45 | "license": "GPL-3.0", 46 | "readmeFilename": "README.md", 47 | "engines": { 48 | "node": ">=0.10" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/css/Catalog.css: -------------------------------------------------------------------------------- 1 | /* Catalog */ 2 | .extended-small .teaser, .extended-large .teaser { 3 | margin-left: 5px; 4 | margin-right: 5px; 5 | } 6 | div.thread { 7 | margin: 2px 1px 0 0; 8 | clear: both; 9 | padding-bottom: 10px; 10 | } 11 | /* Catalog Link */ 12 | .pages.cataloglink { 13 | margin-left: 12px; 14 | border-radius: 3px; 15 | } 16 | .pages.cataloglink a { 17 | color: " + $SS.theme.textColor.hex + " !important; 18 | font-weight: bold; 19 | } 20 | .pages.cataloglink a:hover { 21 | color: " + $SS.theme.textColor.hex + " !important; 22 | opacity: 0.7 !important; 23 | transition: opacity .3s ease-in 0s; 24 | } 25 | /* Catalog Fonts */ 26 | :root.catalog-justify .teaser, 27 | :root.catalog-justify .catalog-thread > .comment { 28 | text-align: justify !important; 29 | } 30 | /* Background */ 31 | :root.catalog-background #threads div.thread, 32 | :root.catalog-background .catalog-thread { 33 | background: rgba(" + $SS.theme.mainColor.rgb + "," + $SS.theme.replyOp + ") !important; 34 | } 35 | :root.rounded-corners.catalog-background #threads div.thread, 36 | :root.rounded-corners.catalog-background .catalog-thread { 37 | border-radius: 3px !important; 38 | } 39 | :root.catalog-background .teaser, 40 | :root.catalog-background .catalog-thread > .comment { 41 | margin: 0 5px 5px 5px; 42 | } 43 | :root.catalog-background .thumb, 44 | :root.catalog-background img.catalog-thumb { 45 | margin-top: 8px; 46 | } 47 | :root.catalog-background .extended-large .thread { 48 | min-height: 410px; 49 | } 50 | :root.catalog-background .extended-small .thread { 51 | min-height: 320px; 52 | } 53 | /* Thumbnails */ 54 | :root.catalog-thumbsize .thumb, 55 | :root.catalog-thumbsize img.catalog-thumb { 56 | width: 150px !important; 57 | height: 150px !important; 58 | } 59 | -------------------------------------------------------------------------------- /src/css/Cleanup.css: -------------------------------------------------------------------------------- 1 | /* Hide things we don't want */ 2 | .mobile, 3 | #delform .mobile.center, 4 | .tab-select:not(:checked) + div, 5 | iframe[src='about:blank'], 6 | #absbot, 7 | #styleSelector, 8 | :root.show-ads.hide-top .topad.center, 9 | :root.show-ads.hide-middle .middlead.center, 10 | :root.show-ads.hide-bottom .bottomad.center, 11 | #delPassword, 12 | :root.show-file-info .file-info, 13 | :root.hide-blotter #blotter, 14 | #delform .post input[type=checkbox], 15 | #delform .post .riceCheck, 16 | #qp .post input[type=checkbox], 17 | #qp .riceCheck, 18 | .deleteform, 19 | :root.hide-board-name .boardTitle, 20 | :root.hide-board-name .boardSubtitle, 21 | :root.hide-banner #bannerCnt, 22 | :root.hide-button .qr-link-container, 23 | :root.reply-fit-width .sideArrows, 24 | :root.qr-controls #qr .close, 25 | :root.qr-controls #qr select[data-name="thread"], 26 | :root.qr-controls.fade-qr #qr .move label, 27 | :root.qr-controls.vertical-qr #qr .move label input, 28 | #postForm, 29 | :root.hide-button #togglePostFormLink, 30 | .forwarded, 31 | hr:not(#unread-line), 32 | :root.hide-navlinkbot .navLinks.navLinksBot.desktop, 33 | :root.hide-navlinkbot .navLinks.navLinksBottom.mobilebtn, 34 | :root.hide-navlinktop #info, 35 | :root.hide-navlinktop .navLinks:not(.navLinksBottom):not(.navLinksBot), 36 | :root.hide-navlinks body > .desktop:not(.pagelist):not(.navLinksBottom), 37 | :root.hide-navlinks .navLinks.navLinksBot.desktop, 38 | :root.hide-navlinks .navLinks, 39 | .ad-plea, 40 | .exif:not([style]), 41 | [hidden] { 42 | display: none; 43 | } 44 | :root.hide-board-banners .center { 45 | display: none !important; 46 | } 47 | /* 4chan Pass */ 48 | .stylechanger { 49 | visibility: hidden; 50 | } 51 | .brackets-wrap.pass-link-container { 52 | visibility: visible; 53 | } 54 | /* Get rid of Chrome input outlines, and link outlines */ 55 | input:focus, 56 | textarea:focus, 57 | select, 58 | a { 59 | outline: none !important; 60 | } 61 | -------------------------------------------------------------------------------- /src/css/Colors.css: -------------------------------------------------------------------------------- 1 | /* Text Colors */ 2 | /* General */ 3 | html, 4 | body, 5 | div.boardBanner, 6 | #menu, 7 | input:not(.jsColor), 8 | textarea, 9 | #qr-filename-container, 10 | #post-preview, 11 | .post-last, 12 | .pln, 13 | select, 14 | .captcha-root, 15 | .tegaki-label, 16 | .dd-menu ul, 17 | .boxbar { 18 | color: " + $SS.theme.textColor.hex + " !important; 19 | } 20 | /* Names */ 21 | .nameBlock:not(.capcodeMod)>.name, 22 | .com, 23 | .post-author { 24 | color: " + $SS.theme.nameColor.hex + " !important; 25 | } 26 | .nameBlock.capcodeMod { 27 | color: #800080 !important; 28 | } 29 | .id_admin, 30 | .nameBlock.capcodeAdmin span.name { 31 | color: #F00 !important; 32 | } 33 | /* Tripcodes */ 34 | .nameBlock>.postertrip, 35 | .post-tripcode, 36 | .tag { 37 | color: " + $SS.theme.tripColor.hex + " !important; 38 | } 39 | /* Links */ 40 | a, 41 | .typ, 42 | .atn, 43 | body.is_catalog .button, 44 | :root.catalog-mode .button, 45 | .options-button, 46 | .tegaki-tb-btn { 47 | color: " + $SS.theme.linkColor.hex + " !important; 48 | } 49 | a.summary, 50 | .pages strong>a { 51 | color: " + $SS.theme.textColor.hex + " !important; 52 | } 53 | #header-bar #notifications a { 54 | color: #ffffff !important; 55 | } 56 | a:hover, 57 | body.is_catalog .button:hover, 58 | :root.catalog-mode .button:hover, 59 | .lit, 60 | #header-bar #notifications a:hover, 61 | .tegaki-tb-btn:hover { 62 | color: " + $SS.theme.linkHColor.hex + " !important; 63 | } 64 | /* Header */ 65 | #header-bar, a.current { 66 | color: " + $SS.theme.headerColor.hex + " !important; 67 | } 68 | #header-bar a:not(.current) { 69 | color: " + $SS.theme.headerLColor.hex + " !important; 70 | } 71 | #header-bar a:hover { 72 | color: " + $SS.theme.headerLHColor.hex + " !important; 73 | } 74 | #custom-board-list .current { 75 | border-bottom: 1px solid rgba(" + $SS.theme.linkColor.rgb + ",1) !important;; 76 | } 77 | #custom-board-list .current:hover { 78 | border-bottom: 1px solid rgba(" + $SS.theme.linkHColor.rgb + ",1) !important;; 79 | } 80 | /* Greentext */ 81 | .postMessage>.quote, 82 | s:hover .quote, 83 | .str, 84 | .atv, 85 | .new, 86 | .catalog-thread > .comment > .quote { 87 | color: " + $SS.theme.quoteColor.hex + " !important; 88 | } 89 | /* Subject and Option labels */ 90 | .subject, 91 | .replytitle, 92 | .teaser b, 93 | .post-subject, 94 | .option.header .option-title, 95 | .kwd { 96 | color: " + $SS.theme.titleColor.hex + " !important; 97 | } 98 | .option.header { 99 | font-size: 140%; 100 | } 101 | /* Board Title */ 102 | .boardTitle { 103 | color: " + $SS.theme.boardColor.hex + " !important; 104 | text-shadow: none !important; 105 | } 106 | /* Backlinks */ 107 | .backlink { 108 | color: " + $SS.theme.blinkColor.hex + " !important; 109 | } 110 | .quotelink { 111 | color: " + $SS.theme.qlColor.hex + " !important; 112 | } 113 | /* Code Tags */ 114 | .prettyprint, 115 | .catalog-code { 116 | background: none repeat scroll 0 0 rgba(" + $SS.theme.codeBackground + ") !important; 117 | border: 1px solid rgba(" + $SS.theme.codeBorder + ") !important; 118 | } 119 | .pun { 120 | color: rgba(" + $SS.theme.textColor.rgb + ",.4) !important; 121 | } 122 | ::-webkit-input-placeholder { 123 | color:rgba(" + $SS.theme.textColor.rgb + ",.4) !important; 124 | } 125 | #qr .field::-moz-placeholder, 126 | ::-moz-placeholder, 127 | #qr-no-file { 128 | color: rgba(" + $SS.theme.textColor.rgb + ",.4) !important; 129 | } 130 | /* Backgrounds */ 131 | body { 132 | background: " + $SS.theme.bgImg.get() + $SS.theme.bgColor.hex + " !important; 133 | } 134 | .reply, 135 | body.is_catalog .panel, 136 | :root.catalog-mode .panel, 137 | .dialog, 138 | .tab-label, 139 | #post-preview, 140 | #tegaki, 141 | .boxbar, 142 | :root.op-background .postContainer.opContainer, 143 | .flashListing tr:nth-of-type(2n+1), 144 | .dd-menu ul, 145 | :root.catalog-hover-expand .catalog-container:hover > .post { 146 | background: rgba(" + $SS.theme.mainColor.rgb + "," + $SS.theme.replyOp + ")!important; 147 | } 148 | :root.recolor-even .thread>.replyContainer:nth-of-type(even):not(.hidden) .post { 149 | background: rgb\(" + $SS.theme.mainColor.shiftRGB(-10) + ") !important; 150 | } 151 | :root:not(.header-gradient) #header-bar { 152 | background: rgba(" + $SS.theme.headerBGColor.rgb + "," + $SS.theme.navOp + ") !important; 153 | } 154 | :root.header-gradient #header-bar { 155 | background: linear-gradient(rgb\(" + $SS.theme.headerBGColor.shiftRGB(15) + "),rgba(" + $SS.theme.headerBGColor.rgb + "," + $SS.theme.navOp + ")) !important; 156 | } 157 | :root.header-shadow #header-bar { 158 | box-shadow: none !important; 159 | } 160 | :root:not(.fixed) #header-bar { 161 | background: none !important; 162 | } 163 | .options-button, 164 | .qr-link, 165 | .pages.cataloglink, 166 | .pages strong>a { 167 | background:linear-gradient(rgb\(" + $SS.theme.mainColor.shiftRGB(15) + "),rgb(" + $SS.theme.mainColor.rgb + ")) !important; 168 | } 169 | .options-button:hover, 170 | .import-input:hover + .options-button, 171 | .pages strong>a:hover, 172 | .dd-menu li:hover { 173 | background:rgb\(" + $SS.theme.mainColor.shiftRGB(15) + "); 174 | } 175 | .focused.entry { 176 | background:rgb\(" + $SS.theme.mainColor.shiftRGB(10) + ") !important; 177 | } 178 | .qr-link:hover, 179 | :root.vertical-qr #qr .move { 180 | background:rgb\(" + $SS.theme.mainColor.rgb + "); 181 | } 182 | input:not(.jsColor), 183 | textarea, 184 | .riceCheck, 185 | #qr-filename-container, 186 | select, 187 | .captcha-root { 188 | background: " + $SS.theme.inputColor.hex + " !important; 189 | transition: background .2s; 190 | } 191 | input[type=checkbox], 192 | .riceCheck { 193 | background: rgb\(" + $SS.theme.inputColor.shiftRGB(25) + ") !important; 194 | } 195 | input:not(.jsColor):hover, 196 | .riceCheck:hover, 197 | #qr-filename-container:hover, 198 | textarea:hover, 199 | select:hover, 200 | .captcha-root:hover { 201 | background: rgb(" + $SS.theme.inputColor.hover + ") !important; 202 | transition: background .2s; 203 | } 204 | hr { 205 | background-image: linear-gradient(to left, rgba(" + $SS.theme.brderColor.rgb + ",0), rgb(" + $SS.theme.brderColor.rgb + "), rgba(" + $SS.theme.brderColor.rgb + ",0)); 206 | } 207 | #unread-line { 208 | background-image: linear-gradient(to left, rgba(" + $SS.theme.unreadColor.rgb + ",0), rgb(" + $SS.theme.unreadColor.rgb + "), rgba(" + $SS.theme.unreadColor.rgb + ",0)); 209 | } 210 | .inline { 211 | background:rgba\(" + $SS.theme.mainColor.shiftRGB(-16) + ",.8)!important; 212 | } 213 | :root.post-info .reply>.postInfo { 214 | background: rgba\(" + $SS.theme.mainColor.shiftRGB(-16) + ",.2); 215 | border-bottom:1px solid rgb\(" + $SS.theme.mainColor.shiftRGB(4) + "); 216 | } 217 | /* Borders */ 218 | .reply, 219 | :root.op-background .postContainer.opContainer, 220 | .dd-menu ul { 221 | border-width: 0 1px 1px 0; 222 | border-style: solid; 223 | } 224 | :root.borders-all .reply, 225 | :root.borders-all.op-background .postContainer.opContainer { 226 | border-width: 1px !important; 227 | } 228 | :root.borders-none .reply, 229 | :root.borders-none.op-background .postContainer.opContainer { 230 | border: none; 231 | } 232 | #menu, 233 | .catalog-thumb { 234 | border-radius: 0 !important; 235 | } 236 | :root.rounded-corners .reply, 237 | :root.rounded-corners.op-background .postContainer.opContainer, 238 | :root.rounded-corners .dialog:not(#header-bar), 239 | :root.rounded-corners .inline, 240 | :root.rounded-corners #thread-stats 241 | :root.rounded-corners #updater, 242 | :root.rounded-corners #menu, 243 | :root.rounded-corners .thumb, 244 | :root.rounded-corners .fileThumb img:not(.full-image), 245 | :root.rounded-corners .catalog-thumb, 246 | :root.rounded-corners .dd-menu ul, 247 | :root.rounded-corners.werkTyme .catalog-thread:not(:hover), 248 | :root.rounded-corners.werkTyme:not(.catalog-hover-expand) .catalog-thread, 249 | :root.rounded-corners.catalog-hover-expand .catalog-container:hover > .post, 250 | :root.rounded-corners.catalog-hover-expand .catalog-container:hover .catalog-reply { 251 | border-radius: 3px !important; 252 | } 253 | :root.post-info.rounded-corners .reply>.postInfo, 254 | :root.rounded-corners #qr, 255 | :root.rounded-corners:root.vertical-qr #qr > .move { 256 | border-radius: 3px 3px 0 0 !important; 257 | } 258 | :root:not(.rounded-corners) #post-preview { 259 | border-radius: 0 !important; 260 | } 261 | .reply, 262 | :root.op-background .postContainer.opContainer, 263 | .dialog, 264 | .entry, 265 | .inline, 266 | fieldset, 267 | #post-preview, 268 | .flashListing td:not(:last-of-type):not(.postblock), 269 | :root.vertical-qr #qr .move, 270 | #qr select, 271 | select { 272 | border-color: " + $SS.theme.brderColor.hex + " !important; 273 | } 274 | .dd-menu li { 275 | border-bottom: " + $SS.theme.brderColor.hex + " !important; 276 | } 277 | input, 278 | textarea, 279 | .riceCheck, 280 | #qr-filename-container, 281 | #search-box, 282 | #index-search, 283 | .captcha-img, 284 | :root.vertical-qr #qr .move, 285 | #qr select, 286 | select, 287 | #post-preview, 288 | .captcha-root, 289 | .dd-menu ul, 290 | :root.werkTyme .catalog-thread:not(:hover), 291 | :root.werkTyme:not(.catalog-hover-expand) .catalog-thread, 292 | :root.catalog-hover-expand .catalog-container:hover > .post, 293 | :root.catalog-hover-expand .catalog-container:hover .catalog-reply { 294 | border: 1px solid " + $SS.theme.inputbColor.hex + " !important; 295 | } 296 | .options-button, 297 | .qr-link, 298 | .pages.cataloglink, 299 | .pages strong>a { 300 | border-style: solid; 301 | border-width: 1px; 302 | border-color: rgb\(" + $SS.theme.mainColor.shiftRGB(-15) + ") rgb\(" + $SS.theme.mainColor.shiftRGB(-15) + ") rgb\(" + $SS.theme.mainColor.shiftRGB(-30) + ") !important; 303 | } 304 | a.quotelink.forwardlink, a.backlink.forwardlink { 305 | border-bottom: 1px dashed; 306 | } 307 | input:focus, 308 | textarea:focus, 309 | #qr-filename-container:focus, 310 | #qr-filename-container.focus, 311 | select:focus, 312 | .captcha-root:focus { 313 | border: 1px solid " + $SS.theme.linkColor.hex + " !important; 314 | } 315 | #search-box:hover, 316 | #index-search:hover, 317 | .captcha-img:hover { 318 | border-color: " + $SS.theme.linkColor.hex + " !important; 319 | } 320 | #header-bar { 321 | border: none !important; 322 | } 323 | .flashListing td:not(:last-of-type):not(.postblock) { 324 | border-width: 1px; 325 | border-style: solid; 326 | } 327 | :root.header-highlight #custom-board-list .current:hover, 328 | :root.header-highlight #custom-board-list .current { 329 | border-bottom: none !important; 330 | } 331 | /* 4chan X Menu */ 332 | .suboption-list > div:last-of-type { 333 | background: rgba(" + $SS.theme.mainColor.rgb + "," + $SS.theme.replyOp + ")!important; 334 | } 335 | .suboption-list > div::before, 336 | .suboption-list::before { 337 | border-color: " + $SS.theme.brderColor.hex + " !important; 338 | left: 0.5em !important; 339 | } 340 | /* Shadows */ 341 | #navlinks a { 342 | text-shadow:" + $SS.theme.mainColor.hex + " -1px -1px, 343 | " + $SS.theme.mainColor.hex + " 1px -1px, 344 | " + $SS.theme.mainColor.hex + " -1px 1px, 345 | " + $SS.theme.mainColor.hex + " 1px 1px, 346 | " + $SS.theme.mainColor.hex + " -1px 0, 347 | " + $SS.theme.mainColor.hex + " 1px 0, 348 | " + $SS.theme.mainColor.hex + " 0 -1px, 349 | " + $SS.theme.mainColor.hex + " 0 1px, 350 | rgba(0,0,0,.6) 0 2px 4px, 351 | rgba(0,0,0,.6) 0 0 2px; 352 | } 353 | .thumb { 354 | box-shadow: 0 0 5px rgba(0, 0, 0, 0.25); 355 | } 356 | #qr, 357 | #thread-watcher { 358 | box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1) !important; 359 | } 360 | /* Closed Threads */ 361 | .closed { 362 | margin-top: 10px; 363 | color: red; 364 | } 365 | /* /f/ */ 366 | #swf-embed-header.postblock { 367 | border: 1px solid " + $SS.theme.brderColor.hex + " !important; 368 | background-color: rgba(" + $SS.theme.headerBGColor.rgb + "," + $SS.theme.navOp + ") !important; 369 | color: " + $SS.theme.linkColor.hex + " !important; 370 | } 371 | #swf-embed-close { 372 | right: 1px !important; 373 | } 374 | -------------------------------------------------------------------------------- /src/css/Fonts.css: -------------------------------------------------------------------------------- 1 | /* Anything we need 0px */ 2 | 3 | .deleteform, 4 | .pages, 5 | .pagelist button, 6 | #full-board-list { 7 | font-size: 0 !important; 8 | } 9 | 10 | /* Anything we need small */ 11 | 12 | .fileText, 13 | .summary { 14 | font-size: " + (($SS.conf["Font Size"] < 13) ? 10 : ($SS.conf["Font Size"] - 2)) + "px !important; 15 | } 16 | 17 | /* Anything we need !important */ 18 | 19 | .qr-link { 20 | font-size: 14px !important; 21 | } 22 | 23 | /* Options */ 24 | 25 | .tab-label, 26 | .options-button, 27 | .theme-preview, 28 | #oneechan-options input, 29 | #oneechan-options textarea, 30 | .hide-reply-button, 31 | .hide-thread-button { 32 | font-family: sans-serif !important; 33 | font-size: 12px !important; 34 | } 35 | 36 | /* Board Title */ 37 | 38 | .boardBanner .boardTitle { 39 | font-weight: 400 !important; 40 | font-size: " + (($SS.conf["Font Size"] < 13) ? 22 : 26) + "px !important; 41 | } 42 | 43 | /* Code Tags */ 44 | 45 | .prettyprint span { 46 | font-family: monospace!important; 47 | font-size: medium!important; 48 | } 49 | 50 | /* Full board list */ 51 | 52 | #full-board-list, 53 | body>#header-bar, 54 | #full-board-list .fourchanx-link { 55 | font-size: " + (($SS.conf["Font Size"] < 1) ? 12 : ($SS.conf["Font Size"] - 1)) + "px !important; 56 | } 57 | @media (min-width: 1280px) and (max-width: 1920px) { 58 | #board-list { 59 | word-spacing: " + (($SS.conf["Font Size"] < 14) ? -1 : -2) + "px; 60 | } 61 | } 62 | 63 | /* Everything else */ 64 | 65 | body, 66 | .prev span::after, 67 | .prev form::after, 68 | .next span::after, 69 | .next form::after, 70 | .pages a, 71 | #qr input.field, 72 | #qr:not(.sjis-preview) textarea.field, 73 | #qr span.field, 74 | #qr-file-button, 75 | #qr input[type=submit], 76 | #qr select[data-name="thread"], 77 | #menu .entry, 78 | #boardList, 79 | #shortcuts, 80 | #index-search, 81 | #tegaki, 82 | select, 83 | input, 84 | div.next, 85 | form.pageSwitcherForm > input[type="submit"] { 86 | font-family: " + $SS.formatFont($SS.conf["Font Family"]) + "; 87 | font-size: " + $SS.conf["Font Size"] + "px !important; 88 | } 89 | #full-board-list a, 90 | #custom-board-list, 91 | a.qr-link { 92 | font-family: " + $SS.formatFont($SS.conf["Font Family"]) + " !important; 93 | font-size: " + $SS.conf["Font Size"] + "px !important; 94 | } 95 | #qr .field::-moz-placeholder, 96 | ::-moz-placeholder { 97 | font-family: " + $SS.formatFont($SS.conf["Font Family"]) + " !important; 98 | font-size: " + $SS.conf["Font Size"] + "px !important; 99 | } 100 | #qr .field::webkit-input-placeholder, 101 | ::webkit-input-placeholder { 102 | font-family: " + $SS.formatFont($SS.conf["Font Family"]) + " !important; 103 | font-size: " + $SS.conf["Font Size"] + "px !important; 104 | } 105 | .backlink { 106 | font-size: " + $SS.conf["Backlink Font Size"] + "px !important; 107 | } 108 | :root.info-on-hover .postNum { 109 | font-size: 0 !important; 110 | } 111 | :root.info-on-hover .postContainer:hover .postNum { 112 | font-size: " + $SS.conf["Font Size"] + "px !important; 113 | } 114 | #qr-file-button, 115 | #qr input[type=submit], 116 | #qr label, 117 | .captcha-counter { 118 | font-size: " + (($SS.conf["Font Size"] < 11) ? 8 : 10) + "px !important; 119 | } 120 | #qr-file-button, 121 | #qr input[type="submit"], 122 | #qr label, 123 | .captcha-counter { 124 | text-transform: uppercase; 125 | } 126 | #qr label:not(.riceCheck) { 127 | overflow: hidden; 128 | padding-bottom: 2px; 129 | } 130 | 131 | /* Text decoration */ 132 | 133 | :root.underline-disabled a { 134 | text-decoration: none !important; 135 | } 136 | .navLinks.navLinksBot.desktop a { 137 | text-decoration: underline; 138 | } 139 | :root.underline-disabled .filtered { 140 | text-decoration: line-through !important; 141 | } 142 | .deadlink.quotelink { 143 | text-decoration: none !important; 144 | } 145 | :root.underline-quotes .deadlink.quotelink, 146 | :root.underline-quotes .quotelink, 147 | :root.underline-quotes .deadlink.backlink, 148 | :root.underline-quotes .backlink { 149 | text-decoration: underline !important; 150 | } 151 | a.options-button, 152 | #oneechan-version a { 153 | text-decoration: none !important; 154 | } 155 | .closed { 156 | text-align: center; 157 | } 158 | 159 | /* Font weight */ 160 | 161 | .name, 162 | .subject, 163 | .option.header .option-title, 164 | a.current { 165 | font-weight: " + ($SS.conf["Bitmap Font"] ? 4 : 7) + "00 !important; 166 | } 167 | .qr-link { 168 | font-weight: normal; 169 | } 170 | 171 | /* Font Style */ 172 | 173 | .summary { 174 | font-style: " + ($SS.conf["Bitmap Font"] ? 'none' : 'italic') + "; 175 | } 176 | -------------------------------------------------------------------------------- /src/css/General.css: -------------------------------------------------------------------------------- 1 | /* Side Margins */ 2 | body { 3 | margin-left: " + $SS.conf["Margin Left"] + "px; 4 | margin-right: " + $SS.conf["Margin Right"] + "px; 5 | margin-top: 0; 6 | margin-bottom: 0; 7 | } 8 | /* Fix margin top when fixed top header */ 9 | :root.show-ads .ad-cnt { 10 | margin-top: auto !important; 11 | } 12 | /* Replies */ 13 | .postInfo { 14 | padding: 5px 13px; 15 | display: block !important; 16 | } 17 | .summary { 18 | margin-left: 2px; 19 | } 20 | .expanded-image { 21 | position: relative; 22 | } 23 | div.post { 24 | margin: 4px 0; 25 | } 26 | :root.force-indent .op { 27 | margin-left: -12px; 28 | } 29 | :root.force-wrapping .op::after { 30 | clear: both; 31 | content: ''; 32 | display: block; 33 | } 34 | :root.op-background .postContainer.opContainer { 35 | margin-top: 5px; 36 | } 37 | .thread>.replyContainer, 38 | .threadContainer>.replyContainer { 39 | margin-bottom:" + $SS.conf["Margin Between Replies"] + "px !important; 40 | } 41 | .inline { 42 | margin-left: 13px !important; 43 | } 44 | .postMessage > .inline { 45 | margin-left: 0 !important; 46 | } 47 | .inline .op>.postInfo, 48 | #qp .op>.postInfo { 49 | min-width: 600px; 50 | } 51 | .postMessage { 52 | margin: " + $SS.conf["Margin Post Message"] + " !important; 53 | } 54 | /* Fit Width option */ 55 | :root.reply-fit-width .reply.post { 56 | display: block !important; 57 | } 58 | :root.reply-fit-width .stub ~ .reply.post { 59 | display: none !important; 60 | } 61 | .hasInline .inline>.replyContainer:not(.expanded-image):not(.hasInline) .reply.post, 62 | :root.reply-fit-width .post.reply { 63 | overflow: hidden !important; 64 | } 65 | :root.reply-fit-width .expanded-image>.post::after, 66 | :root.reply-fit-width .hasInline>.reply.post::after { 67 | clear: both !important; 68 | content: '' !important; 69 | display: block !important; 70 | } 71 | .threadContainer .hide-reply-button { 72 | margin-left: -12px !important; 73 | } 74 | .stub { 75 | padding: 2px; 76 | } 77 | .stub > a.show-thread-button { 78 | margin-right: 4px; 79 | } 80 | :root.reply-hide .thread>.expanded-image>.reply, 81 | :root.reply-hide .thread>.hasInline>.reply { 82 | margin-left: 12px !important; 83 | } 84 | /* Quote Threading */ 85 | .threadContainer { 86 | margin-left: 0 !important; 87 | padding-left: 20px!important; 88 | } 89 | :root.reply-hide .thread>.threadContainer { 90 | margin-left: 13px !important; 91 | } 92 | /* Style Post Info option */ 93 | :root.post-info .reply>.postInfo { 94 | box-shadow: inset rgba(0,0,0,.05) 0 -1px 2px; 95 | padding-top: 2px !important; 96 | } 97 | /* Backlinks */ 98 | :root.backlink-bottom .post { 99 | position: relative; 100 | padding-bottom: 2px; 101 | } 102 | :root.backlink-bottom .container { 103 | position:absolute; 104 | bottom:2px; 105 | right:6px; 106 | } 107 | /* Menu button */ 108 | .reply .menu-button i { 109 | position: relative; 110 | bottom: 1px; 111 | } 112 | :root.reply-fit-width .reply .container { 113 | padding-right: 5px; 114 | } 115 | .menu-button + .container:not(:empty) { 116 | margin-left: 4px !important; 117 | } 118 | :root:not(.catalog-mode).reply-fit-width .post .menu-button { 119 | float: right; 120 | margin-left: 0; 121 | position: relative; 122 | left: 5px; 123 | } 124 | :root.reply-fit-width .post .menu-button { 125 | opacity: 0; 126 | } 127 | :root.reply-fit-width .post:not(:hover) .menu-button { 128 | transition: opacity .3s ease-out 0s !important; 129 | } 130 | :root.reply-fit-width .post:hover .menu-button { 131 | opacity: 1; 132 | transition: opacity .3s ease-in .1s !important; 133 | } 134 | /* Code Tags */ 135 | .prettyprint { 136 | padding: 5px !important; 137 | display: inline-block; 138 | max-height: 400px; 139 | overflow-x: auto; 140 | max-width: 100%; 141 | vertical-align:middle; 142 | } 143 | /* Checkboxes */ 144 | input[type=checkbox], 145 | input[type=button], 146 | input[type=submit], 147 | .riceCheck { 148 | cursor: pointer; 149 | } 150 | input[type=checkbox], 151 | .riceCheck { 152 | display: inline-block; 153 | height: 10px !important; 154 | position: relative; 155 | width: 10px !important; 156 | border-radius: 2px !important; 157 | -webkit-appearance: none; 158 | -moz-appearance: none; 159 | margin: 1px; 160 | } 161 | input[type=checkbox] { 162 | display: none !important; 163 | } 164 | .riceCheck { 165 | margin: 0 2px -1px 0; 166 | } 167 | input[type=checkbox]:checked::before, 168 | input[type=checkbox]:checked+.riceCheck::before { 169 | content: ''; 170 | display: block; 171 | height: 8px; 172 | margin: 1px; 173 | width: 8px; 174 | } 175 | input[type=checkbox]:checked::before, 176 | input[type=checkbox]:checked+.riceCheck::before { 177 | background: " + $SS.theme.checkMark.get() + " !important; 178 | } 179 | /* Header */ 180 | #header-bar { 181 | padding: 4px 4px 5px !important; 182 | } 183 | /* Reposition things based on Header position */ 184 | :root:not(.fixed) #header-bar { 185 | top: 0; 186 | right: 0; 187 | left: 0; 188 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); 189 | border-bottom: 1px solid; 190 | } 191 | :root.autohide body { 192 | padding-top: 0 !important; 193 | padding-bottom: 0 !important; 194 | } 195 | :root:not(.fixed).right-sidebar #header-bar { 196 | right: 300px; 197 | } 198 | :root:not(.fixed).left-sidebar #header-bar { 199 | left: 300px; 200 | } 201 | :root:not(.fixed) .boardBanner { 202 | top: 0; 203 | } 204 | .center { 205 | margin: 5px !important; 206 | } 207 | #full-board-list>a, 208 | .navSmall>a { 209 | margin-left: 2px; 210 | } 211 | :root.fixed:not(.autohide):not(.bottom) #globalMessage { 212 | margin-top: 10px !important; 213 | margin-bottom: 20px !important; 214 | } 215 | .globalMessage, h2, h3 { 216 | margin: auto; 217 | }#custom-board-list, 218 | #full-board-list, 219 | .shortcut { 220 | vertical-align: baseline !important; 221 | } 222 | /* Thread Watcher */ 223 | :root.fixed-watcher #thread-watcher { 224 | position: fixed !important; 225 | } 226 | /* QR link */ 227 | .qr-link { 228 | border-radius: 3px; 229 | vertical-align: middle; 230 | padding: 7px 12px 6px; 231 | } 232 | /* HRs */ 233 | hr { 234 | height: 2px; 235 | width: 600px; 236 | border: none !important; 237 | } 238 | :root.reply-fit-width #unread-line { 239 | margin: auto; 240 | width: 100%; 241 | } 242 | #unread-line { 243 | margin-top: -3px !important; 244 | margin-bottom: -3px !important; 245 | } 246 | /* Scroll Marker */ 247 | :root:not(.autohide) #scroll-marker { 248 | pointer-events: none !important; 249 | } 250 | /* Board Title */ 251 | .boardBanner .boardTitle { 252 | cursor:default; 253 | letter-spacing:-2px; 254 | } 255 | /* Banner */ 256 | #bannerCnt { 257 | border: 0 !important; 258 | } 259 | :root.banner-opacity #bannerCnt { 260 | opacity: .5; 261 | transition: opacity .3s ease-out 0s; 262 | } 263 | :root.banner-opacity #bannerCnt:hover { 264 | opacity: 1.0 !important; 265 | transition: opacity .3s ease-in 0s; 266 | } 267 | /* Pages */ 268 | .pages strong>a { 269 | border-radius: 3px; 270 | } 271 | .pages strong>a:hover { 272 | opacity: .7 !important; 273 | transition: opacity .3s ease-in 0s; 274 | } 275 | .pagelist { 276 | margin-left: 18px; 277 | margin-bottom: 15px; 278 | } 279 | :root.reply-fit-width .pagelist { 280 | margin-left: 0; 281 | } 282 | .pages a { 283 | padding: 5px 10px; 284 | margin-left: -1px; 285 | } 286 | .next, 287 | .prev { 288 | border: none !important; 289 | position: relative; 290 | } 291 | .next a, 292 | .prev a { 293 | position: relative; 294 | right: 5px; 295 | } 296 | .prev a::after { 297 | content: '<'; 298 | position: inherit; 299 | top: 4px; 300 | left: 1px; 301 | } 302 | .next a::after { 303 | content: '>'; 304 | position: inherit; 305 | top: 4px; 306 | right: 2px; 307 | } 308 | .pagelist button, 309 | .pagelist button:hover { 310 | background: none !important; 311 | border: none !important; 312 | box-shadow: none !important; 313 | height: 20px; 314 | width: 20px; 315 | } 316 | .pagelist span { 317 | opacity: .2; 318 | } 319 | /* /f/ */ 320 | table.flashListing { 321 | margin-top: 20px; 322 | margin-bottom: 20px; 323 | } 324 | table.flashListing .highlightPost { 325 | background: rgb\(" + $SS.theme.mainColor.shiftRGB(-25) + ") !important; 326 | } 327 | .flashListing td { 328 | padding-left: 4px !important; 329 | padding-right: 4px !important; 330 | text-align: center !important; 331 | } 332 | #delform[action='https://sys.4chan.org/f/up.php'], 333 | #delform[action='https://sys.4chan.org/f/up.php'] .postblock { 334 | background: none !important; 335 | border: none !important; 336 | box-shadow: none !important; 337 | } 338 | /* Ads */ 339 | :root.ad-opacity .center img { 340 | opacity: .5; 341 | transition: opacity .3s ease-out 0s; 342 | } 343 | :root.ad-opacity .center img:hover { 344 | opacity: 1.0 !important; 345 | transition: opacity .3s ease-in 0s; 346 | } 347 | /* Navlinks */ 348 | body.is_index div.navLinks { 349 | padding: 5px 0; 350 | } 351 | .navLinks.navLinksBot.desktop { 352 | margin-bottom: 5px; 353 | } 354 | #hoverUI { 355 | z-index: 12 !important; 356 | } 357 | #search-box, 358 | #index-search { 359 | width: 9%; 360 | transition: color .25s, border-color .25s, width .25s; 361 | } 362 | #search-box:focus, 363 | #index-search:focus { 364 | width: 12%; 365 | transition: color .25s, border-color .25s, width .25s; 366 | } 367 | /* Thumb Opacity */ 368 | :root.thumb-opacity .fileThumb { 369 | opacity: .5; 370 | transition: opacity .3s ease-out 0s; 371 | } 372 | :root.thumb-opacity .fileThumb:hover { 373 | opacity: 1.0; 374 | transition: opacity .3s ease-in 0s; 375 | } 376 | /* Selection Lists */ 377 | select { 378 | -moz-appearance: none; 379 | -webkit-appearance: none; 380 | } 381 | /* See issue #90 */ 382 | #delform { 383 | overflow-wrap: break-word; 384 | word-break: break-word; 385 | margin-bottom: 15px; /* unrelated to issue #90 */ 386 | } 387 | -------------------------------------------------------------------------------- /src/css/Highlight.css: -------------------------------------------------------------------------------- 1 | /* Highlight all posts */ 2 | :root.hl-border .post.reply, 3 | :root.op-background.hl-border .postContainer.opContainer { 4 | border-left: " + $SS.conf["Width Decoration"] + "px " + $SS.conf["Post Highlight Style"] + " rgba(" + $SS.theme.postHLColor.rgb + ",1.0) !important; 5 | } 6 | :root.hl-border-down .post.reply, 7 | :root.op-background.hl-border-down .postContainer.opContainer { 8 | border-bottom: " + $SS.conf["Width Decoration"] + "px " + $SS.conf["Post Highlight Style"] + " rgba(" + $SS.theme.postHLColor.rgb + ",1.0) !important; 9 | } 10 | :root.hl-outline .post.reply, 11 | :root.op-background.hl-outline .postContainer.opContainer { 12 | outline: " + $SS.conf["Width Decoration"] + "px " + $SS.conf["Post Highlight Style"] + " rgba(" + $SS.theme.postHLColor.rgb + ",1.0); 13 | } 14 | /* Filter Highlighting */ 15 | .filter-highlight .catalog-thumb { 16 | box-shadow: 0px 0px 3px 3px rgba(" + $SS.theme.postHLColor.rgb + ",0.5) !important; 17 | } 18 | .filter-highlight.opContainer, 19 | .filter-highlight > .reply { 20 | box-shadow: 5px 0px rgba(" + $SS.theme.postHLColor.rgb + ",0.5) inset !important; 21 | } 22 | .filter-highlight > div.sideArrows { 23 | color: rgba(" + $SS.theme.postHLColor.rgb + ",0.5) !important; 24 | } 25 | /* Outlines */ 26 | .qphl { 27 | outline: 2px solid rgba(" + $SS.theme.linkColor.rgb + ",0.5) !important; 28 | } 29 | /* Posts Quoting You */ 30 | :root.highlight-you .quotesYou.opContainer, 31 | :root.highlight-you .quotesYou > .reply { 32 | border-left: " + $SS.conf["Width Decoration"] + "px solid rgba(" + $SS.theme.quotesYouHLColor.rgb + ",1.0) !important; 33 | } 34 | :root.highlight-you .quotesYou > .sideArrows { 35 | color: rgba(" + $SS.theme.quotesYouHLColor.rgb + ",1.0) !important; 36 | } 37 | /* Your Posts */ 38 | :root.highlight-own .yourPost.opContainer, 39 | :root.highlight-own .yourPost > .reply { 40 | border-left: " + $SS.conf["Width Decoration"] + "px dashed rgba(" + $SS.theme.ownPostHLColor.rgb + ",1.0) !important; 41 | } 42 | :root.highlight-own .yourPost > .sideArrows { 43 | color: rgba(" + $SS.theme.ownPostHLColor.rgb + ",1.0) !important; 44 | } 45 | /* Highlighted Reply BG */ 46 | .reply:target { 47 | background: rgba(" + $SS.theme.replybgHLColor.rgb + ",0.8) !important; 48 | } 49 | /* Reply Selection (default keybind J/K) */ 50 | .highlight { 51 | outline: 2px solid rgba(" + $SS.theme.replyslctColor.rgb + ",1.0) !important; 52 | } 53 | /* Highlighted Threads */ 54 | .catalog-thread.watched .catalog-thumb, 55 | .catalog-thread.watched .werkTyme-filename { 56 | border: 2px solid rgba(" + $SS.theme.postHLColor.rgb + ",1.0) !important; 57 | } 58 | /* Thread Watcher */ 59 | .replies-quoting-you > .watcher-link { 60 | color: rgba(" + $SS.theme.quotesYouHLColor.rgb + ",1.0) !important; 61 | } 62 | .replies-quoting-you > .watcher-link:hover { 63 | color: " + $SS.theme.linkHColor.hex + " !important; 64 | } 65 | #watched-threads > .replies-quoting-you > a { 66 | color: rgba(" + $SS.theme.quotesYouHLColor.rgb + ",1.0) !important; 67 | } 68 | #shortcuts > .shortcut > #watcher-link.disabled.replies-quoting-you { 69 | color: rgba(" + $SS.theme.quotesYouHLColor.rgb + ",.45) !important; 70 | } 71 | #watched-threads > .replies-quoting-you > a:hover, 72 | #shortcuts > .shortcut > #watcher-link.disabled.replies-quoting-you:hover { 73 | color: " + $SS.theme.linkHColor.hex + " !important; 74 | } 75 | /* Highlight (OP) and (You) */ 76 | :root.highlight-opQuotes .qmark-op { 77 | color: rgba(" + $SS.theme.postHLColor.rgb + ",1.0); 78 | font-weight: bold; 79 | } 80 | :root.highlight-youQuotes .qmark-you { 81 | color: rgba(" + $SS.theme.quotesYouHLColor.rgb + ",1.0); 82 | font-weight: bold; 83 | } 84 | -------------------------------------------------------------------------------- /src/css/Icons.css: -------------------------------------------------------------------------------- 1 | .closeIcon { 2 | background-image: none !important; 3 | } 4 | .closeIcon::after { 5 | content: 'x'; 6 | } 7 | /* Thread watcher favicon */ 8 | .watch-thread-link { 9 | margin-bottom: -7px; 10 | margin-right: 2px; 11 | top: auto !important; 12 | bottom: 4px !important; 13 | background-image: url(\"data:image/svg+xml," + $SS.theme.icons.star + "\") !important; 14 | } 15 | /* Backlinks */ 16 | :root.backlink-icon .backlink { 17 | background-image: url(\"data:image/svg+xml," + $SS.theme.icons.backlink + "\") !important; 18 | font-size: 0 !important; 19 | padding: " + (($SS.conf["Font Size"] < 12) ? 5 : 6) + "px !important; 20 | margin-right: 0 !important; 21 | opacity: 0.6 !important; 22 | position: relative; 23 | bottom: 5px; 24 | left: 2px; 25 | } 26 | :root.backlink-icon .backlink.inlined { 27 | background-image: url(\"data:image/svg+xml," + $SS.theme.icons.downArrow + "\") !important; 28 | font-size: 0 !important; 29 | padding: 6px !important; 30 | margin-right: 0 !important; 31 | opacity: 0.6 !important; 32 | position: relative; 33 | bottom: 5px; 34 | left: 3px; 35 | } 36 | :root.backlink-icon .reply .backlink { 37 | bottom: " + (($SS.conf["Font Size"] < 12) ? 4 : 6) + "px !important; 38 | } 39 | :root.backlink-icon .backlink:hover, 40 | :root.backlink-icon .backlink.inlined:hover { 41 | opacity: 1 !important; 42 | } 43 | /* From 4chanSS */ 44 | img[title=Closed], 45 | img[title=Sticky], 46 | img[title=Archived] { 47 | color: transparent !important; 48 | font-size: 0 !important; 49 | background-color: transparent !important; 50 | background-position: center !important; 51 | background-repeat: no-repeat; 52 | display: inline-block; 53 | height: 0 !important; 54 | padding-top: 16px !important; 55 | text-indent: -9999px !important; 56 | vertical-align: bottom; 57 | width: 16px !important; 58 | } 59 | /* Thread Closed */ 60 | .closedIcon { 61 | background-image:url(\"data:image/svg+xml," + $SS.theme.icons.threadClosed + "\")!important; 62 | } 63 | /* Thread Pinned */ 64 | .stickyIcon { 65 | background-image:url(\"data:image/svg+xml," + $SS.theme.icons.threadPinned + "\")!important; 66 | } 67 | /* Thread Archived */ 68 | .archivedIcon { 69 | background-image:url(\"data:image/svg+xml," + $SS.theme.icons.threadArchived + "\")!important; 70 | } 71 | /* ExLinks Icon */ 72 | .exlinksOptionsLink.entry { 73 | padding: 0 !important; 74 | min-width: 0 !important; 75 | } 76 | :root.left-sidebar .exlinksOptionsLink.entry { 77 | left: 2px !important; 78 | } 79 | :root.right-sidebar .exlinksOptionsLink.entry { 80 | right: 2px !important; 81 | } 82 | -------------------------------------------------------------------------------- /src/css/Options.css: -------------------------------------------------------------------------------- 1 | /* Dialogs */ 2 | #add-theme, 3 | #oneechan-options { 4 | border:0!important; 5 | border-radius:3px!important; 6 | position: fixed; 7 | margin: auto; 8 | } 9 | #oneechan-options { 10 | width: 690px; 11 | text-align:left!important; 12 | height: 532px; 13 | top: 0; 14 | bottom: 0; 15 | left: 0; 16 | right: 0; 17 | box-shadow: rgba(0,0,0,.6) 0 0 10px !important; 18 | padding: 5px; 19 | } 20 | .options-close, 21 | #options-container:not(.yui-skin-sam) { 22 | padding: 3px; 23 | } 24 | #options-container:not(.yui-skin-sam) { 25 | box-shadow: inset rgba(0,0,0,.3) 0 0 5px; 26 | } 27 | .options-close { 28 | text-align: right !important; 29 | margin-right: auto; 30 | margin-left: auto; 31 | } 32 | #add-theme { 33 | padding: 20px 20px 20px 20px !important; 34 | top: 0; 35 | left: 0; 36 | right: 0; 37 | bottom: 0; 38 | height: 445px; 39 | } 40 | :root.ua-webkit #add-theme { 41 | height: 403px !important; 42 | } 43 | #add-theme .option-title { 44 | float:left; 45 | line-height:22px; 46 | padding-left:5px; 47 | } 48 | #add-theme>label { 49 | line-height:22px; 50 | } 51 | /* Main */ 52 | #options-container:not(.yui-skin-sam) { 53 | border-radius:5px; 54 | } 55 | #options-container:not(.yui-skin-sam), 56 | .options-section { 57 | height:500px; 58 | } 59 | .options-section { 60 | overflow-y:auto; 61 | overflow-x:hidden; 62 | } 63 | #main-section .option { 64 | display:block; 65 | border-top:1px solid rgba(0,0,0,.1); 66 | height:22px; 67 | padding:0 6px; 68 | vertical-align:middle; 69 | } 70 | #main-section>.option:nth-of-type(even) { 71 | background: rgb\(" + $SS.theme.mainColor.shiftRGB(-5) + ") !important; 72 | } 73 | #main-section .buttons-container+.option { 74 | border-top: none !important; 75 | } 76 | .option-title { 77 | line-height:20px!important; 78 | } 79 | #main-section .option:first-child { 80 | border-top:0!important; 81 | } 82 | #main-section .option:last-child { 83 | border-bottom:0!important; 84 | } 85 | #main-section input, #main-section select { 86 | float: right !important; 87 | } 88 | #main-section input[type=checkbox], 89 | #main-section .riceCheck { 90 | float: left !important; 91 | margin-right: 5px !important; 92 | } 93 | select[name='Font Family']>option { 94 | max-width:150px; 95 | overflow:hidden; 96 | white-space:nowrap; 97 | text-overflow:ellipsis; 98 | } 99 | .suboption::before { 100 | border-bottom:1px solid rgba(0,0,0,.1); 101 | border-left:1px solid rgba(0,0,0,.1); 102 | content:''; 103 | display:inline-block; 104 | float:left; 105 | margin-right:2px; 106 | height:50%; 107 | width:6px; 108 | } 109 | .suboption { 110 | padding-left:16px !important; 111 | } 112 | .option.header { 113 | cursor: auto !important; 114 | } 115 | /* Themes */ 116 | .theme-preview { 117 | cursor: default; 118 | } 119 | .theme-preview blockquote { 120 | margin: 12px 40px !important; 121 | } 122 | #themes-section .reply { 123 | padding: 2px!important; 124 | position:relative; 125 | text-align:left; 126 | width:99.4%; 127 | border-radius: 0 !important; 128 | } 129 | .theme-buttons-container { 130 | bottom:4px; 131 | right:2px; 132 | margin:0; 133 | opacity:0; 134 | position:absolute; 135 | z-index:3; 136 | } 137 | .theme-preview:hover .theme-buttons-container { 138 | opacity:1; 139 | } 140 | .theme-buttons-container>a { 141 | display:inline-block; 142 | margin:0 2px; 143 | padding:2px 5px; 144 | text-align:center; 145 | width:50px; 146 | border-radius:3px; 147 | } 148 | /* SFW & NSFW Labels */ 149 | .theme-preview .sfw-label { 150 | bottom:-5px; 151 | font-size:32px!important; 152 | margin:0!important; 153 | opacity:0; 154 | position:absolute; 155 | right:300px; 156 | 157 | } 158 | .theme-preview.selected:not(.nsfw) .sfw-label, 159 | .theme-preview.nsfw:not(.selected) .sfw-label, 160 | .theme-preview.nsfw.selected .both { 161 | transition:opacity .3s, right .3s; 162 | } 163 | .theme-preview.nsfw .notsafe { 164 | opacity:1; 165 | right:3px; 166 | z-index:1; 167 | } 168 | .theme-preview.selected .safe { 169 | opacity:1; 170 | right:3px; 171 | z-index:1; 172 | } 173 | .theme-preview.selected.nsfw .sfw-label:not(.both) { 174 | opacity:0 !important; 175 | right:300px !important; 176 | z-index:0 !important; 177 | } 178 | .theme-preview.selected.nsfw .both { 179 | opacity:1; 180 | right:3px; 181 | z-index:1; 182 | } 183 | /* Add Theme */ 184 | #add-theme { 185 | text-align:left!important; 186 | width:800px!important; 187 | } 188 | #add-theme>label { 189 | display:inline-block; 190 | text-align:right; 191 | width:33.3%; 192 | } 193 | #add-theme>label#customCSS { 194 | width:100%; 195 | } 196 | #add-theme>label#customCSS>textarea { 197 | height: 9.5em; 198 | resize: vertical; 199 | width: 99%; 200 | max-height: 25em; 201 | } 202 | #add-theme>label>input[type=text], 203 | #add-theme>label>select { 204 | width:100px; 205 | } 206 | #add-theme>div { 207 | margin-top:.6em; 208 | text-align:right; 209 | } 210 | /* Navigation */ 211 | #options-tabs { 212 | list-style:none; 213 | margin:0; 214 | padding:0; 215 | position:absolute; 216 | top:-24px; 217 | left: -1px; 218 | } 219 | .tab-item { 220 | float:left; 221 | margin:0; 222 | padding:0; 223 | } 224 | .tab-label { 225 | display:block; 226 | height:16px; 227 | margin:0 1px; 228 | padding: 5px; 229 | text-align:center; 230 | width:75px; 231 | border-radius:3px 3px 0 0; 232 | transition: all .1s ease-in-out; 233 | } 234 | .tab-label:not(.selected):not(:hover) { 235 | opacity: 0.8; 236 | } 237 | /* Overlays */ 238 | #overlay { 239 | z-index: 99 !important; 240 | background-color:rgba(0,0,0,.3) !important; 241 | } 242 | #overlay2 { 243 | background:rgba(0,0,0,.1) !important; 244 | position:fixed; 245 | top:0; 246 | left:0; 247 | height:100%; 248 | width:100%; 249 | text-align:center; 250 | z-index:125!important; 251 | } 252 | #overlay2::before { 253 | content:''; 254 | display:inline-block; 255 | height:100%; 256 | vertical-align:middle; 257 | } 258 | #overlay.previewing { 259 | display: none; 260 | } 261 | #overlay.previewing ~ #overlay2 { 262 | background-color: rgba(0, 0, 0, 0.1) !important; 263 | } 264 | /* Buttons */ 265 | .buttons-container { 266 | bottom:3px; 267 | left:5px; 268 | position:absolute; 269 | } 270 | .buttons-container { 271 | margin:0; 272 | } 273 | .options-button { 274 | display:inline-block; 275 | line-height:18px; 276 | margin:0 2px; 277 | min-width:40px; 278 | padding:2px 10px; 279 | text-align:center; 280 | cursor: pointer; 281 | border-radius:3px; 282 | } 283 | .options-button-small { 284 | padding:2px 5px; 285 | min-width:30px; 286 | } 287 | #import-link { 288 | line-height:22px; 289 | overflow:hidden; 290 | position:relative; 291 | float:left; 292 | height:24px!important; 293 | margin-top:-2px; 294 | padding-top:2px; 295 | } 296 | #import-settings { 297 | position: relative; 298 | overflow:hidden; 299 | vertical-align: bottom; 300 | } 301 | #import-settings>.import-input { 302 | left: 0; 303 | } 304 | .import-input { 305 | position:absolute; 306 | opacity: 0; 307 | cursor: pointer; 308 | } 309 | /* Inputs */ 310 | label.option>input[type=checkbox], 311 | label.option>.riceCheck { 312 | margin: 4px 2px 0 !important; 313 | vertical-align: bottom !important; 314 | } 315 | span.option>select, 316 | .option>input[type=text] { 317 | width:125px; 318 | } 319 | #oneechan-options input[type=text], 320 | #oneechan-options select { 321 | max-height: 20px; 322 | margin-top: 1px !important; 323 | padding: 0px 3px !important; 324 | } 325 | #oneechan-options textarea { 326 | background:transparent!important; 327 | border: 0 !important; 328 | height: 100% !important; 329 | width: 100% !important; 330 | resize: none; 331 | } 332 | /* Links */ 333 | #oneechan-version { 334 | opacity: .5; 335 | padding-right: 5px; 336 | padding-left: 40px; 337 | font-size: x-small; 338 | } 339 | .link-delim { 340 | opacity: .4; 341 | } 342 | -------------------------------------------------------------------------------- /src/css/Original.css: -------------------------------------------------------------------------------- 1 | /* Some original Yotsuba CSS */ 2 | #logo { 3 | background: url(https://i.imgur.com/DG9V9sI.png) !important; 4 | } 5 | .party-hat { 6 | left: 0; 7 | margin-top: -80px; 8 | position: absolute; 9 | pointer-events: none; 10 | } 11 | /* 4chan Pass Signature */ 12 | 13 | .pu-img { 14 | vertical-align: middle; 15 | margin-top: -3px; 16 | margin-right: 3px; 17 | display: inline-block; 18 | width: 16px; 19 | height: 16px; 20 | background: url('//s.4cdn.org/image/minileaf.gif'); 21 | } 22 | .pu-lbl { 23 | color: " + $SS.theme.titleColor.hex + " !important; 24 | font-weight: bold; 25 | font-size: 12px; 26 | } 27 | .n-pu { 28 | vertical-align: middle; 29 | display: inline-block; 30 | width: 16px; 31 | height: 16px; 32 | margin-top: -2px; 33 | background: url('//s.4cdn.org/image/minileaf.gif'); 34 | } 35 | 36 | /* End */ 37 | 38 | .sjis { 39 | font-size: 16px; 40 | line-height: 17px; 41 | white-space: pre; 42 | font-family: 'IPAMonaPGothic', 'Mona', 'MS PGothic', monospace; 43 | overflow: auto; 44 | display: block; 45 | clear: left; 46 | } 47 | .mu-s { 48 | font-weight: bold; 49 | } 50 | .mu-i { 51 | font-style: italic; 52 | } 53 | .mu-r { 54 | color: #c41e3a; 55 | } 56 | .mu-g { 57 | color: #00a550; 58 | } 59 | .mu-b { 60 | color: #1d8dc4; 61 | } 62 | div.post div.file .fileThumb { 63 | float: left; 64 | margin-left: 13px; 65 | margin-right: 20px; 66 | margin-bottom: 10px; 67 | } 68 | div.op.post div.file .fileThumb { 69 | margin-bottom: 0; 70 | } 71 | .fileText { 72 | margin-left: 13px !important; 73 | margin-bottom: 2px !important; 74 | } 75 | .postContainer { 76 | display: block; 77 | } 78 | 79 | /* Padding according to header position */ 80 | 81 | .fixed.bottom-header.is_thread body { 82 | padding-bottom: 0em; 83 | padding-top: 0.5em; 84 | } 85 | .fixed.bottom-header.is_index body { 86 | padding-bottom: 4.5em; 87 | padding-top: 0.5em; 88 | } 89 | .fixed.bottom-header.is_catalog body, 90 | .fixed.bottom-header.catalog-mode body { 91 | padding-bottom: 3em; 92 | padding-top: 0.5em; 93 | } 94 | .fixed.bottom-header body { 95 | padding-top: 0.5em; 96 | } 97 | :root.is_index.bottom-header:not(.autohide) body { 98 | padding-bottom: 5em !important; 99 | } 100 | .fixed.top-header.is_index body { 101 | padding-bottom: 2.5em; 102 | padding-top: " + (($SS.conf["Font Size"] <= 11) ? 3.2 : 3) + "em !important; 103 | } 104 | .fixed.top-header.is_thread body { 105 | padding-bottom: 0em; 106 | padding-top: " + (($SS.conf["Font Size"] <= 11) ? 3.2 : 3) + "em !important; 107 | } 108 | .fixed.top-header.is_catalog body, 109 | .fixed.top-header.catalog-mode body { 110 | padding-bottom: 0.5em; 111 | padding-top: " + (($SS.conf["Font Size"] <= 11) ? 3.2 : 3) + "em !important; 112 | } 113 | .fixed.top-header.autohide body { 114 | padding-top: 2em !important; 115 | } 116 | .fixed.top-header body { 117 | padding-top: 3em !important; 118 | } 119 | div.post { 120 | margin: 4px 0; 121 | overflow: hidden; 122 | } 123 | :root:not(.reply-fit-width) #delform div.reply:not([hidden]) { 124 | display: table !important; 125 | } 126 | :root:not(.reply-fit-width) #delform .stub ~ div.reply:not([hidden]) { 127 | display: none !important; 128 | } 129 | table.flashListing { 130 | border-spacing: 1px; 131 | margin-left: auto; 132 | margin-right: auto; 133 | } 134 | div.pagelist div.pages { 135 | padding: 4px; 136 | } 137 | div.pagelist, 138 | div.pagelist>div { 139 | float: left; 140 | } 141 | div.pagelist>div span { 142 | padding: 4px; 143 | display: inline-block; 144 | } 145 | .page-num { 146 | margin-right: auto !important; 147 | } 148 | s { 149 | text-decoration: none !important; 150 | } 151 | span.spoiler, 152 | s, 153 | s:not(:hover) > a, 154 | s:not(:hover) > .linkify { 155 | color: rgb(0, 0, 0) !important; 156 | background: none repeat scroll 0 0 rgb(0, 0, 0) !important; 157 | } 158 | span.spoiler:hover, 159 | s:hover, 160 | span.spoiler:focus, 161 | s:focus { 162 | color: rgb(255, 255, 255) !important; 163 | } 164 | #globalMessage, 165 | .boardBanner { 166 | text-align: center; 167 | } 168 | div.sideArrows { 169 | float: left; 170 | margin-right: 2px; 171 | margin-top: 0; 172 | margin-left: 2px; 173 | opacity: 0.3; 174 | } 175 | hr, 176 | #boardNavDesktopFoot { 177 | clear: both; 178 | } 179 | table { 180 | border-spacing: 1px; 181 | margin-left: auto; 182 | margin-right: auto; 183 | } 184 | .center { 185 | text-align: center !important; 186 | } 187 | .middlead, 188 | .topad { 189 | margin-bottom: 20px !important; 190 | } 191 | #qf-box { 192 | width: 120px; 193 | } 194 | span.hide-announcement { 195 | margin-left: 3px; 196 | vertical-align: sub; 197 | } 198 | 199 | /* Bottom Controls */ 200 | 201 | .bottomCtrl.desktop { 202 | float: right; 203 | } 204 | .fixed.bottom-header.is_index .bottomCtrl.desktop, 205 | .fixed.bottom-header.is_thread .bottomCtrl.desktop { 206 | float: right; 207 | margin-bottom: 35px; 208 | } 209 | .fixed.top-header.is_thread .bottomCtrl.desktop, 210 | .fixed.top-header.is_index .bottomCtrl.desktop { 211 | float: right; 212 | margin-bottom: 8px; 213 | } 214 | 215 | /* Other */ 216 | 217 | #navlinks { 218 | top: 135px; 219 | right: 10px; 220 | } 221 | :root.isLight img[src*='//boards.4chan.org/js/jsMath/fonts/'] { 222 | filter: invert(100%); 223 | -webkit-filter: invert(100%); 224 | } 225 | 226 | /* Accommodate Oneechan icon in header */ 227 | 228 | .centered-links:root #shortcuts { 229 | width: 350px !important; 230 | } 231 | 232 | /* Blotter */ 233 | 234 | #blotter { 235 | margin-bottom: 15px; 236 | font-size: 11px; 237 | width: auto; 238 | } 239 | -------------------------------------------------------------------------------- /src/css/Quickreply.css: -------------------------------------------------------------------------------- 1 | /* Quick Reply */ 2 | #qr { 3 | box-shadow: none !important; 4 | border-radius: 0 !important; 5 | min-width: 297px !important; 6 | box-shadow: none !important; 7 | } 8 | #qr .close { 9 | padding: 2px 3px 2px 4px !important; 10 | } 11 | #qr .riceCheck, 12 | #qr input[type=checkbox] { 13 | margin: 0px 4px 1px!important; 14 | vertical-align: baseline; 15 | position: relative; 16 | top: 3px; 17 | } 18 | #qr-filename-container .riceCheck, 19 | #qr-filename-container input[type=checkbox] { 20 | margin: 0px 0px 1px!important; 21 | } 22 | #qr-file-button, 23 | #qr input[type='submit'] { 24 | height: 25px !important; 25 | margin: 0 !important; 26 | } 27 | #qr-file-button, 28 | #qr-filename-container { 29 | margin-right: 1px !important; 30 | } 31 | #qr-spoiler-label + input[type='submit'] { 32 | /* ccd0 prior to v1.10.3 */ 33 | margin-top: 1px !important; 34 | } 35 | #qr > form > select { 36 | margin: 1px 0px !important; 37 | } 38 | #qr select[data-name="thread"] { 39 | margin: 1px 0 1px 0; 40 | max-width: 133px; 41 | min-width: 80px; 42 | } 43 | #qr > form > div.persona > input:nth-child(4), 44 | #qr > form > div.persona > input:nth-child(5), 45 | #qr > form > div.persona > input:nth-child(6) { 46 | margin-left: 1px; 47 | } 48 | :root.expand-inputs .persona { 49 | display: flex; 50 | } 51 | :root.expand-inputs .persona .field { 52 | flex: 1; 53 | width: 0; 54 | } 55 | :root.expand-inputs .persona .field:hover, 56 | :root.expand-inputs .persona .field:focus { 57 | flex: 3; 58 | } 59 | #qr:not(.has-captcha) textarea { 60 | min-height: 190px !important; 61 | } 62 | :root.ua-webkit #qr:not(.has-captcha) textarea { 63 | min-height: 185px !important; 64 | } 65 | :root.ua-webkit #qr.has-captcha textarea.field { 66 | height: 8.6em; 67 | min-height: 0.6em !important; 68 | } 69 | :root.qr-background #qr { 70 | background: transparent !important; 71 | border: none; 72 | } 73 | :root.qr-opacity #qr { 74 | opacity: 0.9; 75 | } 76 | .textarea { 77 | margin-top: 1px; 78 | -webkit-margin-after: 1px; 79 | } 80 | :root.ua-gecko .textarea { 81 | margin-bottom: 1px; 82 | } 83 | .captcha-img { 84 | min-height: 58px !important; 85 | margin-bottom: 1px; 86 | } 87 | :root.force-qr #qr { 88 | max-width: 297px; 89 | } 90 | /* Vertical QR */ 91 | :root.vertical-qr #qr > div > label > div { 92 | display: none; 93 | } 94 | :root.vertical-qr #qr textarea { 95 | resize: vertical !important; 96 | } 97 | :root.vertical-qr #qr { 98 | min-width: 297px !important; 99 | top: auto !important; 100 | position: fixed; 101 | } 102 | :root.vertical-qr #qr .move { 103 | position: absolute; 104 | width: 105px; 105 | cursor: default; 106 | padding: 2px 0 2px 2px; 107 | text-align: center; 108 | bottom: 88px; 109 | } 110 | :root.vertical-qr #qr:hover .move { 111 | transition: opacity .42s linear; 112 | } 113 | :root.vertical-qr #qr:hover .move, 114 | :root.vertical-qr #qr.focus .move { 115 | opacity: 0 !important; 116 | } 117 | :root.vertical-qr.bottom-header #qr { 118 | bottom: 28px !important; 119 | } 120 | :root.vertical-qr.top-header #qr { 121 | bottom: 0 !important; 122 | } 123 | :root.vertical-qr .captcha-img, 124 | :root.vertical-qr .captcha-img img { 125 | max-width: 247px; 126 | } 127 | :root.vertical-qr #qr form { 128 | display: block !important; 129 | } 130 | :root.vertical-qr #qr .move #autohide, 131 | :root.vertical-qr #qr > div > select { 132 | display: none; 133 | } 134 | :root.vertical-qr #qr:hover, 135 | :root.vertical-qr #qr.focus { 136 | transform: translateX(0%) !important; 137 | } 138 | :root.vertical-qr #qr { 139 | transform: translateX(100%); 140 | transition: transform .3s ease-in-out .1s; 141 | } 142 | :root.vertical-qr #qr .move { 143 | transform: rotate(-90deg); 144 | right: 86%; 145 | } 146 | /* Fade QR */ 147 | :root.fade-qr #qr form { 148 | display: block !important; 149 | } 150 | :root.fade-qr #qr.autohide:not(.focus):not(:hover) { 151 | opacity: 0.2 !important; 152 | transition: opacity .2s ease-in-out 1s; 153 | } 154 | /* Oekaki */ 155 | input[type="number"] { 156 | -moz-appearance: textfield; 157 | } 158 | ::-webkit-inner-spin-button { 159 | -webkit-appearance: none; 160 | } 161 | ::-webkit-outer-spin-button { 162 | -webkit-appearance: none; 163 | } 164 | -------------------------------------------------------------------------------- /src/css/Sidebar.css: -------------------------------------------------------------------------------- 1 | /* Sidebar */ 2 | /* CSS here is only added if Sidebar Position is not 3 (Disabled) */ 3 | :root:not(.fixed) #header-bar { 4 | z-index: 10; 5 | } 6 | :root.left-sidebar body { 7 | padding-left: 303px; 8 | } 9 | :root.right-sidebar body { 10 | padding-right: 303px; 11 | } 12 | :root.left-sidebar:not(.mini-sidebar) .boardBanner, 13 | :root.right-sidebar:not(.mini-sidebar) .boardBanner { 14 | position: fixed; 15 | } 16 | :root.left-sidebar:not(.mini-sidebar) .boardBanner { 17 | left: 1px; 18 | } 19 | :root.right-sidebar:not(.mini-sidebar) .boardBanner { 20 | right: 1px; 21 | } 22 | :root.fixed:not(.autohide):not(.bottom) .boardBanner { 23 | margin-top: -6px; 24 | } 25 | :root.left-sidebar #qr { 26 | left: 0 !important; 27 | right: auto !important; 28 | } 29 | :root.right-sidebar #qr { 30 | right: 0 !important; 31 | left: auto !important; 32 | } 33 | .captcha-img, 34 | .captcha-img img { 35 | min-width: 100% !important; 36 | height: 56px !important; 37 | } 38 | /* Vertical QR */ 39 | :root.vertical-qr:root.left-sidebar #qr { 40 | transform: translateX(-100%); 41 | } 42 | :root.vertical-qr:root.left-sidebar #qr .move { 43 | transform: rotate(90deg); 44 | transform-origin: bottom right; 45 | left: 63.5%; 46 | bottom: 46px; 47 | } 48 | /* Minimal Sidebar */ 49 | :root.mini-sidebar:root.left-sidebar body { 50 | padding-left: 32px !important; 51 | } 52 | :root.mini-sidebar:root.right-sidebar body { 53 | padding-right: 32px !important; 54 | } 55 | :root.mini-sidebar .boardSubtitle { 56 | display: none; 57 | } 58 | :root.mini-sidebar:root.ss-sidebar body::before { 59 | width: 31px !important; 60 | } 61 | :root.mini-sidebar .boardTitle { 62 | top: 72px !important; 63 | width: inherit !important; 64 | letter-spacing: -1px; 65 | position: fixed; 66 | } 67 | :root.mini-sidebar:root.right-sidebar .boardTitle { 68 | right: 32px; 69 | -webkit-transform-origin: top right; 70 | transform-origin: top right; 71 | -webkit-transform: rotate(-90deg); 72 | -moz-transform: rotate(-90deg); 73 | } 74 | :root.mini-sidebar:root.left-sidebar .boardTitle { 75 | left: 32px; 76 | -webkit-transform-origin: top left; 77 | transform-origin: top left; 78 | -webkit-transform: rotate(90deg); 79 | -moz-transform: rotate(90deg); 80 | } 81 | -------------------------------------------------------------------------------- /src/img/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/src/img/icon128.png -------------------------------------------------------------------------------- /src/img/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/src/img/icon16.png -------------------------------------------------------------------------------- /src/img/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paradox460/StyleChan/654a92964259edd5a91f090c422c9943979afe96/src/img/icon48.png -------------------------------------------------------------------------------- /src/meta/botproc.js: -------------------------------------------------------------------------------- 1 | // Generated by Grunt -------------------------------------------------------------------------------- /src/meta/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "<%= meta.name %>", 3 | "version": "<%= version %>", 4 | "manifest_version": 2, 5 | "description": "<%= description %>", 6 | "icons": { 7 | "16": "icon16.png", 8 | "48": "icon48.png", 9 | "128": "icon128.png" 10 | }, 11 | "content_scripts": [{ 12 | "js": ["script.js"], 13 | "matches": <%= JSON.stringify(meta.matches) %>, 14 | "all_frames": true, 15 | "run_at": "document_start" 16 | }], 17 | "homepage_url": "<%= meta.page %>", 18 | "update_url": "<%= meta.downloads %>updates.xml", 19 | "minimum_chrome_version": "<%= meta.min.chrome %>", 20 | "permissions": [ 21 | "storage", 22 | "*://www.4chan.org/*", 23 | "*://boards.4chan.org/*" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /src/meta/metadata.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name <%= meta.name %> 3 | // @version <%= version %> 4 | // @namespace <%= name %> 5 | // @description <%= description %> 6 | // @minGMVer <%= meta.min.greasemonkey %> 7 | // @minFFVer <%= meta.min.firefox %> 8 | // @license <%= license %>; <%= meta.repo %>blob/<%= meta.mainBranch %>/LICENSE 9 | <%= 10 | meta.matches.map(function(match) { 11 | return '// @match ' + match; 12 | }).join('\n') 13 | %> 14 | // @grant GM_getValue 15 | // @grant GM_setValue 16 | // @grant GM_deleteValue 17 | // @grant GM_openInTab 18 | // @grant GM_listValues 19 | // @run-at document-start 20 | // @updateURL <%= meta.downloads %><%= meta.files.metajs %> 21 | // @downloadURL <%= meta.downloads %><%= meta.files.userjs %> 22 | // @icon data:image/png;base64,<%= grunt.file.read('src/img/icon48.png', {encoding: 'base64'}) %> 23 | // ==/UserScript== -------------------------------------------------------------------------------- /src/meta/updates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/style.js: -------------------------------------------------------------------------------- 1 | <%= grunt.file.read('src/css/Cleanup.css') %> 2 | <%= grunt.file.read('src/css/Original.css') %> 3 | <%= grunt.file.read('src/css/General.css') %> 4 | <%= grunt.file.read('src/css/Colors.css') %> 5 | <%= grunt.file.read('src/css/Fonts.css') %> 6 | " + ($SS.conf["Sidebar Position"] !== 3 ? "<%= grunt.file.read('src/css/Sidebar.css') %>" : "") + " 7 | <%= grunt.file.read('src/css/Quickreply.css') %> 8 | <%= grunt.file.read('src/css/Icons.css') %> 9 | <%= grunt.file.read('src/css/Highlight.css') %> 10 | <%= grunt.file.read('src/css/Options.css') %> 11 | <%= grunt.file.read('src/css/Catalog.css') %> 12 | " + $SS.theme.customCSS + " --------------------------------------------------------------------------------