
send |
New update! Swag FRENZY added new VIP colors and owner colors!!!
Check out the README before use.Guilded Server Known Bugs Moderator Application Blacklisted Features (features we won't add)
document.getElementById("open_iframe_popup").onclick = function() { var popup = document.getElementById("xp_iframe_popup"); popup.style.display = "block"; popup.style.left = "50%"; popup.style.top = "20%"; popup.style.transform = "translateX(-50%)"; }; document.addEventListener("click", function(e) { var target = e.target; // Traverse up to find an anchor element while (target && target.tagName !== "A") target = target.parentElement; if ( target && target.tagName === "A" && target.href && !target.hasAttribute("target") && !target.hasAttribute("download") ) { e.preventDefault(); var iframe = document.getElementById("xp_iframe_frame"); document.getElementById("xp_iframe_popup").style.display = "block"; iframe.src = target.href; } }); document.getElementById("xp_iframe_close").onclick = function() { var iframe = document.getElementById("xp_iframe_frame"); iframe.contentWindow.location.replace("about:blank"); // Stop all media document.getElementById("xp_iframe_popup").style.display = "none"; }; // Make XP popup draggable (function() { var popup = document.getElementById("xp_iframe_popup"); var header = document.getElementById("xp_iframe_titlebar"); var isDragging = false, startX, startY, origX, origY; header.addEventListener("mousedown", function(e) { isDragging = true; origX = popup.offsetLeft; origY = popup.offsetTop; startX = e.clientX; startY = e.clientY; popup.style.transform = ""; // Remove centering transform while dragging document.body.style.userSelect = "none"; }); document.addEventListener("mousemove", function(e) { if (isDragging) { popup.style.left = (origX + (e.clientX - startX)) + "px"; popup.style.top = (origY + (e.clientY - startY)) + "px"; } }); document.addEventListener("mouseup", function() { isDragging = false; document.body.style.userSelect = ""; }); })();