Conversaciones » Peticiones de scripts
// ==UserScript==// @name Discord Music ID Grabber// @namespace Violentmonkey Scripts// @include https://discord.com/*// @include https://*.discord.com/*// @grant GM_xmlhttpRequest// @run-at document-end// @version 1.2// ==/UserScript==(function() { 'use strict'; console.log("Script Discord Grabber Carregado!"); const panel = document.createElement('div'); panel.style = "position:fixed;top:20px;right:20px;width:220px;max-height:300px;background:#232428;color:white;z-index:99999;padding:15px;border-radius:10px;overflow-y:auto;font-family:sans-serif;box-shadow: 0 4px 15px rgba(0,0,0,0.5);border:2px solid #5865f2;"; panel.innerHTML = "🎵 Roblox Audio IDs
"; document.body.appendChild(panel); const list = document.getElementById('music-list'); const processedIds = new Set(); function checkRobloxAsset(id) { if (processedIds.has(id)) return; processedIds.add(id); GM_xmlhttpRequest({ method: "GET", url: `https://economy.roblox.com/v2/assets/${id}/details`, onload: function(res) { if (res.status === 200) { const data = JSON.parse(res.responseText); if (data.AssetTypeId === 3) { const li = document.createElement('li'); li.style = "background:#2f3136;margin-top:5px;padding:5px;border-radius:5px;font-size:11px;"; li.innerHTML = `${data.Name}ID: ${id} Copiar`; list.appendChild(li); } } } }); } setInterval(() => { const textNodes = document.querySelectorAll('[class^="messageContent"]'); textNodes.forEach(node => { const matches = node.innerText.match(/\d{7,12}/g); if (matches) matches.forEach(id => checkRobloxAsset(id)); }); }, 3000); // Checa novas mensagens a cada 3 segundos})();
${id}
Inicia sesión para responder.
// ==UserScript==
// @name Discord Music ID Grabber
// @namespace Violentmonkey Scripts
// @include https://discord.com/*
// @include https://*.discord.com/*
// @grant GM_xmlhttpRequest
// @run-at document-end
// @version 1.2
// ==/UserScript==
(function() {
'use strict';
console.log("Script Discord Grabber Carregado!");
const panel = document.createElement('div');
panel.style = "position:fixed;top:20px;right:20px;width:220px;max-height:300px;background:#232428;color:white;z-index:99999;padding:15px;border-radius:10px;overflow-y:auto;font-family:sans-serif;box-shadow: 0 4px 15px rgba(0,0,0,0.5);border:2px solid #5865f2;";
panel.innerHTML = "🎵 Roblox Audio IDs
";
document.body.appendChild(panel);
const list = document.getElementById('music-list');
const processedIds = new Set();
function checkRobloxAsset(id) {
if (processedIds.has(id)) return;
processedIds.add(id);
GM_xmlhttpRequest({
method: "GET",
url: `https://economy.roblox.com/v2/assets/${id}/details`,
onload: function(res) {
if (res.status === 200) {
const data = JSON.parse(res.responseText);
if (data.AssetTypeId === 3) {
const li = document.createElement('li');
li.style = "background:#2f3136;margin-top:5px;padding:5px;border-radius:5px;font-size:11px;";
li.innerHTML = `${data.Name}
ID:
${id}Copiar`;list.appendChild(li);
}
}
}
});
}
setInterval(() => {
const textNodes = document.querySelectorAll('[class^="messageContent"]');
textNodes.forEach(node => {
const matches = node.innerText.match(/\d{7,12}/g);
if (matches) matches.forEach(id => checkRobloxAsset(id));
});
}, 3000); // Checa novas mensagens a cada 3 segundos
})();