Categories > Coding > HTML >

[source] discord webhook "pinger"

Posts: 15

Threads: 6

Joined: Dec, 2022

Reputation: 2

Posted

another bad html release.

 

source code:

<form>
  <textarea id="message" rows="4" cols="50"></textarea>
  <br>
  <button type="button" onclick="pingWebhook()">Ping Webhook</button>
</form>

<script>
  function pingWebhook() {
    const message = document.getElementById("message").value;
    fetch("webhooklinkhere", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ content: message })
    });
  }
</script>

 

you can use it online here: (this one uses embeds instead of messages)
https://discordwebhookpinger.neocities.org/

  • 1

Posts: 1

Threads: 0

Joined: Mar, 2023

Reputation: 0

Replied

Thank you for providing us with this useful information. This is a fantastic post! 

  • 1

Entity

Usability >> modern

vip

Posts: 416

Threads: 40

Joined: May, 2022

Reputation: 51

Replied

As long as it's not used for malicious purposes, it can definitely work. nice

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )