DataFileHost Uncheck Download Manager

Unchecks Download Manager then downloads file.

  1. // ==UserScript==
  2. // @name DataFileHost Uncheck Download Manager
  3. // @namespace techietrash/datafilehost
  4. // @version 0.2
  5. // @description Unchecks Download Manager then downloads file.
  6. // @include http://www.datafilehost.com/d/*
  7. // @copyright techietrash (CC BY-NC 3.0) 2013, Creative Commons Attribution-NonCommercial 3.0 Unported
  8. // ==/UserScript==
  9.  
  10. var uncheckIt = function () {
  11. //console.log("document.cbf.cb.checked: " + document.cbf.cb.checked);
  12. console.log(">>> Unchecking Download Manager...");
  13. document.cbf.cb.checked = false;
  14. dm();
  15. console.log(">>> Downloading File...");
  16. window.location = document.querySelector('#dl a').href;
  17. console.log('>>> Finished');
  18. };
  19. window.setTimeout(uncheckIt, 900);