simov / styler Goto Github PK
View Code? Open in Web Editor NEWStyler / Browser Extension
License: MIT License
Styler / Browser Extension
License: MIT License
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.
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());
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.