From 96021889ea0792100f16d45a115aee8d2ecb8c58 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 16 Jun 2012 16:35:25 +0200 Subject: [PATCH 1/5] Text input style fixes. --- 4chan_x.user.js | 24 +++++++++++------------- script.coffee | 24 +++++++++++------------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 5b712393b..a64d5f9bd 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2282,12 +2282,12 @@
Quote Backlinks are disabled.
\ \
Time Formatting is disabled.
\ ' return From 6b88b14c7db716196a46021f4f2afef7194c8cfd Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 16 Jun 2012 17:51:46 +0200 Subject: [PATCH 4/5] Give s some emphasis. --- 4chan_x.user.js | 5 +++++ script.coffee | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 2a0b82c19..6a4684ae8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4735,6 +4735,11 @@ body.unscroll {\ #options article li {\ margin: 10px 0 10px 2em;\ }\ +#options code {\ + background: hsla(0, 0%, 100%, .5);\ + color: #000;\ + padding: 0 1px;\ +}\ #options label {\ text-decoration: underline;\ }\ diff --git a/script.coffee b/script.coffee index 86e7c8e47..a0655ca15 100644 --- a/script.coffee +++ b/script.coffee @@ -3675,6 +3675,11 @@ body.unscroll { #options article li { margin: 10px 0 10px 2em; } +#options code { + background: hsla(0, 0%, 100%, .5); + color: #000; + padding: 0 1px; +} #options label { text-decoration: underline; } From 54dbf09d868eacbdb07cf935633bcb65223f0697 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 16 Jun 2012 17:57:17 +0200 Subject: [PATCH 5/5] Small reordering. --- 4chan_x.user.js | 74 ++++++++++++++++++++++++------------------------- script.coffee | 68 ++++++++++++++++++++++----------------------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6a4684ae8..f4a4d4092 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2428,46 +2428,46 @@ filter: function() { var el, name, ta; el = this.nextSibling; + if ((name = this.value) !== 'guide') { + ta = $.el('textarea', { + name: name, + className: 'field', + value: $.get(name, Conf[name]) + }); + $.on(ta, 'change', $.cb.value); + $.replace(el, ta); + return; + } if (el) { $.rm(el); } - if ((name = this.value) === 'guide') { - $.after(this, $.el('article', { - innerHTML: '

Use regular expressions, one per line.
\ - Lines starting with a # will be ignored.
\ - For example, /weeaboo/i will filter posts containing the string `weeaboo`, case-insensitive.

\ -
    You can use these settings with each regular expression, separate them with semicolons:\ -
  • \ - Per boards, separate them with commas. It is global if not specified.
    \ - For example: boards:a,jp;.\ -
  • \ -
  • \ - Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).
    \ - For example: op:only;, op:no; or op:yes;.\ -
  • \ -
  • \ - Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).
    \ - For example: stub:yes; or stub:no;\ -
  • \ -
  • \ - Highlight instead of hiding. You can specify a class name to use with a userstyle.
    \ - For example: highlight; or highlight:wallpaper;.\ -
  • \ -
  • \ - Highlighted OPs will have their threads put on top of board pages by default.
    \ - For example: top:yes; or top:no;.\ -
  • \ -
' - })); - return; - } - ta = $.el('textarea', { - name: name, - className: 'field', - value: $.get(name, Conf[name]) - }); - $.on(ta, 'change', $.cb.value); - return $.after(this, ta); + return $.after(this, $.el('article', { + innerHTML: '

Use regular expressions, one per line.
\ + Lines starting with a # will be ignored.
\ + For example, /weeaboo/i will filter posts containing the string `weeaboo`, case-insensitive.

\ +
    You can use these settings with each regular expression, separate them with semicolons:\ +
  • \ + Per boards, separate them with commas. It is global if not specified.
    \ + For example: boards:a,jp;.\ +
  • \ +
  • \ + Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).
    \ + For example: op:only;, op:no; or op:yes;.\ +
  • \ +
  • \ + Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).
    \ + For example: stub:yes; or stub:no;\ +
  • \ +
  • \ + Highlight instead of hiding. You can specify a class name to use with a userstyle.
    \ + For example: highlight; or highlight:wallpaper;.\ +
  • \ +
  • \ + Highlighted OPs will have their threads put on top of board pages by default.
    \ + For example: top:yes; or top:no;.\ +
  • \ +
' + })); }, time: function() { Time.foo(); diff --git a/script.coffee b/script.coffee index a0655ca15..aeebcbe5e 100644 --- a/script.coffee +++ b/script.coffee @@ -1883,43 +1883,43 @@ Options = $.cb.value.call @ filter: -> el = @nextSibling - $.rm el if el - if (name = @value) is 'guide' - $.after @, $.el 'article', - innerHTML: '

Use regular expressions, one per line.
- Lines starting with a # will be ignored.
- For example, /weeaboo/i will filter posts containing the string `weeaboo`, case-insensitive.

-
    You can use these settings with each regular expression, separate them with semicolons: -
  • - Per boards, separate them with commas. It is global if not specified.
    - For example: boards:a,jp;. -
  • -
  • - Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).
    - For example: op:only;, op:no; or op:yes;. -
  • -
  • - Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).
    - For example: stub:yes; or stub:no; -
  • -
  • - Highlight instead of hiding. You can specify a class name to use with a userstyle.
    - For example: highlight; or highlight:wallpaper;. -
  • -
  • - Highlighted OPs will have their threads put on top of board pages by default.
    - For example: top:yes; or top:no;. -
  • -
' + if (name = @value) isnt 'guide' + ta = $.el 'textarea', + name: name + className: 'field' + value: $.get name, Conf[name] + $.on ta, 'change', $.cb.value + $.replace el, ta return - ta = $.el 'textarea', - name: name - className: 'field' - value: $.get name, Conf[name] - $.on ta, 'change', $.cb.value - $.after @, ta + $.rm el if el + $.after @, $.el 'article', + innerHTML: '

Use regular expressions, one per line.
+ Lines starting with a # will be ignored.
+ For example, /weeaboo/i will filter posts containing the string `weeaboo`, case-insensitive.

+
    You can use these settings with each regular expression, separate them with semicolons: +
  • + Per boards, separate them with commas. It is global if not specified.
    + For example: boards:a,jp;. +
  • +
  • + Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).
    + For example: op:only;, op:no; or op:yes;. +
  • +
  • + Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).
    + For example: stub:yes; or stub:no; +
  • +
  • + Highlight instead of hiding. You can specify a class name to use with a userstyle.
    + For example: highlight; or highlight:wallpaper;. +
  • +
  • + Highlighted OPs will have their threads put on top of board pages by default.
    + For example: top:yes; or top:no;. +
  • +
' time: -> Time.foo() Time.date = new Date()