Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

331
Vistas
Discord 'refused to load the script'

I am trying to make a bookmarklet that shows my password when clicked before I log in on discord. I am running the javascript locally from another file called bookmarklet.js. The script will not run because I am getting the error:

Refused to load the script 'http://localhost:8888/bookmarklet.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'unsafe-inline' 'nonce-NjgsOTIsMjAxLDk5LDEyOSwyMzAsMTI3LDU0

What does this mean? Is there a way to have discord load my script?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Since discord and almost every site uses Cors to protect from (self) xss attacks, you definitely can't run a code from bookmarklet, since you can see http://localhost:8888 is not the same as https://discord.com. Therefore, if you are really wanting to run a js code, you can try any of these two methods:

  1. Write javascript:<your js code, in one line, line separated by ";" ofc> in your address bar, and press enter, it will run that js code. Works on (maybe almost) every browser, including mobile! You still need to save the code somewhere, preferably on desktop.

  2. Save the code as a txt or js file on your desktop, and open it everytime and copy paste the code to your dev tools console.

Also do note, if you're planning to use your account as self bot purposes, it's against Discord tos, and my answer was only for educational purposes.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda