Greasy Fork is available in English.
Faucet Automation
// ==UserScript==
// @name LitecoinBits Auto Roll
// @namespace LitecoinBits Auto faucet claim
// @version 1.0
// @description Faucet Automation
// @author Shnethan
// @match https://litecoinbits.com/*
// @icon https://litecoinbits.com/static/favicon-32x32.png
// @license GPL-3.0
// @grant none
// ==/UserScript==
(function() {
'use strict';
const u = window.location;
const x = 'https://litecoinbits.com/?ref=26886';
if (u.pathname === '/' && u.search === '') {
window.location.replace(x);
return;
}
if (!u.search.includes('ref=26886')) return;
let r = false;
let f = false;
const o = new MutationObserver(() => {
if (!r) {
const b = document.querySelectorAll("button");
b.forEach(btn => {
if (
btn.innerText.includes("Roll") &&
btn.innerText.includes("Win") &&
btn.offsetParent !== null
) {
btn.click();
r = true;
}
});
}
if (r && !f) {
const s = document.querySelector('#faucetMessage .alert-success');
if (s) {
const rb = s.querySelector('button.btn-danger');
if (rb) {
rb.click();
f = true;
o.disconnect();
}
}
}
});
o.observe(document.body, {
childList: true,
subtree: true
});
})();