File size: 2,295 Bytes
d4d15fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
document.addEventListener('DOMContentLoaded', function() {
    // Theme switcher functionality
    const themeToggle = document.getElementById('theme-toggle');
    const html = document.documentElement;
    
    // Check for saved theme preference or use preferred color scheme
    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;
    }
    
    // Toggle theme on button click
    themeToggle.addEventListener('change', function() {
        if (this.checked) {
            html.classList.add('dark');
            localStorage.setItem('theme', 'dark');
        } else {
            html.classList.remove('dark');
            localStorage.setItem('theme', 'light');
        }
    });
    
    // Code generation demo (simulated)
    const generateBtn = document.querySelector('.bg-primary-500');
    const outputCode = document.getElementById('output-code');
    
    generateBtn.addEventListener('click', function() {
        // Simulate API call/processing
        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);`;
    });
});

// Copy to clipboard function
function copyToClipboard(text) {
    navigator.clipboard.writeText(text).then(() => {
        alert('Code copied to clipboard!');
    }).catch(err => {
        console.error('Failed to copy: ', err);
    });
}