index.js 962 B

1234567891011121314151617181920212223242526272829303132333435
  1. const con = (url) => {
  2. document.querySelector("body").innerHTML = `<strong>Carregando...</strong>`
  3. // To connect
  4. const wtf = (m) => {
  5. fetch(m)
  6. console.log(`Conecting to ${m}...`)
  7. }
  8. // improve the list default
  9. let listD = ["https://github.com",
  10. "https://jul10l1r4.github.io/",
  11. "https://twitter.com",
  12. "https://www.instagram.com/",
  13. "https://wowjs.uk/",
  14. "https://notabug.org/",
  15. "https://discordapp.com/",
  16. "https://leadlovers.com/account/login?ReturnURL=/machine"]
  17. // For aplicate
  18. let result = listD.map(wtf)
  19. // Tratament on errors
  20. if(result){
  21. // Connect original site :3
  22. fetch(url).then((d1) => {
  23. // Convert [html data] in html data
  24. return d1.text()
  25. }).then((d2) => {
  26. // Successfully
  27. document.querySelector("body").innerHTML = `<h1>Ok</h1>`
  28. // Sending data get
  29. window.location = url
  30. return true
  31. })
  32. }else{
  33. document.querySelector("body").innerHTML = `Houve um erro em sua segurança, que estranho...`
  34. }
  35. }