![]()
This block would make it to where people don’t need to see the code to play the game if the game uses JS.
![]()
This block would make it to where people don’t need to see the code to play the game if the game uses JS.
It used to be JavaScript extensions were always enabled. But then they were used by a malicious actor who tried to use it to install malware on people’s computers. Now, you have to enter the editor and enable JavaScript extensions from there - the idea being you check all the uses of JavaScript first if you don’t trust the source. This will not be added.
I wish. JS extensions originally didn’t need this but then some guy made a fake login screen to steal your data. I think this block should exist, or at the very least, Snap! should whitelist more safe user-made extensions.
I would like to be able to say yes to this, but it would mean either that users couldn’t update their libraries, or we’d spend all our time trying to catch up.
for your own purpose, you can use a userscript to bypass enabling js. The script enable js extension for YOUR computer and YOUR projects.
(function() {
let userName = “#present:Username=YOUR-USER-NAME-HERE”;
if( location.hash.indexOf( userName)==0 || location.hash === “”){
Process.prototype.enableJS = true;
};
})();
save any project in your account (now it’s your own project) and js extension flag will be TRUE automaticly
You could probably modify this script to enable the JavaScript extension for any project, but I don’t recommend it. The best practice is to read the code if you encounter a JavaScript error to understand why the developer is using it (maybe). When in doubt, don’t disable the JavaScript extension (unless the author is bh or jens… don’t run the code of the iwillhackyouinthenextsecond user
).
Well i think it’s kinda the point that you have to look at the code first to enable java script because snap had a hack back then that involved java script so then the snap devs made it so you have to go into the editor to turn it on.
I’m wondering, why do you think the JS setting exists?
someone willing to abuse the JS block is willing to hack an account, i’m sure.