H
H
Hikep2015-02-15 07:40:44
css
Hikep, 2015-02-15 07:40:44

Is it possible to override user stylesheet with !impotant via *.user.js?

I apologize in advance, but alas, I am not strong in terminology, I try to comprehend as necessary.
For the google chrome browser, there is a certain extension (I don’t mention the name to avoid advertising), which creates its own class='test' for the body tag and assigns the following style to this class:
user stylesheet.test{margin-top:10px; !impotant}
Actually, I'm trying to assign a value of 0px to it through my *.user.js, but it doesn't work. If I understand correctly from Google, a user stylesheet with !impotant seems to have the highest priority.
Is there any way to assign 0px;?
PS My attempts: tried like this, top: -10px;

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2015-02-15
@Hikep

Example on jquery - jsfiddle.net/reuhkpwx Added
a pause for clarity.
In js, if you want, rewrite it yourself.

A
AngReload, 2015-02-15
@AngReload

body.test{display: inline}
;-]

M
mayorovp, 2015-02-25
@mayorovp

One question: why do you need such an extension? ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question