Auto-claim and hide ads without breaking claim system on liteonion.online
当前为
// ==UserScript==
// @name Lite Onion
// @namespace http://tampermonkey.net/
// @version 2.2
// @description Auto-claim and hide ads without breaking claim system on liteonion.online
// @author 👽
// @match https://liteonion.online/*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// Step 1: Hide ads with CSS instead of removing them
const style = document.createElement('style');
style.innerHTML = `
iframe[src*="ads"],
iframe[src*="banner"],
.adsbygoogle,
#ads,
.ad,
[id^="ad_"],
[class*="ad-"],
[class^="ad_"],
div[style*="z-index: 9999"] {
visibility: hidden !important;
opacity: 0 !important;
height: 1px !important;
width: 1px !important;
pointer-events: none !important;
}
`;
document.head.appendChild(style);
// Step 2: Auto-claim logic
window.addEventListener('load', () => {
setTimeout(() => {
const claimButton = document.querySelector('#subbutt');
if (claimButton) {
claimButton.click();
console.log('Claim Now button clicked!');
} else {
console.log('Claim Now button not found.');
}
// Step 3: Wait another 6 seconds then reload
setTimeout(() => {
location.reload();
console.log('Page refreshed!');
}, 6000);
}, 7000);
});
})();