lkulknmiu

Autorefresh GuteFrage

Nov 12th, 2021 (edited)
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Autorefresh GuteFrage
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.gutefrage.net/fragen/neue/1
  8. // @icon         https://www.google.com/s2/favicons?domain=gutefrage.net
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13.     'use strict';
  14.  
  15.     //I'd use this, but it's just going to trigger a full refresh anyways
  16.     //const clickNeue = () => Array.from(document.getElementsByClassName("Tabs-tab--button Tabs-tab")).find((e) => e.textContent === "Neue").getElementsByTagName("A")[0].click();
  17.     setInterval(() => location.reload(), 15000)
  18. })();
Add Comment
Please, Sign In to add comment