Coder Social home page Coder Social logo

styler's Introduction

styler's People

Contributors

simov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

styler's Issues

Upgrade to chrome extension manifest.json 3

Manifest V3 will prevent external script / style execution.
I wonder if this is considered OK for Styler.

If so, it would be great to see an updated version of the extension on Google Chrome.

Feature request: Remove old CSS after injecting new CSS

Hey! As I'm working with CSS, the inspector gets bigger, and bigger, and more unreadable the more changes I make, because every time I change the CSS, it adds a new block without removing the old block.

If you could remove the old CSS after injecting new CSS, that would be fantastic.

(To avoid too much unnecessary repaint, we should first inject the new CSS, THEN remove the old stuff.)

Add this code to the inject of the CSS:

// Label our new element, so it can be removed later.
style.setAttribute('class', 'Styler-CSS');  

// Get every **.Styler-CSS** except the last one.
var oldElements = document.getElementsByClassName('Styler-CSS');
oldElements = oldElements.splice(oldElements.length - 1); 
if (oldElements.length > 0) {
     // If there is at least one **oldElement**, remove them all.
     Array.from(oldElements).forEach(element => element.remove());
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.