generated from Thermotronica/bookmark-captcha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
workaround
39 lines (30 loc) · 1.46 KB
/
workaround
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
// Function to call the CAPTCHA script hosted on GitHub
async function fetchCaptcha() {
const captchaUrl = 'https://github.com/Thermotronica/ghosteyezzzz/tree/main'; // Update with your actual URL
try {
// Fetch the CAPTCHA script from GitHub
const response = await fetch(captchaUrl);
if (!response.ok) {
throw new Error(`Error fetching CAPTCHA script: ${response.statusText}`);
}
const scriptContent = await response.text();
// Process CAPTCHA here (depending on how your CAPTCHA script works)
console.log("CAPTCHA Script fetched successfully.");
// Load CAPTCHA to DOM or process it
eval(scriptContent); // Safely execute the fetched script
// Further logic depending on how the CAPTCHA works...
// For example: if you need to solve it or send the result somewhere, implement that logic here.
} catch (error) {
console.error("Failed to fetch CAPTCHA script:", error);
}
}
// Execute the function to fetch and load CAPTCHA
fetchCaptcha();
// Prevent pasting artifacts like 'bplist00' in input fields or other areas
document.addEventListener('paste', function(e) {
e.preventDefault(); // Prevent pasting
let text = (e.clipboardData || window.clipboardData).getData('text');
// Clean up pasted text to remove unwanted binary artifacts
text = text.replace(/bplist00.+/, ''); // Adjust the regex as per the unwanted artifact pattern
document.execCommand('insertText', false, text);
});