Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name 초이스 랜덤 번호 자동 투표 후 닫기
- // @namespace http://tampermonkey.net/
- // @version 0.3
- // @description try to take over the world!
- // @author 할붕이
- // @match https://m.kin.naver.com/mobile/choice/detail?*
- // @grant window.close
- // ==/UserScript==
- (function() {
- function aaa(bbb) {
- return document.evaluate(bbb, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
- }
- setTimeout(function() {
- var i = 0;
- var a = document.getElementById(i);
- while(a != null){
- var a = document.getElementById(i);
- i++;
- };
- if($('.choiceButton').text()!="다시 투표하기"){
- var num = Math.floor(Math.random() * i);
- document.getElementById(num).click();
- aaa("//html/body/div[2]/div/div[1]/div[2]/div[2]/button").click();
- window.close();
- }else{
- window.close();
- }
- }, 200)
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement