-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-button.js
More file actions
57 lines (49 loc) · 1.43 KB
/
Copy pathtest-button.js
File metadata and controls
57 lines (49 loc) · 1.43 KB
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
// Simple test to inject a button anywhere on ChatGPT
console.log('ContextZero Test: Script starting...');
function createTestButton() {
console.log('ContextZero Test: Creating test button...');
// Remove existing test button
const existing = document.getElementById('contextzero-test-button');
if (existing) {
existing.remove();
}
// Create a very visible test button
const button = document.createElement('div');
button.id = 'contextzero-test-button';
button.innerHTML = `
<div style="
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 200px;
height: 100px;
background: #ff6b35;
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
border-radius: 10px;
cursor: pointer;
z-index: 999999;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
border: 3px solid white;
">
ContextZero Test
</div>
`;
button.addEventListener('click', () => {
alert('ContextZero extension is working!');
});
document.body.appendChild(button);
console.log('ContextZero Test: Button created and added to page');
}
// Run immediately
createTestButton();
// Also try after delays
setTimeout(createTestButton, 1000);
setTimeout(createTestButton, 3000);
setTimeout(createTestButton, 5000);
console.log('ContextZero Test: Script completed');