Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
911 B
3
Indexable
Never
// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://strawpoll.com/polls/40ZmdOmj4ga/
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.querySelector('#strawpoll_box_40ZmdOmj4ga > div.space-y-8.mb-8 > div.box.is-primary.overflow-visible.custom-box-bg.custom-box-border.custom-box-border-top.max-w-3xl.mx-auto > form > div:nth-child(5) > div:nth-child(2) > div').childNodes.forEach((e) => {
        try {
            if (e.getAttribute('for') != 'option-2ayL64Go3g4') {e.remove()}
        } catch (e) {}
    })
    document.querySelector('input[id="option-2ayL64Go3g4"]').click()
    window.scroll(0 , 300)
})();