Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

JavaScript Anti-Anti-DevTools?

KittenKatja

Well-Known Coder
I just wanna inspect this website and change the look with CSS using Stylus. (a script injector)
Also, it seems like code is being run while debugger is active, which seems to contradict what debugger should be doing.
 
I just wanna inspect this website and change the look with CSS using Stylus. (a script injector)
Also, it seems like code is being run while debugger is active, which seems to contradict what debugger should be doing.
What are you trying to accomplish with this? out of curiosity... Do you have the proper permissions from site owner(s)/devs to do so?
 
I just wanna inspect this website and change the look with CSS using Stylus. (a script injector)
Also, it seems like code is being run while debugger is active, which seems to contradict what debugger should be doing.
What are you trying to accomplish with this? out of curiosity... Do you have the proper permissions from site owner(s)/devs to do so?
Didn't I state my intentions already?
 
Didn't I state my intentions already?
I am asking to clarify a few things... so if you could please bear with me, it would be greatly appreciated. Now, as per my question, do you have explicit permissions from site owners/devs for you to be changing the site's css, or any code for that matter?
 
I do not have permissions from the site owner/devs.
If you can try getting permission, that would be great. However, just so we're clear - we're cautious about this not because we think you're a bad actor but because of the potential effects this may implicate if a bad actor sees this thread and then uses it maliciously against that site or others. And if the site owners tried tracing it back and found this thread, we could be in trouble.

Our goal is to protect users and our brand.
 
Can you at least tell me how I can replicate this for my own websites?

Also, it seems to be inside one of the main scripts, as I also got a script blocker (uMatrix), as when it stops triggering, it also stops making the website work properly. (making me still unable to inspect the elements I want to change)
 
Can you at least tell me how I can replicate this for my own websites?

Also, it seems to be inside one of the main scripts, as I also got a script blocker (uMatrix), as when it stops triggering, it also stops making the website work properly. (making me still unable to inspect the elements I want to change)
This is done for a very specific reason. If you are trying to change it for your own viewing pleasure, I suggest you use the DOM, where all changes are only persistent until the page reloads. These are temporary and local. Anything else would be considered a bypass of whatever security measure was set in place by the owners/devs, and further requests to attempt this will result in a permanent ban from CodeForum. Regarding your own site.. I suggest you make a copy of your site, localize it, aka put this copy in dev mode while keeping what's already live as it is, disabling that script blocker in dev mode, making changes, and re-enabling the script blocker.
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom