# SDMB Style Tweaker/Fixer (Userscript)

**URL:** <https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704>\
**Category:** About This Message Board\
**Created:** [September 7, 2017, 2:37am UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704 "2017-09-07T02:37:02Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Tee](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@Tee](https://boards.straightdope.com/u/Tee)\
**Post date:** [September 7, 2017, 2:25pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/21 "2017-09-07T14:25:05Z")

</div>

:rolleyes: :eek: 😃

I didn’t know about the old smilies. Works on Stylish, thanks very much!

---

<div class="post-metadata">

**Author:** ![Munch](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/munch/32/5281_2.png) [@Munch](https://boards.straightdope.com/u/Munch)\
**Post date:** [September 7, 2017, 2:31pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/22 "2017-09-07T14:31:51Z")

</div>

Nice work, BigT.

- Does the font still appear bigger in posts, or am I just imagining things?
- Also, I think I like that you kept the red “Go to first new post…” tabs on a forum screen. I’ve never used those before - maybe because I just didn’t really notice them.
- Any way to make the “you’re subscribed to this thread” checkmark be a little more noticeable?

---

<div class="post-metadata">

**Author:** ![Fubaya](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Fubaya](https://boards.straightdope.com/u/Fubaya)\
**Post date:** [September 7, 2017, 3:43pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/23 "2017-09-07T15:43:49Z")

</div>

Thanks BigT! Between this, changing the font size and blocking some cruft, things are looking normal again.

I also had to install tampermonkey, it didn’t work in greasemonkey for me either.

---

<div class="post-metadata">

**Author:** ![mhendo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mhendo/32/3159_2.png) [@mhendo](https://boards.straightdope.com/u/mhendo)\
**Post date:** [September 7, 2017, 3:56pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/24 "2017-09-07T15:56:31Z")

</div>

> [@GuanoLad](#):
>
> I’ve used Greasemonkey for years, but now, maybe because Firefox is transitioning away from certain kinds of add-ons, it isn’t as reliable anymore, and **BigT** ’s script didn’t work. Installing Tampermonkey did the trick. Yay!.

Same for me.

Thanks, **BigT**. Your script is going to make my SDMB experience much better. I especially like the absence of the blue bars between posts.

---

<div class="post-metadata">

**Author:** ![Johnny\_Bravo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_bravo/32/493_2.png) [@Johnny\_Bravo](https://boards.straightdope.com/u/Johnny_Bravo)\
**Post date:** [September 7, 2017, 4:01pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/25 "2017-09-07T16:01:56Z")

</div>

Much better than previously. You done good, BigT.

---

<div class="post-metadata">

**Author:** ![Morgyn](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/morgyn/32/3041_2.png) [@Morgyn](https://boards.straightdope.com/u/Morgyn)\
**Post date:** [September 7, 2017, 4:16pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/26 "2017-09-07T16:16:09Z")

</div>

Hey, **BigT** , the new skin has also messed up the Code and Spoiler tags. See [**cmyk** ’s post](http://boards.straightdope.com/sdmb/showpost.php?p=20463917&postcount=206) for an example of the Spoiler and [**phungi** ’s post](http://boards.straightdope.com/sdmb/showpost.php?p=20463825&postcount=1642) for the Code.

Anything you can do with them?

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [September 7, 2017, 5:11pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/27 "2017-09-07T17:11:59Z")

</div>

> [@AHunter3](#):
>
> Nice.
> 
> I’ve never used one of thes userscript thingies before.
> 
> Any possibility you could make the Reply buttons back to human-appropriate size instead of those giant ugly things?

This is the first time I’ve used one of these script thingies myself, and, well done **BigT**. This fixes the bulk of my annoyances on my desktop. Like buh-bye stupid blue bars, and, hey, shit actually lines up on the right with the Join Date/Location/Posts field!

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 6:23pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/28 "2017-09-07T18:23:11Z")

</div>

I wound up with a horrible headache last night, and, while it’s better, it’s still in that “taking it easy” phase, so I’m not working it today. But thanks for the feedback!

> [@Tee](#):
>
> :rolleyes: :eek: 😃
> 
> I didn’t know about the old smilies. Works on Stylish, thanks very much!

Most of my changes will work in Stylish, too. I may make it myself, but if I don’t, just go the the source page and copy the parts between the addStyle(`and`) lines to a new Stylish file. (You may need to leave out the one about moving the top arrow. I think I left enough comments to make this easy to find.)

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 7:00pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/29 "2017-09-07T19:00:54Z")

</div>

Really weird that people need Tampermonkey. I didn’t, but I also use the ESR version of Firefox ((based on Firefox 52) on my Linux machine (which is the only place I actually use Firefox anymore). And it works just fine there. Too many addons I use there are going to break when Firefox 57 comes out.

If a lot of people are running into the problem, I guess I’ll look into it. Or, at least, put it on the list of things to look into.

---

<div class="post-metadata">

**Author:** ![MindsEye\_Watering](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mindseye_watering/32/3619_2.png) [@MindsEye\_Watering](https://boards.straightdope.com/u/MindsEye_Watering)\
**Post date:** [September 7, 2017, 7:10pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/30 "2017-09-07T19:10:45Z")

</div>

> [@BigT](#):
>
> [Try it out and tell me what you think!](https://openuserjs.org/scripts/BigTSDMB/SDMB_Style_TweakerFixer) I honestly feel right at home.

Hey, this is MUCH better. Thanks!

---

<div class="post-metadata">

**Author:** ![hajario](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hajario/32/171_2.png) [@hajario](https://boards.straightdope.com/u/hajario)\
**Post date:** [September 7, 2017, 7:17pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/31 "2017-09-07T19:17:40Z")

</div>

Great job, **BigT**.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 7:33pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/32 "2017-09-07T19:33:50Z")

</div>

Ah. Got it. The script was running too early in Firefox, before there even was a \<head\> tag to attach the style to. As this might be fixed in future versions of both engines, I’ve added logic to try again if it fails the first time.

---

<div class="post-metadata">

**Author:** ![MindsEye\_Watering](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mindseye_watering/32/3619_2.png) [@MindsEye\_Watering](https://boards.straightdope.com/u/MindsEye_Watering)\
**Post date:** [September 7, 2017, 7:55pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/33 "2017-09-07T19:55:31Z")

</div>

In multiple page threads, the page numbers are shown at the bottom right of each page. Before the board’s update, there was a color difference between the page I’m on and the next page, which seems to have gone away with the update. Now, I have to hover over the page numbers to determine if there is a new page after the one that I am on. The page numbers are ALL gray now (in Chrome).

I don’t know how you did what you did **BigT,** but can I fix this myself, or do you have to fix it?

On the subject of fixing things, will further fixes that you make update automatically to what I have now? Or will I need to download a newer version of the script?

Again, well done!

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [September 7, 2017, 7:58pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/34 "2017-09-07T19:58:01Z")

</div>

I downloaded Telerik Fiddler once to work around a Javascript problem at another site, though I’m not using it anymore. (Confusions might outweigh benefits.) I don’t want to endure the time and trauma(!) of downloading yet another tool just to improve the interface here very slightly. Nevertheless: Kudos to **BigT**!

I glanced at an SDMB page just to see what .css it loaded (I was vaguely thinking of firing up Fiddler to change the highlighting color), but found much css in-line. (This seemed odd.) I’d ask where the pale-green highlighting color is set, but my high-priority To-Do list is already _very_ long. :eek:

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 9:18pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/35 "2017-09-07T21:18:02Z")

</div>

> [@MindsEye\_Watering](#):
>
> On the subject of fixing things, will further fixes that you make update automatically to what I have now? Or will I need to download a newer version of the script?

They should, but how often your script checks for updates depends on the Userscript engine.

I should have already put in something for the change you mentioned. I unbolded the other page numbers. You may want to force an update by installing it again, to make sure that it’s not something I still need to fix (or improve).

I’ll put this on my list of things to look into.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 9:27pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/36 "2017-09-07T21:27:16Z")

</div>

> [@septimus](#):
>
> I’d ask where the pale-green highlighting color is set, but my high-priority To-Do list is already _very_ long. :eek:

I can’t tell you where it’s set, but I can tell you how to go about changing it.

You need to change the values of the CSS selector ::selection . To override previous settings, you may need to set each option with !important: e.g. ::selection { background: gray !important; } .

If you need to do this in JavaScript, you’ll need to basically add an inline style tag:

```php
var style = document.createElement('style');
style.textContent = 
    '::selection { /*your changes here*/ }';
document.head.appendChild(style);

```

That is how my script does most of what it does.

Yes, that’s JavaScript, not PHP. I used the PHP tag so it would have fancy highlighting

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 10:34pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/37 "2017-09-07T22:34:46Z")

</div>

> [@Morgyn](#):
>
> Hey, **BigT** , the new skin has also messed up the Code and Spoiler tags. See [**cmyk** ’s post](http://boards.straightdope.com/sdmb/showpost.php?p=20463917&postcount=206) for an example of the Spoiler and [**phungi** ’s post](http://boards.straightdope.com/sdmb/showpost.php?p=20463825&postcount=1642) for the Code.
> 
> Anything you can do with them?

I decided to work on this, since it’s higher priority. Should be fixed in version 0.5.95, which is currently the latest.

Probably the easiest way to force a manual update is to just install the script again.

My code is also hopefully commented well enough that anyone who wanted to fix this on the actual server side could use my fix. It’s just CSS.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [September 7, 2017, 10:51pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/38 "2017-09-07T22:51:49Z")

</div>

Make that 0.5.96, due to bad version control. (I lost the fix I made for Greasemonkey, and had to add it back.)

---

<div class="post-metadata">

**Author:** ![Dr.Crap](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.crap/32/3131_2.png) [@Dr.Crap](https://boards.straightdope.com/u/Dr.Crap)\
**Post date:** [September 7, 2017, 11:44pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/39 "2017-09-07T23:44:47Z")

</div>

Thank you for the update, **BigT**!

---

<div class="post-metadata">

**Author:** ![Morgyn](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/morgyn/32/3041_2.png) [@Morgyn](https://boards.straightdope.com/u/Morgyn)\
**Post date:** [September 7, 2017, 11:57pm UTC](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704/40 "2017-09-07T23:57:26Z")

</div>

What Dr. Crap said.

[Previous page](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704.md?page=1)

[Next page](https://boards.straightdope.com/t/sdmb-style-tweaker-fixer-userscript/795704.md?page=3)
