Skip to content

Commit

Permalink
Release v1.0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
3nly committed Dec 3, 2024
1 parent e91ec95 commit d6c305a
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 90 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### v1.0.25
*2024-12-03*

- Remove 4channel from meta
- Margins will no longer apply to the report window

### v1.0.24
*2024-11-29*

Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Contributors:
* Hupotronic
* libricoleur
* tracerneo
* SystemPatch

All the people who've taken the time to write bug reports.
* Thank you.
Expand Down
Binary file modified builds/StyleChan-Chrome.zip
Binary file not shown.
55 changes: 18 additions & 37 deletions builds/StyleChan.meta.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
// ==UserScript==
// @name StyleChan
// @version 1.0.24
// @version 1.0.25
// @namespace StyleChan
// @description Customizable themes for 4chan X.
// @minGMVer 1.14
// @minFFVer 26
// @license GPL-3.0; https://github.com/3nly/StyleChan/blob/main/LICENSE
// @match *://boards.4chan.org/*
// @match http://boards.4chan.org/*
// @match https://boards.4chan.org/*
// @match http://sys.4chan.org/*
// @match https://sys.4chan.org/*
// @exclude http://www.4chan.org/
// @exclude https://www.4chan.org/
// @exclude http://www.4chan.org/*
// @exclude https://www.4chan.org/*
// @exclude http://www.4chan.org/advertise
// @exclude https://www.4chan.org/advertise
// @exclude http://www.4chan.org/advertise?*
// @exclude https://www.4chan.org/advertise?*
// @exclude http://www.4chan.org/donate
// @exclude https://www.4chan.org/donate
// @exclude http://www.4chan.org/donate?*
// @exclude https://www.4chan.org/donate?*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
Expand All @@ -17,42 +32,8 @@
// @grant GM.deleteValue
// @grant GM.listValues
// @grant GM.openInTab
// @include http://boards.4chan.org/*
// @include https://boards.4chan.org/*
// @include http://sys.4chan.org/*
// @include https://sys.4chan.org/*
// @include http://boards.4channel.org/*
// @include https://boards.4channel.org/*
// @include http://sys.4channel.org/*
// @include https://sys.4channel.org/*
// @exclude http://www.4channel.org/*
// @exclude https://www.4channel.org/*
// @exclude http://www.4chan.org/pass
// @exclude https://www.4chan.org/pass
// @exclude http://www.4chan.org/pass?*
// @exclude https://www.4chan.org/pass?*
// @exclude http://www.4chan.org/advertise
// @exclude https://www.4chan.org/advertise
// @exclude http://www.4chan.org/advertise?*
// @exclude https://www.4chan.org/advertise?*
// @exclude http://www.4chan.org/donate
// @exclude https://www.4chan.org/donate
// @exclude http://www.4chan.org/donate?*
// @exclude https://www.4chan.org/donate?*
// @exclude http://www.4channel.org/pass
// @exclude https://www.4channel.org/pass
// @exclude http://www.4channel.org/pass?*
// @exclude https://www.4channel.org/pass?*
// @exclude http://www.4channel.org/advertise
// @exclude https://www.4channel.org/advertise
// @exclude http://www.4channel.org/advertise?*
// @exclude https://www.4channel.org/advertise?*
// @exclude http://www.4channel.org/donate
// @exclude https://www.4channel.org/donate
// @exclude http://www.4channel.org/donate?*
// @exclude https://www.4channel.org/donate?*
// @run-at document-start
// @updateURL https://github.com/3nly/StyleChan/releases/latest/download/StyleChan.meta.js
// @downloadURL https://github.com/3nly/StyleChan/releases/latest/download/StyleChan.user.js
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABvFBMVEUAAAD/8gDpDI0ArvDtAIxPtkhQtkkErub/8gAArvABru3qC41QtkntAIz+8gBQtkkAru9QtkntAYzsAowCruv78QH37wL37wJPtkj27wMDruntAIztAIwArvAArvAAru8Aru8Bru798QHsBYz88QEBru3rBoz58AJQtkkCrur58ALsBowDrur37wLqCYxQtkj17gNQtkntAYz/8gD+8gBQtklQtkn+8gDsAozsAoxQtkkBru798QHtAYz98QHsAozsA4xQtklQtklQtklPtkkCruxQtkj88QFQtkkCrur58AJQtknqCo0EruhQtkkAru9QtkkBru/98QFQtkn98gAAru798QFQtkkBru5Qtkn98QFQtkn88QHsBIzsA4zsBIz68QH98QHrBoxQtknrBoxQtkn68AL68QEEr+dPtkgBru0Bru0BruxPtklQtkkCrurrB4xQtkjtAYxQtkn+8gD+8gDsAowBru/98QH+8gDsAozsA4wBru4Bru3sA4wCru3sAoxQtkn78QIBru5Qtkn78AL68ALqCIxQtkkCruzrBozqB4xQtknrBozqCYxPtkjtAIwArvD/8gBQtkkJhIM0AAAAkHRSTlMA/An78wv2BvfuSg/69vLp4Mq2ZFIiFxIPDg37+fjy6M6amn93aT85JCIcGhMIBwYE7+zs6drR0MzCvrSyrKaekY1yZlw5MzEuKSgeFAve28TAwLW1r6yioaGemoh5cWxoXFRUUktGQjs4NDEuKRsYFhXk4d3b19bCva+po4iIh4aFgYCAT09HQUA0LywrIgXb8yuRAAACnklEQVRIx8WTZ1/aUBSHbxBRwDIVwQ0K4gAnMkSwgAqCe9XauqtV6+ree88QvnBzbsJIrr399U19XpCby/9JzjlJ0CVQnj52W/ljz0kyme75ezyxMK2/Nxs/P1jx6fW+lXFEx7qmygEqoz6H8d2iC2+qcjKG3LS8ezpHEKMJOypSWCinCPEqUghZKcLnPlJYpY323EjkqxKIRpxownhCf25rsnzfH56DtiujwIt0SJJXxX7BbsVpR0ddSfxsPfgwYDJnYP3dWNrAVTzTI/sjg2GuuiKf/2mqZ3kagi44Gx8qyVvh8k5DFlA7RUP7lBW5a/by5wd5Q4XzdS+aIA6GRhB2lWwe5U0F3MMo5N9DPd3XGrN5hoU+omyRK61gJGdhPjGcf16WLdCcgrzCxBLGcSinT/Tg60M+T9NtELwgyA336g78N2WHvExAo6zUwH2U4/wrqL9I8x0suPqlhnIDCVS8E/LyphUjrJT+bUFwqqX5Jg0SMDfIbrGLgKnhrBT1FyGfCcqaWPcizFGLzFgSSvqklOQbXkPTnl7+51BmqA+x8FKSrx/V8nsWR5uHP4zNSISy6gvGGsX5CFP51sYvNIYLhI36kvxIF79TE2Y4rtJRiw1S+NpfrEfIP+EA5jo2ZogHp3hW6DcK+cl5ToCJdEIfxc7t4gfxIyDOv1UL+cdcgUUwUkviCzXXgUS+mZR8PLDthXrmuRIiUFW3s0Vd1thsh7yI1mU2u85gVbvMlcI4bLB7OlatSUE9BL03GE5CZVsvorE/yMkY2KflPcscQdhGEWruk8LgJEWYGCAFXTtNGPxHweInhQc1iAJMVQpDn6slnJ+/TjzCG0ij0zEAr7Z/a29RxzA6/yYMlYpnYqttc8+CkK3944f2TvT/+Q1a1Bm6o38QNgAAAABJRU5ErkJggg==
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABRFBMVEUAAADtAIwArvBQtknpDI3tAIwDrulPtkgErub/8gAArvD/8gBQtkkBru0Cr+tQtkkCrurqC43+8gBQtkkAru9QtklQtkntAYwAru7sAoxPtkkCruvrBoxPtkj78QFQtkn37wLrCI337wJPtkj27wNQtkgArvAAru8Aru/+8gDtAYxQtkkBru798QHsBYz88QHsA4wBru3rBoz68QH58AJPtkkCrur58ALsBoz37wLqCYz17gNQtkntAYwAru9Qtkn+8gDsAozsAoz98QH98QEBru7sAozsA4xQtklQtklQtklQtkn88QHrBowCrur58ALtAYz+8gABru9Qtkn98gD98QH98QFQtkkBru388QHsAoxQtknsBIz68QH98QH78AIBru0Bru0BruxQtkjsA4z78QIBru7qCYz/8gDtAIwArvBQtkkkzno5AAAAaHRSTlMA+Pr4CfMMCwb37uvdSjstFA/y6eDKwbayZFlSQDUiHBcUEg8OBfLozsCtopqaf3duaVNEOSUiHBoIBwTv7NrR0MzCsqainpGNcmZHMS8pKN7cwLW1rJ6aiIiHg3loXE80MS4VqYGAIkGLyJ4AAAJeSURBVEjHxZNXWxpBFECHKlKl9ybNUKSDVGnBIII9tthiyi78//fsnV0Cs7vf+JIvngeWh3Pg3hlAH8BW2FKNcc9E2GIJJ97XfZdGu9F1/BbMGO12YyaI6MRuVEtA5bQvMcYpPXgAn+CwSvOrxqWECS3wqaTB5RYlOJYJXDFKMG1LgwztaN+cEl/lk1j0mZxh+r3diPz2VF60HkTVCAi7yIEmeAPdTq2m3dCjhcFZ3+2NwnuLc9P/gs/0Ndt1OC78upX/261gORSDAOIIHm74Mfj4omMB6ItCYU2zAmfeJi4IX3ubXPDoTXxQ0rArNN/UUDh5/wHm2fmsXKzw8HuM2TWKfSgssHl7QvhAag6+2s3KFXZfgvCBpBmCJgTioprBF6zNYp8M0BFLFniPLezfEv4i9R0HgQ5ZaAqIR/eL98VLq9MsSafEB0U96SdNiMerEH0FH2g9CxK9mfejA9EShSbCvO4tZEcKaEj/HpZutLiXF1Ghf8HBPekfWRFCkVy+wT3MXSJQ+mWOdYz9EbP9M869MTlkgsLmzukDhFBoyDDMdm4XF9Jg1lnPw/ufGMxXXHQlF6f+8dcfg38KPmZUhz3Wm2d1CDPrC+e/b137mCso5h7hwi9qSGDm1nB6v9QU5lkzgql2int6pTKVBV/AGvB6A/gvvXvNEOTiCBKz3zTXIRladwzJdr6FaJQNjAhDmeY3rhkJwzglCJ1LA8MpJTgxSANb5V8GkZ40OA8hCnfSgH6ukeHq/G3CE36BNOo5A2i9p/IVl9h6j3H0Do2Tp/xjOYJQvPL8XKmj/88f8uGNBHXfIrwAAAAASUVORK5CYII=
// ==/UserScript==
71 changes: 29 additions & 42 deletions builds/StyleChan.user.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
// ==UserScript==
// @name StyleChan
// @version 1.0.24
// @version 1.0.25
// @namespace StyleChan
// @description Customizable themes for 4chan X.
// @minGMVer 1.14
// @minFFVer 26
// @license GPL-3.0; https://github.com/3nly/StyleChan/blob/main/LICENSE
// @match *://boards.4chan.org/*
// @match http://boards.4chan.org/*
// @match https://boards.4chan.org/*
// @match http://sys.4chan.org/*
// @match https://sys.4chan.org/*
// @exclude http://www.4chan.org/
// @exclude https://www.4chan.org/
// @exclude http://www.4chan.org/*
// @exclude https://www.4chan.org/*
// @exclude http://www.4chan.org/advertise
// @exclude https://www.4chan.org/advertise
// @exclude http://www.4chan.org/advertise?*
// @exclude https://www.4chan.org/advertise?*
// @exclude http://www.4chan.org/donate
// @exclude https://www.4chan.org/donate
// @exclude http://www.4chan.org/donate?*
// @exclude https://www.4chan.org/donate?*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
Expand All @@ -17,44 +32,10 @@
// @grant GM.deleteValue
// @grant GM.listValues
// @grant GM.openInTab
// @include http://boards.4chan.org/*
// @include https://boards.4chan.org/*
// @include http://sys.4chan.org/*
// @include https://sys.4chan.org/*
// @include http://boards.4channel.org/*
// @include https://boards.4channel.org/*
// @include http://sys.4channel.org/*
// @include https://sys.4channel.org/*
// @exclude http://www.4channel.org/*
// @exclude https://www.4channel.org/*
// @exclude http://www.4chan.org/pass
// @exclude https://www.4chan.org/pass
// @exclude http://www.4chan.org/pass?*
// @exclude https://www.4chan.org/pass?*
// @exclude http://www.4chan.org/advertise
// @exclude https://www.4chan.org/advertise
// @exclude http://www.4chan.org/advertise?*
// @exclude https://www.4chan.org/advertise?*
// @exclude http://www.4chan.org/donate
// @exclude https://www.4chan.org/donate
// @exclude http://www.4chan.org/donate?*
// @exclude https://www.4chan.org/donate?*
// @exclude http://www.4channel.org/pass
// @exclude https://www.4channel.org/pass
// @exclude http://www.4channel.org/pass?*
// @exclude https://www.4channel.org/pass?*
// @exclude http://www.4channel.org/advertise
// @exclude https://www.4channel.org/advertise
// @exclude http://www.4channel.org/advertise?*
// @exclude https://www.4channel.org/advertise?*
// @exclude http://www.4channel.org/donate
// @exclude https://www.4channel.org/donate
// @exclude http://www.4channel.org/donate?*
// @exclude https://www.4channel.org/donate?*
// @run-at document-start
// @updateURL https://github.com/3nly/StyleChan/releases/latest/download/StyleChan.meta.js
// @downloadURL https://github.com/3nly/StyleChan/releases/latest/download/StyleChan.user.js
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABvFBMVEUAAAD/8gDpDI0ArvDtAIxPtkhQtkkErub/8gAArvABru3qC41QtkntAIz+8gBQtkkAru9QtkntAYzsAowCruv78QH37wL37wJPtkj27wMDruntAIztAIwArvAArvAAru8Aru8Bru798QHsBYz88QEBru3rBoz58AJQtkkCrur58ALsBowDrur37wLqCYxQtkj17gNQtkntAYz/8gD+8gBQtklQtkn+8gDsAozsAoxQtkkBru798QHtAYz98QHsAozsA4xQtklQtklQtklPtkkCruxQtkj88QFQtkkCrur58AJQtknqCo0EruhQtkkAru9QtkkBru/98QFQtkn98gAAru798QFQtkkBru5Qtkn98QFQtkn88QHsBIzsA4zsBIz68QH98QHrBoxQtknrBoxQtkn68AL68QEEr+dPtkgBru0Bru0BruxPtklQtkkCrurrB4xQtkjtAYxQtkn+8gD+8gDsAowBru/98QH+8gDsAozsA4wBru4Bru3sA4wCru3sAoxQtkn78QIBru5Qtkn78AL68ALqCIxQtkkCruzrBozqB4xQtknrBozqCYxPtkjtAIwArvD/8gBQtkkJhIM0AAAAkHRSTlMA/An78wv2BvfuSg/69vLp4Mq2ZFIiFxIPDg37+fjy6M6amn93aT85JCIcGhMIBwYE7+zs6drR0MzCvrSyrKaekY1yZlw5MzEuKSgeFAve28TAwLW1r6yioaGemoh5cWxoXFRUUktGQjs4NDEuKRsYFhXk4d3b19bCva+po4iIh4aFgYCAT09HQUA0LywrIgXb8yuRAAACnklEQVRIx8WTZ1/aUBSHbxBRwDIVwQ0K4gAnMkSwgAqCe9XauqtV6+ree88QvnBzbsJIrr399U19XpCby/9JzjlJ0CVQnj52W/ljz0kyme75ezyxMK2/Nxs/P1jx6fW+lXFEx7qmygEqoz6H8d2iC2+qcjKG3LS8ezpHEKMJOypSWCinCPEqUghZKcLnPlJYpY323EjkqxKIRpxownhCf25rsnzfH56DtiujwIt0SJJXxX7BbsVpR0ddSfxsPfgwYDJnYP3dWNrAVTzTI/sjg2GuuiKf/2mqZ3kagi44Gx8qyVvh8k5DFlA7RUP7lBW5a/by5wd5Q4XzdS+aIA6GRhB2lWwe5U0F3MMo5N9DPd3XGrN5hoU+omyRK61gJGdhPjGcf16WLdCcgrzCxBLGcSinT/Tg60M+T9NtELwgyA336g78N2WHvExAo6zUwH2U4/wrqL9I8x0suPqlhnIDCVS8E/LyphUjrJT+bUFwqqX5Jg0SMDfIbrGLgKnhrBT1FyGfCcqaWPcizFGLzFgSSvqklOQbXkPTnl7+51BmqA+x8FKSrx/V8nsWR5uHP4zNSISy6gvGGsX5CFP51sYvNIYLhI36kvxIF79TE2Y4rtJRiw1S+NpfrEfIP+EA5jo2ZogHp3hW6DcK+cl5ToCJdEIfxc7t4gfxIyDOv1UL+cdcgUUwUkviCzXXgUS+mZR8PLDthXrmuRIiUFW3s0Vd1thsh7yI1mU2u85gVbvMlcI4bLB7OlatSUE9BL03GE5CZVsvorE/yMkY2KflPcscQdhGEWruk8LgJEWYGCAFXTtNGPxHweInhQc1iAJMVQpDn6slnJ+/TjzCG0ij0zEAr7Z/a29RxzA6/yYMlYpnYqttc8+CkK3944f2TvT/+Q1a1Bm6o38QNgAAAABJRU5ErkJggg==
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABRFBMVEUAAADtAIwArvBQtknpDI3tAIwDrulPtkgErub/8gAArvD/8gBQtkkBru0Cr+tQtkkCrurqC43+8gBQtkkAru9QtklQtkntAYwAru7sAoxPtkkCruvrBoxPtkj78QFQtkn37wLrCI337wJPtkj27wNQtkgArvAAru8Aru/+8gDtAYxQtkkBru798QHsBYz88QHsA4wBru3rBoz68QH58AJPtkkCrur58ALsBoz37wLqCYz17gNQtkntAYwAru9Qtkn+8gDsAozsAoz98QH98QEBru7sAozsA4xQtklQtklQtklQtkn88QHrBowCrur58ALtAYz+8gABru9Qtkn98gD98QH98QFQtkkBru388QHsAoxQtknsBIz68QH98QH78AIBru0Bru0BruxQtkjsA4z78QIBru7qCYz/8gDtAIwArvBQtkkkzno5AAAAaHRSTlMA+Pr4CfMMCwb37uvdSjstFA/y6eDKwbayZFlSQDUiHBcUEg8OBfLozsCtopqaf3duaVNEOSUiHBoIBwTv7NrR0MzCsqainpGNcmZHMS8pKN7cwLW1rJ6aiIiHg3loXE80MS4VqYGAIkGLyJ4AAAJeSURBVEjHxZNXWxpBFECHKlKl9ybNUKSDVGnBIII9tthiyi78//fsnV0Cs7vf+JIvngeWh3Pg3hlAH8BW2FKNcc9E2GIJJ97XfZdGu9F1/BbMGO12YyaI6MRuVEtA5bQvMcYpPXgAn+CwSvOrxqWECS3wqaTB5RYlOJYJXDFKMG1LgwztaN+cEl/lk1j0mZxh+r3diPz2VF60HkTVCAi7yIEmeAPdTq2m3dCjhcFZ3+2NwnuLc9P/gs/0Ndt1OC78upX/261gORSDAOIIHm74Mfj4omMB6ItCYU2zAmfeJi4IX3ubXPDoTXxQ0rArNN/UUDh5/wHm2fmsXKzw8HuM2TWKfSgssHl7QvhAag6+2s3KFXZfgvCBpBmCJgTioprBF6zNYp8M0BFLFniPLezfEv4i9R0HgQ5ZaAqIR/eL98VLq9MsSafEB0U96SdNiMerEH0FH2g9CxK9mfejA9EShSbCvO4tZEcKaEj/HpZutLiXF1Ghf8HBPekfWRFCkVy+wT3MXSJQ+mWOdYz9EbP9M869MTlkgsLmzukDhFBoyDDMdm4XF9Jg1lnPw/ufGMxXXHQlF6f+8dcfg38KPmZUhz3Wm2d1CDPrC+e/b137mCso5h7hwi9qSGDm1nB6v9QU5lkzgql2int6pTKVBV/AGvB6A/gvvXvNEOTiCBKz3zTXIRladwzJdr6FaJQNjAhDmeY3rhkJwzglCJ1LA8MpJTgxSANb5V8GkZ40OA8hCnfSgH6ukeHq/G3CE36BNOo5A2i9p/IVl9h6j3H0Do2Tp/xjOYJQvPL8XKmj/88f8uGNBHXfIrwAAAAASUVORK5CYII=
// ==/UserScript==
(function() {
var defaultConfig = {
Expand Down Expand Up @@ -315,7 +296,7 @@
MIN_FONT_SIZE = 10,
NAME = "StyleChan",
NAMESPACE = "StyleChan.",
VERSION = "1.0.24",
VERSION = "1.0.25",
CHANGELOG = "https://github.com/3nly/StyleChan/blob/main/CHANGELOG.md",
inputImages = "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAP9JREFUOMvV0CFLQ2EYxfHfrtdiURgbmCxOmFPBJgZZ0CQD0Q+goFkwabWIyWIWFgwmy7Qp7DPI3GD7ACZlYLNcy31ljG0aDHrSy3N43nOef6ZULBiifczEQ8wV7OAtGmBO4wgfOI2whsXUnMAJ8rhCJ8IxDpHDHpZwixqM5XPZBBtYxioauEgjRLjBI2bRxTneQ6EYCS4xiTu89DbONJrtP88hwnV64hm28YRqyPsFDkmSGKUYFubnsqignM7rqDWa7dcAqoLdnsXwrgZQ5QG/l8MVIxX1ZPar/lUyUOsv+aMzv+0Qw3OrM4VNrKfzB9yXioVu6LDVx+EA4/+Gwycw/Uz36O07WwAAAABJRU5ErkJggg==",
themeInputs = [{
Expand Down Expand Up @@ -1048,10 +1029,15 @@
$SS.exportOptions[key] = $SS.conf[key];
};
};
$SS.conf["Margin Left"] = $SS.conf["Left Margin"] !== 999 ? $SS.conf["Left Margin"] : $SS.conf["Custom Left Margin"];
$SS.conf["Margin Right"] = $SS.conf["Right Margin"] !== 999 ? $SS.conf["Right Margin"] : $SS.conf["Custom Right Margin"];
$SS.conf["Margin Post Message"] = $SS.conf["Post Message Margin"] === 1 ? "4px 16px" : ($SS.conf["Post Message Margin"] === 3 ? "20px 40px" : "");
$SS.conf["Width Decoration"] = $SS.conf["Decoration Width"] !== 999 ? $SS.conf["Decoration Width"] : $SS.conf["Custom Decoration Width"];

$SS.location = $SS.getLocation();

if (!$SS.location.report) {
$SS.conf["Margin Left"] = $SS.conf["Left Margin"] !== 999 ? $SS.conf["Left Margin"] : $SS.conf["Custom Left Margin"];
$SS.conf["Margin Right"] = $SS.conf["Right Margin"] !== 999 ? $SS.conf["Right Margin"] : $SS.conf["Custom Right Margin"];
$SS.conf["Margin Post Message"] = $SS.conf["Post Message Margin"] === 1 ? "4px 16px" : ($SS.conf["Post Message Margin"] === 3 ? "20px 40px" : "");
$SS.conf["Width Decoration"] = $SS.conf["Decoration Width"] !== 999 ? $SS.conf["Decoration Width"] : $SS.conf["Custom Decoration Width"];
};
},
get: function(name) {
var val = this.hasGM ?
Expand Down Expand Up @@ -3456,6 +3442,7 @@
sub: obj.hostname.split(".")[0],
board: pathname[0],
home: location.hostname === "www.4chan.org",
report: location.hostname === "sys.4chan.org",
nsfw: /^(aco|b|bant|d|e|f|gif|h|hr|r|s|t|u|wg|i|ic|r9k|hm|y|hc|pol|soc|s4s|trash)$/.test(pathname[0]),
reply: pathname[1] === "thread",
catalog: pathname[1] === "catalog",
Expand Down
11 changes: 7 additions & 4 deletions builds/crx/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "StyleChan",
"version": "1.0.24",
"version": "1.0.25",
"manifest_version": 2,
"description": "Customizable themes for 4chan X.",
"icons": {
Expand All @@ -10,7 +10,8 @@
},
"content_scripts": [{
"js": ["script.js"],
"matches": ["*://boards.4chan.org/*"],
"matches": ["*://boards.4chan.org/*","*://sys.4chan.org/*"],
"exclude_matches": ["*://www.4chan.org/","*://www.4chan.org/*","*://www.4chan.org/advertise","*://www.4chan.org/advertise?*","*://www.4chan.org/donate","*://www.4chan.org/donate?*"],
"all_frames": true,
"run_at": "document_start"
}],
Expand All @@ -19,7 +20,9 @@
"minimum_chrome_version": "32",
"permissions": [
"storage",
"*://www.4chan.org/*",
"*://boards.4chan.org/*"
"*://boards.4chan.org/*",
"*://sys.4chan.org/*",
"*://boards.4channel.org/*",
"*://sys.4channel.org/*"
]
}
16 changes: 11 additions & 5 deletions builds/crx/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
MIN_FONT_SIZE = 10,
NAME = "StyleChan",
NAMESPACE = "StyleChan.",
VERSION = "1.0.24",
VERSION = "1.0.25",
CHANGELOG = "https://github.com/3nly/StyleChan/blob/main/CHANGELOG.md",
inputImages = "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAP9JREFUOMvV0CFLQ2EYxfHfrtdiURgbmCxOmFPBJgZZ0CQD0Q+goFkwabWIyWIWFgwmy7Qp7DPI3GD7ACZlYLNcy31ljG0aDHrSy3N43nOef6ZULBiifczEQ8wV7OAtGmBO4wgfOI2whsXUnMAJ8rhCJ8IxDpHDHpZwixqM5XPZBBtYxioauEgjRLjBI2bRxTneQ6EYCS4xiTu89DbONJrtP88hwnV64hm28YRqyPsFDkmSGKUYFubnsqignM7rqDWa7dcAqoLdnsXwrgZQ5QG/l8MVIxX1ZPar/lUyUOsv+aMzv+0Qw3OrM4VNrKfzB9yXioVu6LDVx+EA4/+Gwycw/Uz36O07WwAAAABJRU5ErkJggg==",
themeInputs = [{
Expand Down Expand Up @@ -990,10 +990,15 @@
$SS.exportOptions[key] = $SS.conf[key];
};
};
$SS.conf["Margin Left"] = $SS.conf["Left Margin"] !== 999 ? $SS.conf["Left Margin"] : $SS.conf["Custom Left Margin"];
$SS.conf["Margin Right"] = $SS.conf["Right Margin"] !== 999 ? $SS.conf["Right Margin"] : $SS.conf["Custom Right Margin"];
$SS.conf["Margin Post Message"] = $SS.conf["Post Message Margin"] === 1 ? "4px 16px" : ($SS.conf["Post Message Margin"] === 3 ? "20px 40px" : "");
$SS.conf["Width Decoration"] = $SS.conf["Decoration Width"] !== 999 ? $SS.conf["Decoration Width"] : $SS.conf["Custom Decoration Width"];

$SS.location = $SS.getLocation();

if (!$SS.location.report) {
$SS.conf["Margin Left"] = $SS.conf["Left Margin"] !== 999 ? $SS.conf["Left Margin"] : $SS.conf["Custom Left Margin"];
$SS.conf["Margin Right"] = $SS.conf["Right Margin"] !== 999 ? $SS.conf["Right Margin"] : $SS.conf["Custom Right Margin"];
$SS.conf["Margin Post Message"] = $SS.conf["Post Message Margin"] === 1 ? "4px 16px" : ($SS.conf["Post Message Margin"] === 3 ? "20px 40px" : "");
$SS.conf["Width Decoration"] = $SS.conf["Decoration Width"] !== 999 ? $SS.conf["Decoration Width"] : $SS.conf["Custom Decoration Width"];
};
},
get: function(name) {
var val = this.hasGM ?
Expand Down Expand Up @@ -3398,6 +3403,7 @@
sub: obj.hostname.split(".")[0],
board: pathname[0],
home: location.hostname === "www.4chan.org",
report: location.hostname === "sys.4chan.org",
nsfw: /^(aco|b|bant|d|e|f|gif|h|hr|r|s|t|u|wg|i|ic|r9k|hm|y|hc|pol|soc|s4s|trash)$/.test(pathname[0]),
reply: pathname[1] === "thread",
catalog: pathname[1] === "catalog",
Expand Down
2 changes: 1 addition & 1 deletion builds/updates.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='peblejlenbfconioafjbmipeogjdhcff'>
<updatecheck codebase='https://github.com/3nly/StyleChan/releases/latest/download/StyleChan.crx' version='1.0.24' prodversionmin='31' />
<updatecheck codebase='https://github.com/3nly/StyleChan/releases/latest/download/StyleChan.crx' version='1.0.25' prodversionmin='31' />
</app>
</gupdate>
Loading

0 comments on commit d6c305a

Please sign in to comment.