Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-06-2012, 01:59 PM
|
#1
|
|
Member
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 80
Rep:
|
Changing the parameter of an inline style declaration in HTML? (I know... off topic)
Hi fellow Slackers,
I know this is off-topic but I would like to ask this in this forum since it's home for me as a Slackware user, and also because its members are highly knowledgeable. So, please bear with this little question:
There's a webpage where a section with material I would like to see is surrounded by a <div> tag. Now, the problem is that this tag has an inline style that prevents it from being displayed, e.g., <div id="Whatever" display:none>
My question is: how could I alter that particular inline style without disrupting anything else on the page? I'm using Chrome and Firefox.
Thanks!
|
|
|
|
10-06-2012, 02:11 PM
|
#2
|
|
LQ Newbie
Registered: Nov 2009
Posts: 17
Rep:
|
Quote:
Originally Posted by sombragris
Hi fellow Slackers,
I know this is off-topic but I would like to ask this in this forum since it's home for me as a Slackware user, and also because its members are highly knowledgeable. So, please bear with this little question:
There's a webpage where a section with material I would like to see is surrounded by a <div> tag. Now, the problem is that this tag has an inline style that prevents it from being displayed, e.g., <div id="Whatever" display:none>
My question is: how could I alter that particular inline style without disrupting anything else on the page? I'm using Chrome and Firefox.
Thanks!
|
<div id="whatever" display:none><span style="blahh blah blah"> stuff you want to have styled</span></div>
That should do it
|
|
|
|
10-06-2012, 02:37 PM
|
#3
|
|
Member
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 80
Original Poster
Rep:
|
odm4286: Thanks. But perhaps I didn't explain myself correctly.
The page is on the Web and I cannot edit it. What I would like is for the browser to alter singlehandedly, client-side, the inline style declaration so that display:none gets changed into something like display:screen (or simply gets deleted).
I want to do it transparently and automatically, every time I access the page. It would be something like AdBlock plus, but only for this particular style declaration.
Thanks 
|
|
|
|
10-06-2012, 03:10 PM
|
#4
|
|
Senior Member
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 2,786
|
This could help if you use Firefox.
Or try the Stylish add-on for Firefox.
Last edited by Didier Spaier; 10-06-2012 at 03:15 PM.
Reason: Second sentence added.
|
|
|
1 members found this post helpful.
|
10-06-2012, 03:27 PM
|
#5
|
|
LQ Newbie
Registered: Feb 2011
Distribution: Slackware
Posts: 12
Rep:
|
You could change it with javascript. on Firefox open the console with Ctrl+Shift+K and paste this line(change "whatever" with the id you need).
Code:
document.getElementById("whatever").style.display = "screen";
I am not very familiar with javascript but I believe the above should work.
If this works, you could install greasemonkey and install as a userscript in order to execute this automatically every time you visit the page.
I am not sure about chrome, but I guess something similar should work.
You could also use the Stylish addon that Didier Spaier suggested.
Last edited by WetDreams; 10-06-2012 at 03:32 PM.
|
|
|
1 members found this post helpful.
|
10-06-2012, 04:28 PM
|
#6
|
|
Member
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 80
Original Poster
Rep:
|
Thanks, I'm going to try all the suggestions. I might go with stylish or the per-site CSS that Didier suggested.
|
|
|
|
10-06-2012, 05:00 PM
|
#7
|
|
Member
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 80
Original Poster
Rep:
|
I'm happy to report that the Stylish add-on is available for both Chrome and Firefox and a simple userstyle fixed my problem. THANK YOU!!! Marking the thread as solved.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:59 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|