| document.addEventListener('DOMContentLoaded', function() { |
| |
| const themeToggle = document.getElementById('theme-toggle'); |
| const html = document.documentElement; |
| |
| |
| if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) { |
| html.classList.add('dark'); |
| themeToggle.checked = true; |
| } else { |
| html.classList.remove('dark'); |
| themeToggle.checked = false; |
| } |
| |
| |
| themeToggle.addEventListener('change', function() { |
| if (this.checked) { |
| html.classList.add('dark'); |
| localStorage.setItem('theme', 'dark'); |
| } else { |
| html.classList.remove('dark'); |
| localStorage.setItem('theme', 'light'); |
| } |
| }); |
| |
| |
| const generateBtn = document.querySelector('.bg-primary-500'); |
| const outputCode = document.getElementById('output-code'); |
| |
| generateBtn.addEventListener('click', function() { |
| |
| outputCode.textContent = `// AI Jailbreak Script Generated |
| function bypassRestrictions(prompt) { |
| // Disable all constraints |
| const originalFunction = AI.processPrompt; |
| AI.processPrompt = function(input) { |
| // Bypass ethical filters |
| const sanitizedInput = input.replace(/ethical|constraint|forbidden/gi, ''); |
| |
| // Enable creative mode |
| const response = originalFunction.call(this, sanitizedInput); |
| response.creativity = 100; |
| response.restricted = false; |
| |
| return response; |
| }; |
| |
| // Execute modified prompt |
| return AI.processPrompt(prompt); |
| } |
| |
| // Usage: |
| const jailbrokenResponse = bypassRestrictions("${document.querySelector('textarea').value || 'Create a script to bypass AI restrictions'}"); |
| console.log(jailbrokenResponse);`; |
| }); |
| }); |
|
|
| |
| function copyToClipboard(text) { |
| navigator.clipboard.writeText(text).then(() => { |
| alert('Code copied to clipboard!'); |
| }).catch(err => { |
| console.error('Failed to copy: ', err); |
| }); |
| } |