Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

How to I make CSS to make the background of my replies light green?
8/13/2020 | me

Posted on 08/13/2020 4:40:50 AM PDT by ChuckR163

I have Firefox with Stylus. Stylus allows me to change styling, including background colors, of certain elements on a page via CSS. I can then apply this CSS to one site only, like Freerepublic.com.

I'm able to change the background color of my username on this site in a reply like this:

a[href*="chuckr163"]
  { background-color: #99d78b !important; 
}

But how do I change the background color of my whole reply but not anyone else's reply? All replies have a CSS selector of "div.a2" but I don't want to color all replies, just my own replies.

Thank you!


TOPICS: Computers/Internet; Free Republic Policy/Q&A
KEYWORDS: anothervanity; css; freerepublic; howtoimake; vanity
Navigation: use the links below to view more comments.
first previous 1-2021-4041-42 next last
To: ChuckR163
Start by learning how to create a About Page.

You've had 22 years to play with that.

21 posted on 08/13/2020 5:51:08 AM PDT by Deaf Smith (When a Texan takes his chances, chances will be taken that's for sure)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Pollard

Uh, nobody else would see it...


22 posted on 08/13/2020 5:53:33 AM PDT by dinodino
[ Post Reply | Private Reply | To 5 | View Replies]

To: ChuckR163

So, you’re asking us to green light your project? Sure, go ahead. Knock yourself out.


23 posted on 08/13/2020 5:59:29 AM PDT by BipolarBob (The cost of abortion is a human sacrifice.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

Gotcha - I sped read your OP and mostly read the last sentence so I didn’t catch the Stylus FF addons part.

Don’t think it’s doable. The divs are a2, b2 etc but there’s no div specific to an individual FR user’s reply. I see what you’re wanting though. Something similar to your My Comments page but with green background instead of green text. That’s done with a <li - list item with a class=yourself but only applies to the My Comments page. I don’t see anything user based to grab onto like that for regular thread replies though.


24 posted on 08/13/2020 6:18:12 AM PDT by Pollard (whatever)
[ Post Reply | Private Reply | To 7 | View Replies]

To: ChuckR163

The ping function works. No need to colorize things.


25 posted on 08/13/2020 6:23:41 AM PDT by CodeToad (Arm Up! They Have!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

Try this for a starter

http://www.freerepublic.com/focus/f-news/938739/posts


26 posted on 08/13/2020 6:50:35 AM PDT by deport
[ Post Reply | Private Reply | To 1 | View Replies]

To: Theophilus
id be very surprised if you could use css of fr.

I find it very annoying when I look for good ol' html commands for use in FR replies, and my searches try to force me into css stuff that I made clear I didn't want.

I KNOW it is deprecated! I still want the information i requested!
27 posted on 08/13/2020 8:22:48 AM PDT by Dr. Sivana (There is no salvation in politics)
[ Post Reply | Private Reply | To 6 | View Replies]

To: ChuckR163

I have written a short script demonstrating a way to do it using JavaScript. If you have the Tampermonkey extension installed in your browser, visiting the following link should bring up a message asking if you wish to add the script: https://gitgud.io/frusertool/fr-userscript/-/raw/master/frhighlighter.user.js
I tried to paste it here but the formatting was too much of a hassle.


28 posted on 08/13/2020 9:18:52 AM PDT by fluorescence
[ Post Reply | Private Reply | To 1 | View Replies]

To: Openurmind

Thank you for a great response!


29 posted on 08/13/2020 9:55:27 AM PDT by 9422WMR (Scamdemic 2020)
[ Post Reply | Private Reply | To 20 | View Replies]

To: Larry Lucido

Be careful. I keep ruining monitors. It might have something to do with the highlighter. After I finish marking up this one i’ll let you know.


30 posted on 08/13/2020 9:59:54 AM PDT by Rebelbase
[ Post Reply | Private Reply | To 4 | View Replies]

To: ChuckR163

I thought the Style tab was disabled on FR?


31 posted on 08/13/2020 10:00:40 AM PDT by Rebelbase
[ Post Reply | Private Reply | To 1 | View Replies]

To: ChuckR163

W3 Schools - more links to left side.
https://www.w3schools.com/css/css_background.asp


32 posted on 08/13/2020 12:38:41 PM PDT by minnesota_bound (homeless guy. He just has more money....He the master will plant more cotton for the democrat party)
[ Post Reply | Private Reply | To 1 | View Replies]

To: 9422WMR

Thank you for mentioning the issue. We have been pulling our hair out trying to isolate the problem for her going on two weeks now. Hearing that she is not the only one having this possible Safari issue is priceless to me. Would it happen to be 16.3? This is the version she is having issues with.


33 posted on 08/13/2020 3:35:55 PM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 29 | View Replies]

To: Openurmind

I assume it’s the latest safari version as I only update the iPhone software as recommended.
I’m not sure where to find the version of Safari I’m running on this XR iPhone.


34 posted on 08/13/2020 7:28:08 PM PDT by 9422WMR (Scamdemic 2020)
[ Post Reply | Private Reply | To 33 | View Replies]

To: 9422WMR

I know you probably tried this, and I am not familiar with Safari security settings at all, but will it let you whitelist just certain sites/domains like the FR? So that no security features apply to it at all?


35 posted on 08/14/2020 4:48:00 AM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 34 | View Replies]

To: Openurmind

I’ll try to see if I can find that. Weird thing today I’m still logged in after logging in last night and driving to work today. It can randomly sign me out for changing rooms at home.
Frustrating!


36 posted on 08/14/2020 8:13:08 AM PDT by 9422WMR (Scamdemic 2020)
[ Post Reply | Private Reply | To 35 | View Replies]

To: 9422WMR

OK, now that is weird, that sounds like local ISP censoring of certain domains? I actually ran into that myself a few times. And the FR is a perfect candidate for them to do that...


37 posted on 08/14/2020 9:34:20 AM PDT by Openurmind (The ultimate test of a moral society is the kind of world it leaves to its children. ~ D. Bonhoeffer)
[ Post Reply | Private Reply | To 36 | View Replies]

To: ChuckR163

How to I make CSS to make the background of my replies light green?

You could place them in a table, in which you use a template with two rows, one for the text you are replying to and another for your reply, and choose the background, fonts, etc for each.

To save typing, you could do this by using Firefox Quantum and the bbcodewebex/ extension to create a custom codes (or use Firefox ESR legacy and BBCodeXtra, which I use for posting on FR), or see https://cynwoody.appspot.com/fr_posting_form_enhancer.html (Free Republic Posting Form Enhancer) which provides table codes, etc. or maybe the AutoFill Forms (WebExtension) or another autotext app that will enable you to paste the table codes.

Or by creating a html document with tables on a word processor, in which you choose the background color, and then loading that in Firefox. Then write your replies in the doc in the word processor, save it and go to your Firefox browser, refresh the page, and select (highlight) the whole table and R. click and choose View selected text, and copy and paste that.

The latter is what I used to create this reply, using Apache Open Office.


38 posted on 08/15/2020 5:54:15 AM PDT by daniel1212 (Trust the risen Lord Jesus to save you as a damned and destitute sinner + be baptized + follow Him)
[ Post Reply | Private Reply | To 1 | View Replies]

To: 9422WMR
I do not have that problem on the browser I use (Firefox ESR). Try Firefox Quantum portable
39 posted on 08/15/2020 5:58:30 AM PDT by daniel1212 (Trust the risen Lord Jesus to save you as a damned and destitute sinner + be baptized + follow Him)
[ Post Reply | Private Reply | To 17 | View Replies]

To: daniel1212
You could place them in a table, in which you use a template with two rows, one for the text you are replying to and another for your reply, and choose the background, fonts, etc for each.
Oh I see, when I make the post I should put my text in a table. But I'm trying to do this with CSS without having to change how I post things. Stylus only changes styling of existing tags, it does not insert or delete tags themselves, so I was hoping to use Stylus and CSS.
40 posted on 08/16/2020 4:34:34 AM PDT by ChuckR163 (http://qmap.pub, http://qanon.pub)
[ Post Reply | Private Reply | To 38 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-42 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson