Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » [NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
- MagicCrayon9342
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
Library fails to import with the following errors
Some cookies are misusing the recommended “SameSite“ attribute
The script from “https://scratch.mit.edu/discuss/post/6429679/source/” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
Some cookies are misusing the recommended “SameSite“ attribute
Some cookies are misusing the recommended “SameSite“ attribute
The script from “https://scratch.mit.edu/discuss/post/6429679/source/” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
Some cookies are misusing the recommended “SameSite“ attribute
- MagicCrayon9342
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
- mybearworld
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
(#76)Because this is not for node.js?
Huge question, why isn't this on NPM?
Signatures are the only place where assets links still work.
- NFlex23
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
using const for every… possible… variable… is a very Alright, issue pinpointed.good practice!
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
using const for every… single… variable. is bad practice!
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- MagicCrayon9342
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
- PoIygon
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
Then just remove const and add letwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed.good practice!
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
using const for every… single… variable. is bad practice!
- uwv
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
(#85)thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too oftenwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed.good practice!
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
using const for every… single… variable. is bad practice!
i use arch linux (btw) with the linux zen kernel and enjoy writing silly things in silly languages using silly frameworks
- MagicCrayon9342
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
can you still value++ if value is a constant?(#85)thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too oftenwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed.good practice!
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
using const for every… single… variable. is bad practice!
- ScolderCreations
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
I believe so.can you still value++ if value is a constant?(#85)thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too oftenwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed. Uncaught SyntaxError: redeclaration of const mmwsRuleRegex using const for every… single… variable. is bad practice!good practice!
- MagicCrayon9342
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
you cantI believe so.can you still value++ if value is a constant?(#85)thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too oftenwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed. Uncaught SyntaxError: redeclaration of const mmwsRuleRegex using const for every… single… variable. is bad practice!good practice!
- uwv
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
(#88)no, you use let for values that don't change and const for values that do changecan you still value++ if value is a constant?(#85)thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too oftenwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed.good practice!
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
using const for every… single… variable. is bad practice!
i use arch linux (btw) with the linux zen kernel and enjoy writing silly things in silly languages using silly frameworks
- Chiroyce
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
If this already isn't on GitHub, I can make a repo for it if you'd like.
This is a really good piece of software that has a genuine use case for developers, so it'd be bad if it isn't easily accessible for others, therefore I'm willing to help
This is a really good piece of software that has a genuine use case for developers, so it'd be bad if it isn't easily accessible for others, therefore I'm willing to help
Last edited by Chiroyce (July 3, 2022 10:06:25)
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- NFlex23
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
No, but you can still mutate its value if it's mutable.can you still value++ if value is a constant?(#85)thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too oftenwdym? it gets especially annoying when you want to re declare/modify variables.using const for every… possible… variable… is a very Alright, issue pinpointed.good practice!
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
using const for every… single… variable. is bad practice!
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- mybearworld
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
Whoops, fixed. I think you mean ‘mmws’ not ‘mwws’ in your code?
This would be unneccesary, it's already highlighted: Also will this be also in the VSCode extension (syntax highlighting for mmws elements in HTML)
Fixed as well, forgot to open the zip in write mode. vscode extension installer fails
I'm never redeclaring mmwsRuleRegex. Did you accidentally put the tag multiple times? Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
Last edited by mybearworld (July 3, 2022 11:27:34)
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
(#92)I'd love that, but the problem is that I can't easily edit it, which means I'd still have to have an up-to-date version on Scratch, which would defeat the point.
If this already isn't on GitHub, I can make a repo for it if you'd like.
This is a really good piece of software that has a genuine use case for developers, so it'd be bad if it isn't easily accessible for others, therefore I'm willing to help
Signatures are the only place where assets links still work.
- Chiroyce
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
I'd make a github workflow that runs every hour to fetch the source, sounds good? I'd love that, but the problem is that I can't easily edit it, which means I'd still have to have an up-to-date version on Scratch, which would defeat the point.
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- mybearworld
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
That would work. Thanks for doing that!I'd make a github workflow that runs every hour to fetch the source, sounds good? I'd love that, but the problem is that I can't easily edit it, which means I'd still have to have an up-to-date version on Scratch, which would defeat the point.
Signatures are the only place where assets links still work.
- Chiroyce
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
https://github.com/chiroyce1/MMWS - I'm creating the workflow right now…That would work. Thanks for doing that!I'd make a github workflow that runs every hour to fetch the source, sounds good? I'd love that, but the problem is that I can't easily edit it, which means I'd still have to have an up-to-date version on Scratch, which would defeat the point.
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Chiroyce
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
Done! https://github.com/chiroyce1/MMWS will now check for updates and auto update the main.js script every hour - is that too little? Should I make it every 10 minutes? And also let me know if you have any other script that you want to auto update.
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- mybearworld
- Scratcher
1000+ posts
[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)
https://github.com/chiroyce1/MMWS will now check for updates and auto update the main.js script every hour - is that too little? Should I make it every 10 minutes? And also let me know if you have any other script that you want to auto update.An hour seems fine, I don't update Done! that frequently. Again, thank you for doing this!!
Signatures are the only place where assets links still work.