mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
16 lines
469 B
JavaScript
16 lines
469 B
JavaScript
|
console.log(`
|
||
|
Hello! I am running from a script injected on the page by Loconotion 🎉
|
||
|
This could be an analytics script, real-time chat support script, or anything you want really.
|
||
|
`);
|
||
|
fetch("https://api.quotable.io/random")
|
||
|
.then((data) => {
|
||
|
return data.json();
|
||
|
})
|
||
|
.then((response) => {
|
||
|
console.log("Here's a quote for your time:");
|
||
|
console.log(response.content + " --" + response.author);
|
||
|
})
|
||
|
.catch((error) => {
|
||
|
console.log(error);
|
||
|
});
|