Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How to write script to modify webpage automatically? (JavaScript, CSS, HTML)?

I know I can inspect element and change for example background color. But I wanna write some kind of script which will change background color for me. Anyone know how? Example or link would be nice.

3 Answers

Relevance
  • Anonymous
    5 years ago
    Favorite Answer

    You can not, your script would need to know the name of the class or id of each area it needed to change. Which will be different on every page.

  • Chris
    Lv 7
    5 years ago

    For pure CSS mods you can use Stylish; if you need to run JS code, use GreaseMonkey.

    Both extensions should be available for Chrome as well as Firefox.

  • cpcii
    Lv 7
    5 years ago

    Is this on your own site, or on a site you visit?

    If its your site its easy to to, if its a site you visit, you can't unless they have a 'customize' button which is rare (I think myspace used to have it but tahts about it).

    More information would be better to be able to answer your question though.

Still have questions? Get your answers by asking now.