Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Make7

(8,543 posts)
58. I didn't much care for the yellow, so I changed it with a User Style Sheet.
Sun Jan 6, 2013, 09:37 PM
Jan 2013

Right now I am using FireFox17 on Windows7, but I imagine the same basic code will work in most browsers (I'll do some further testing if people have any questions and/or problems). Here are the CSS selectors/declarations people can use to disable this feature:

[div class="excerpt" style="margin-left: 1em !important; border: 1px solid #bfbfbf; border-radius: 0.4615em; box-shadow: 3px 3px 3px #999999;"]img[src$="tab-mysubscriptions-new.gif"]
{
[div style="margin-left:3em; text-indent:-1em;"]background-image: url("http://www.democraticunderground.com/imgs/tab-mysubscriptions.gif&quot !important;[div style="margin-left:3em; text-indent:-1em;"]background-size: 140px 26px !important;[div style="margin-left:3em; text-indent:-1em;"]height: 0px !important;[div style="margin-left:3em; text-indent:-1em;"]padding-top: 26px !important;}
img[src$="tab-myposts-new.gif"]
{
[div style="margin-left:3em; text-indent:-1em;"]background-image: url("http://www.democraticunderground.com/imgs/tab-myposts.gif&quot !important;[div style="margin-left:3em; text-indent:-1em;"]background-size: 140px 26px !important;[div style="margin-left:3em; text-indent:-1em;"]height: 0px !important;[div style="margin-left:3em; text-indent:-1em;"]padding-top: 26px !important;}
I actually like the idea of having an indication of new replies shown on the My Posts tab, I just didn't like the yellow so much - so I changed it to use a local image on my hard drive that simply underlines the words "My Posts" whenever the yellow tab is supposed to appear. The code looks like this (the following example also wraps the CSS selectors/declarations in a conditional that works in FireFox to apply the changes only to the www.democraticunderground.com domain):

[div class="excerpt" style="margin-left: 1em !important; border: 1px solid #bfbfbf; border-radius: 0.4615em; box-shadow: 3px 3px 3px #999999;"]@-moz-document domain("www.democraticunderground.com&quot
{[div style="margin-left:3em; text-indent:-1em;"]img[src$="tab-mysubscriptions-new.gif"][div style="margin-left:3em; text-indent:-1em;"]{[div style="margin-left:5em; text-indent:-1em;"]background-image: url("http://www.democraticunderground.com/imgs/tab-mysubscriptions.gif&quot !important;[div style="margin-left:5em; text-indent:-1em;"]background-size: 140px 26px !important;[div style="margin-left:5em; text-indent:-1em;"]height: 0px !important;[div style="margin-left:5em; text-indent:-1em;"]padding-top: 26px !important;[div style="margin-left:3em; text-indent:-1em;"]}[div style="margin-left:3em; text-indent:-1em;"]img[src$="tab-myposts-new.gif"][div style="margin-left:3em; text-indent:-1em;"]{[div style="margin-left:5em; text-indent:-1em;"]background-image: url("file:///C:\\Users\\web_browsing\\AppData\\Roaming\\Mozilla\\tab-myposts.gif&quot !important;[div style="margin-left:5em; text-indent:-1em;"]background-size: 140px 26px !important;[div style="margin-left:5em; text-indent:-1em;"]height: 0px !important;[div style="margin-left:5em; text-indent:-1em;"]padding-top: 26px !important;[div style="margin-left:3em; text-indent:-1em;"]}}
The conditional is useful because I can simply change to sync.democraticunderground.com (or one of the others) to see how things look without my User Style Sheet.

Probably the easiest way to implement User Style Sheets is to install the Stylish add-on for FireFox or Chrome. It is also possible to do this without any add-ons in those browsers, but requires a bit more computer savvy. You can also use User Style Sheets with the other major browsers - just Google "user style sheets" and add whatever browser you are using to the search term.

Very clever, as always. Thanks! enough Jan 2013 #1
Awesome. Noticed the tabs lighting up, though I broke DU. Behind the Aegis Jan 2013 #2
Oh, my, you think like me. Deep breaths... freshwest Jan 2013 #10
well instead of going back to grey, I'd like them to go to PLAID BlancheSplanchnik Jan 2013 #41
LOL...saw it when I came home from work tonight... sheshe2 Jan 2013 #44
Thank you Admins!!! Scuba Jan 2013 #3
thanks admins.. keeps getting better!!! oldhippydude Jan 2013 #4
ok, dumb question here.. one_voice Jan 2013 #5
Actually I think it performs the check when you hit a forum or group as well EarlG Jan 2013 #15
That'd affect me too, so it'd be good to know one way or the other n/t Violet_Crumble Jan 2013 #20
Okay, thanks! one_voice Jan 2013 #22
Answer: EarlG Jan 2013 #23
Thank you for the answer. I was on a jury an hour or so ago, so I thought that was it n/t Violet_Crumble Jan 2013 #35
Awesome... SidDithers Jan 2013 #6
See above... EarlG Jan 2013 #17
the may 7th 2001 democratic underground........ madrchsod Jan 2013 #7
+1,000 freshwest Jan 2013 #11
Wow! THAT is old school! FailureToCommunicate Jan 2013 #32
Thanks for the upgrading, EarlG Cha Jan 2013 #8
My god, tis as if you were reading my mind about several of these changes. dixiegrrrrl Jan 2013 #9
May I ask about the requested new groups? BainsBane Jan 2013 #12
I would like to suggest an 'opt out option' for the My Posts and My Subscriptions tabs lighting up. Tx4obama Jan 2013 #13
I didn't much care for the yellow, so I changed it with a User Style Sheet. Make7 Jan 2013 #58
i really want to be able to go to My DU barbtries Jan 2013 #14
I don't visit the Latest & Greatest pages so am I out of the jury pool? Kaleva Jan 2013 #16
See above... EarlG Jan 2013 #18
Thanks. I should tell myself to read the whole thread before posting. Kaleva Jan 2013 #21
This message was self-deleted by its author Violet_Crumble Jan 2013 #19
I am THRILLED with the keyword auto-trash! pacalo Jan 2013 #24
I like pie; KG Jan 2013 #25
Well, ElboRuum Jan 2013 #49
Thanks for the upgrades and the 2013 politics section. Couple of questions- graham4anything Jan 2013 #26
I like the keyword auto trash feature. Thanks! KurtNYC Jan 2013 #27
Auto trash by key word = awesome!!!! n/t tammywammy Jan 2013 #28
how about an appeal or edit option for jury decisions pasto76 Jan 2013 #29
Oh noes! You can't call liberals 'pinheads' on a liberal board! muriel_volestrangler Jan 2013 #37
Thanks, EarlG ReRe Jan 2013 #30
I love the light ups for new content! Thanks you guys! k&r Little Star Jan 2013 #31
Wait... where's the abject plea for $ ?? FailureToCommunicate Jan 2013 #33
Auto-trash threads by keyword is amazing! Lone_Star_Dem Jan 2013 #34
I knew that there was something going on, LOL Rhiannon12866 Jan 2013 #36
Could we turn down the orange in "My Subscriptions" TrogL Jan 2013 #38
Good job guys! LiberalFighter Jan 2013 #39
Question about auto-trash by keyword Jim Lane Jan 2013 #40
autotrash! Clever!!! You guys spoil me, seriesly BlancheSplanchnik Jan 2013 #42
Great work SoapBox Jan 2013 #43
Would have killed for auto-trash during the twinkie epidemic! bunnies Jan 2013 #45
I hadn't even noticed the "My Subscriptions" was lighted up - good thing I read this thread :) patricia92243 Jan 2013 #46
Way at! My posts just grayed out! lonestarnot Jan 2013 #47
How does one subscribe to People? antiquie Jan 2013 #48
Finally ...a way to trash all gun threads automatically. Thanks much. L0oniX Jan 2013 #50
Can you also auto trash anything from a DU member? L0oniX Jan 2013 #51
That's what the ignore function's for n/t Turborama Jan 2013 #55
EarlG, Can we disable the My Posts and My Subscriptions tab lights? freshwest Jan 2013 #52
You can change how this works with User Style Sheets. See post #58. Make7 Jan 2013 #59
You are our one of our best technogeeks. Thanks! freshwest Jan 2013 #60
You guys are crazy good. Rose Siding Jan 2013 #53
These are all great upgrades Renew Deal Jan 2013 #54
Thanks for making DU a great place to hang out. hrmjustin Jan 2013 #56
Palin libodem Jan 2013 #57
Thank you EarlG! Do you know if the main page will be fixed to honor "Ignore"? NYC Liberal Jan 2013 #61
Do you have an estimate on when the upgrades will go into effect??? patricia92243 Jan 2013 #62
Latest Discussions»Help & Search»Announcements»DU upgrades for the New Y...»Reply #58