User:Vegetaledefender/PvXSmart

This is just a proof of concept

[build prof=Mesmer/Ritualist FastCasting=10+3 DominationMagic=12+1+3 InspirationMagic=8+1 RestorationMagic=2][Energy Surge][Spiritual Pain][Unnatural Signet][Mistrust][Cry of Frustration][Power Drain][Optional][Shatter Hex][/build]

let $link = document.createElement("link"); $link.href = "https://provinzkraut.de/static/gwbbcode.css"; $link.type = "text/css"; $link.rel = "stylesheet"; document.getElementsByTagName("head")[0].appendChild($link);

let $tags = document.querySelectorAll(".pvxsmart") let requestData = []

for (let tag of $tags) { requestData.push(tag.textContent) }

fetch("https://provinzkraut.de/pvxtools/pvxsmart", {	method: "POST",	body: JSON.stringify(requestData),	headers: {"Content-Type": "application/json"} }) .then(res => res.json) .then(json => {	for (let i = 0; i < json.length; i++) {		$tags[i].innerHTML = json[i]	} })