Discuss Scratch

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

MagicCrayon9342
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!

Last edited by MagicCrayon9342 (July 2, 2022 21:16:14)


mybearworld
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

MagicCrayon9342 wrote:

(#76)
Huge question, why isn't this on NPM?
Because this is not for node.js?

Signatures are the only place where assets links still work.
NFlex23
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good 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.
Before you post: Is what you're posting likely to start an argument or derail the thread (e.g., browsers, operating systems)? If so, please re-think your post!





MagicCrayon9342
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.

PoIygon
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

MagicCrayon9342 wrote:

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
Then just remove const and add let










uwv
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

MagicCrayon9342 wrote:

(#85)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too often

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!)

uwv wrote:

MagicCrayon9342 wrote:

(#85)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too often
can you still value++ if value is a constant?

ScolderCreations
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

MagicCrayon9342 wrote:

uwv wrote:

MagicCrayon9342 wrote:

(#85)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed. Uncaught SyntaxError: redeclaration of const mmwsRuleRegex using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too often
can you still value++ if value is a constant?
I believe so.

MagicCrayon9342
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

ScolderCreations wrote:

MagicCrayon9342 wrote:

uwv wrote:

MagicCrayon9342 wrote:

(#85)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed. Uncaught SyntaxError: redeclaration of const mmwsRuleRegex using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too often
can you still value++ if value is a constant?
I believe so.
you cant

uwv
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

MagicCrayon9342 wrote:

(#88)

uwv wrote:

MagicCrayon9342 wrote:

(#85)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too often
can you still value++ if value is a constant?
no, you use let for values that don't change and const for values that do change

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

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!)

MagicCrayon9342 wrote:

uwv wrote:

MagicCrayon9342 wrote:

(#85)

NFlex23 wrote:

MagicCrayon9342 wrote:

Alright, issue pinpointed.
Uncaught SyntaxError: redeclaration of const mmwsRuleRegex

using const for every… single… variable. is bad practice!
using const for every… possible… variable… is a very good practice!
wdym? it gets especially annoying when you want to re declare/modify variables.
thats the point of using const, const prevents you from redefining variables because you really shouldn't be changing variables too often
can you still value++ if value is a constant?
No, but you can still mutate its value if it's mutable.

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.
Before you post: Is what you're posting likely to start an argument or derail the thread (e.g., browsers, operating systems)? If so, please re-think your post!





mybearworld
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

god286 wrote:

I think you mean ‘mmws’ not ‘mwws’ in your code?
Whoops, fixed.

god286 wrote:

Also will this be also in the VSCode extension (syntax highlighting for mmws elements in HTML)
This would be unneccesary, it's already highlighted:


MagicCrayon9342 wrote:

vscode extension installer fails
Fixed as well, forgot to open the zip in write mode.

MagicCrayon9342 wrote:

Uncaught SyntaxError: redeclaration of const mmwsRuleRegex
I'm never redeclaring mmwsRuleRegex. Did you accidentally put the tag multiple times?

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!)

Chiroyce wrote:

(#92)
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
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!)

mybearworld wrote:

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.
I'd make a github workflow that runs every hour to fetch the source, sounds good?







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!)

Chiroyce wrote:

mybearworld wrote:

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.
I'd make a github workflow that runs every hour to fetch the source, sounds good?
That would work. Thanks for doing that!

Signatures are the only place where assets links still work.
Chiroyce
Scratcher
1000+ posts

[NOW IN JAVASCRIPT!] ~~ MMWS - MMWS Makes Websites Styled (Improved CSS!)

mybearworld wrote:

Chiroyce wrote:

mybearworld wrote:

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.
I'd make a github workflow that runs every hour to fetch the source, sounds good?
That would work. Thanks for doing that!
https://github.com/chiroyce1/MMWS - I'm creating the workflow right now…







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!)

Chiroyce wrote:

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.
An hour seems fine, I don't update that frequently. Again, thank you for doing this!!

Signatures are the only place where assets links still work.

Powered by DjangoBB