Skip to content

Instantly share code, notes, and snippets.

@wfjsw
Last active May 30, 2020 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wfjsw/ae24624b7a2a33e2b0cc213ade303bba to your computer and use it in GitHub Desktop.
Save wfjsw/ae24624b7a2a33e2b0cc213ade303bba to your computer and use it in GitHub Desktop.
1000phone auto sign in
// ==UserScript==
// @name 1000Phone Auto Sign In
// @namespace https://jsw3286.eu.org/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://pt.1000phone.net/livingRoom?*
// @require https://code.jquery.com/jquery-3.5.1.min.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
const $$ = jQuery.noConflict();
function checkAndSignIn() {
const timer = $$(".signed-time");
if (timer.length == 0 || timer.text() == "00") {
// not started
return;
}
const btn = $$(".btn-signed");
btn.click();
console.log("Sign In Completed.");
return;
}
window.autoSignInTimer = setInterval(() => checkAndSignIn(), 3000);
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment