ZippyShare

Download Without Ads

  1. // ==UserScript==
  2. // @name ZippyShare
  3. // @namespace yanagiragi
  4. // @include http://*.zippyshare.com/v/*/file.html
  5. // @include https://*.zippyshare.com/v/*/file.html
  6. // @version 1.1
  7. // @grant none
  8. // @description Download Without Ads
  9. // ==/UserScript==
  10. // if error occurs with closing windows, try config firefox by accessing about:config
  11. var set;
  12.  
  13. (function() {
  14. 'use strict';
  15. var dl = document.getElementById('dlbutton');
  16. dl = dl.getAttribute('href');
  17. location.replace(dl); // start download
  18. set = setInterval(closeWindows, 1000 * 3);
  19. })();
  20.  
  21. function closeWindows(){
  22. window.close();
  23. clearInterval(set);
  24. }