Skip to content

Instantly share code, notes, and snippets.

@luhaoming
Last active August 2, 2022 03:35
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 luhaoming/2ed295b2d7b3b310a7ed1ae8f91aecab to your computer and use it in GitHub Desktop.
Save luhaoming/2ed295b2d7b3b310a7ed1ae8f91aecab to your computer and use it in GitHub Desktop.
yahoo checkin
// ==UserScript==
// @name yahoo checkin
// @namespace http://tampermonkey.net/
// @version 0.6
// @description try to take over the world!
// @author haoming
// @match https://*.yahoo.com/points/checkin?id=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=yahoo.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var st=new Date()
document.title=st.getTime()
var go=setInterval(()=>{
Array.from(document.querySelectorAll("button")).pop().click()
},1000)
setTimeout(()=>{clearInterval(go)},10000)
setTimeout(()=>{location.reload()},5*60*1000)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment