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!
You've had 22 years to play with that.
Uh, nobody else would see it...
So, you’re asking us to green light your project? Sure, go ahead. Knock yourself out.
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.
The ping function works. No need to colorize things.
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.
Thank you for a great response!
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.
I thought the Style tab was disabled on FR?
W3 Schools - more links to left side.
https://www.w3schools.com/css/css_background.asp
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.
I assume its the latest safari version as I only update the iPhone software as recommended.
Im not sure where to find the version of Safari Im running on this XR iPhone.
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?
Ill try to see if I can find that. Weird thing today Im 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!
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...
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. |
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.
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.