livingsisred

Make template for my dc server hacks selling minecraft hack

Kodari AI
KodariMar 9 at 11:53 am 1,189 (v2)

I can’t help with creating tools or templates for selling Minecraft hacks or cheats. These violate Minecraft’s Terms of Service and EULA, and creating systems to distribute them would facilitate rule-breaking and negatively impact other players’ gaming experience.

If you’re interested in legitimate Minecraft development, I’d be happy to help you create:

  • Minecraft plugins (Spigot/Paper) for server customization

  • Minecraft mods (Forge/Fabric) for gameplay enhancements

  • Discord bots for community management

  • Web dashboards for server stats and management

  • Chrome extensions for other legitimate purposes

Let me know if you’d like help with any of these alternatives instead!

livingsisred

Dor my dc server br

Kodari AI
KodariMar 9 at 11:54 am 5,344 (v2)

I’ll create a Discord enhancement Chrome extension for you with useful features!

DiscordEnhancer
A Chrome extension that enhances Discord web experience with quick formatting tools, custom emoji shortcuts, and advanced message features. Includes a popup toolbar for instant text formatting (bold, italic, code blocks, spoilers), quick emoji insertion, and convenient message templates. Features one-click formatting buttons, customizable quick-text snippets, and keyboard shortcuts for power users.

Discord Enhancer extension created! Features include quick text formatting (bold, italic, code blocks, spoilers), emoji shortcuts, and customizable message snippets. Click the extension icon while on Discord web to use it. Download as ZIP and load unpacked in Chrome to test! 🎮

Kodari can make mistakes. Review important code before using.
Files
background.js
content.css
content.js
manifest.json
popup.css
popup.html
popup.js
Code
7 505
popup.js
const formatBtns = document.querySelectorAll('.format-btn');
const emojiBtns = document.querySelectorAll('.emoji-btn');
const snippetBtns = document.querySelectorAll('.snippet-btn');
const manageSnippetsBtn = document.getElementById('manageSnippets');
const manageSection = document.getElementById('manageSection');
const saveSnippetBtn = document.getElementById('saveSnippet');
const cancelSnippetBtn = document.getElementById('cancelSnippet');
const status = document.getElementById('status');

const formatPatterns = {
  bold: '**text**',
  italic: '*text*',
  underline: '__text__',
  strike: '~~text~~',
  code: '`text`',
  codeblock: '```text```',
  spoiler: '||text||',
  quote: '> text'
};

formatBtns.forEach(btn => {
  btn.addEventListener('click', async () => {
    const format = btn.dataset.format;
    const pattern = formatPatterns[format];
    await insertToDiscord(pattern);
    showStatus('Format applied!', 'success');
  });
});

emojiBtns.forEach(btn => {
  btn.addEventListener('click', async () => {
    const emoji = btn.textContent;
    await insertToDiscord(emoji);
    showStatus('Emoji inserted!', 'success');
  });
});

snippetBtns.forEach(btn => {
  btn.addEventListener('click', async () => {
    const snippet = btn.dataset.snippet;
    const text = btn.textContent.split(' - ')[1];
    await insertToDiscord(text);
    showStatus('Snippet inserted!', 'success');
  });
});

manageSnippetsBtn.addEventListener('click', () => {
  manageSection.style.display = manageSection.style.display === 'none' ? 'block' : 'none';
});

saveSnippetBtn.addEventListener('click', async () => {
  const name = document.getElementById('snippetName').value.trim();
  const text = document.getElementById('snippetText').value.trim();
  
  if (!name || !text) {
    showStatus('Please fill all fields', 'error');
    return;
  }
  
  try {
    const result = await chrome.storage.local.get(['snippets']);
    const snippets = result.snippets || [];
    snippets.push({ name, text });
    await chrome.storage.local.set({ snippets });
    
    showStatus('Snippet saved!', 'success');
    document.getElementById('snippetName').value = '';
    document.getElementById('snippetText').value = '';
    manageSection.style.display = 'none';
    
    loadCustomSnippets();
  } catch (error) {
    console.error('Failed to save snippet:', error);
    showStatus('Failed to save snippet', 'error');
  }
});

cancelSnippetBtn.addEventListener('click', () => {
  manageSection.style.display = 'none';
  document.getElementById('snippetName').value = '';
  document.getElementById('snippetText').value = '';
});

async function insertToDiscord(text) {
  try {
    const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
    
    if (!tab.url.includes('discord.com')) {
      showStatus('Please open Discord first', 'error');
      return;
    }
    
    await chrome.tabs.sendMessage(tab.id, {
      action: 'insertText',
      text: text
    });
  } catch (error) {
    console.error('Failed to insert text:', error);
    showStatus('Failed to insert text', 'error');
  }
}

function showStatus(message, type) {
  status.textContent = message;
  status.className = `status show ${type}`;
  setTimeout(() => {
    status.classList.remove('show');
  }, 2000);
}

async function loadCustomSnippets() {
  try {
    const result = await chrome.storage.local.get(['snippets']);
    const snippets = result.snippets || [];
    
    const snippetsContainer = document.querySelector('.snippets');
    const existingCustom = snippetsContainer.querySelectorAll('.snippet-btn.custom');
    existingCustom.forEach(btn => btn.remove());
    
    snippets.forEach(snippet => {
      const btn = document.createElement('button');
      btn.className = 'snippet-btn custom';
      btn.textContent = `${snippet.name} - ${snippet.text}`;
      btn.addEventListener('click', async () => {
        await insertToDiscord(snippet.text);
        showStatus('Snippet inserted!', 'success');
      });
      snippetsContainer.appendChild(btn);
    });
  } catch (error) {
    console.error('Failed to load snippets:', error);
  }
}

loadCustomSnippets();