Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.
Changing your Avatar.
The only way to currently change a forum avatar is through Gravatar.com. The email address used for your Userstyles.org account must be one of the email addresses that is registered to your Gravatar account.

Editing the websites HTML file?

So, in theory I can edit the CSS of the websites files no problem however I encountered some images recently that don't have an ID or class and I would like to edit the html file specifically to add my own entries/elements.

IS THIS POSSIBLE! Thank you in advance

Comments

  • Can you inspect the elements and take a screenshot or copy the elements outer HTML.

    HTML wise you cant do jack. CSS yes. But like I said show us the inspection.
  • edited May 2018 Firefox
    You can use tools for the css path like firefox has, in Chrome.
    One example is Copy Css Selector
    And the tutorial(just in case) is here(YouTube)
    Or, else,
    Parent > Parent > img {css}

    By the way, you can't add element nodes using css, only add pure text or images(changing existing nodes attributes) if you want to add something in general.
    Gotta use JS for that(Editing HTML) and Greasemonkey/Tampermonkey is the tool.
  • edited May 2018 Firefox

    It is not possible to change the HTML with Stylish.
    However, in almost all cases you can use alternative selectors reliably like "use the third img that is child of #gallery".
    See here for possible selectors / relations or give us the present html structure so that we can help you.

Sign In or Register to comment.