I made another, way better HTML parser, a year minus 9 days (leap year adds a day) after my original.
It doesn't have as many tags yet, but it has basic inline CSS!
I made 90% of this today, the rest like a month ago.
Project , my first one
Credits: W3Schools for the text colors (I made js script to extract colors), a bunch of people that made the xml parser in snap I cant find rn
script I made
let colors = [];
Array.from(document.getElementsByClassName("w3-col l4 m6 w3-center colorbox")).forEach((i) => {
const color = i.innerText.split("\n");
const currentColor = [color[0], color[2].substring(1)];
colors.push(currentColor);
});
console.log(colors);
I like it, but you should move this topic to Share your Projects , because this topic is for topics who need help with their scripts.
Oh, this was originally a draft for another thing and I forgot to switch topics, sorry
You should create a new topic instead, because once a topic is created in Help with Snap! , switching to another category will not disable the 30-day inactivity closure feature.
Also, why not start a collab of this? That would be a big project and the more people the better.
I'll pass, if someone wants to ask a question about it after the thirty day period, they can quote it and start a new topic
Thanks!
Sure, but not this project, the development one has a bit more and is more stable
cool!
one thing: in the first script you can
condense two set [parsed V] to []
blocks
@here if you want to contribute here's the dev version, with very basic and laggy style tag parsing (currently only for p elements)
system
Closed
January 7, 2025, 3:08am
11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.