Linkshrink-skipper

Automatically skips linkshrink without wait

  1. // ==UserScript==
  2. // @name Linkshrink-skipper
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Automatically skips linkshrink without wait
  6. // @author giuseppe-dandrea
  7. // @match http*://linkshrink.net/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. linkshrink_bypass();
  15.  
  16.  
  17. function linkshrink_bypass() {
  18. new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
  19. if ($('#btd').length === 1) {
  20. $('#btd').trigger('click');
  21. window.close();
  22. }
  23. else {
  24. linkshrink_bypass();
  25. }
  26. });
  27. }
  28. })();