Last active
August 25, 2021 09:03
-
-
Save Scrxtchy/18968ba71af320e1c3f790b94f2e66c6 to your computer and use it in GitHub Desktop.
FF14 Angler AA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FishingShit - ff14angler.com | |
// @namespace Violentmonkey Scripts | |
// @match https://*.ff14angler.com/* | |
// @match https://ff14angler.com/* | |
// @grant none | |
// @version 1.0.1 | |
// @author Scratch | |
// @description 8/25/2021, 6:19:31 PM | |
// @updateURL https://gist.github.com/Scrxtchy/18968ba71af320e1c3f790b94f2e66c6/raw/ff14Angler.user.js | |
// @downloadURL https://gist.github.com/Scrxtchy/18968ba71af320e1c3f790b94f2e66c6/raw/ff14Angler.user.js | |
// ==/UserScript== | |
console.log("anglerscript") | |
//ToFix: Canvas machine broke | |
let i = setInterval(function(){ | |
if (typeof contents !== 'undefined'){ | |
clearInterval(i) | |
let fD = new FormData(); | |
fD.append('contents', contents) | |
fetch("https://en.ff14angler.com/get_contents.php", { | |
method: 'POST', | |
body: fD | |
}) | |
.then(response=>response.text()) | |
.then(result=>{ | |
document.getElementById("main_contents").innerHTML = result | |
activate_contents() | |
}) | |
} | |
},1000) | |
function check_adsense (){ | |
return true // lol | |
} | |
addJS_Node(check_adsense) | |
function addJS_Node (text, s_URL, funcToRun, runOnLoad) { // https://stackoverflow.com/a/21274652 | |
const D = document; | |
const scriptNode = D.createElement ('script'); | |
if (runOnLoad) { | |
scriptNode.addEventListener ("load", runOnLoad, false); | |
} | |
scriptNode.type = "text/javascript"; | |
if (text) scriptNode.textContent = text; | |
if (s_URL) scriptNode.src = s_URL; | |
if (funcToRun) scriptNode.textContent = '(' + funcToRun.toString() + ')()'; | |
const targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement; | |
targ.appendChild (scriptNode); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment