Skip to content

Instantly share code, notes, and snippets.

@ElectroHeavenVN
Last active July 15, 2024 10:40
Show Gist options
  • Select an option

  • Save ElectroHeavenVN/2ab1b9b4a352ec11c7c54e2597fc86c0 to your computer and use it in GitHub Desktop.

Select an option

Save ElectroHeavenVN/2ab1b9b4a352ec11c7c54e2597fc86c0 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name TeaMobi skip 10s download
// @namespace https://github.com/ElectroHeavenVN/
// @version 1.0.0
// @description Download the file instantly without wasting your 10 seconds.
// @author ElectroHeeavenVN
// @match http://dl.teamobi.com/get/index.php*
// @match http://dl.teamobi.com/drive/get*
// @icon https://www.google.com/s2/favicons?sz=64&domain=teamobi.com
// @updateURL https://gist.github.com/ElectroHeavenVN/2ab1b9b4a352ec11c7c54e2597fc86c0/raw/TeaMobiSkip10s.user.js
// @downloadURL https://gist.github.com/ElectroHeavenVN/2ab1b9b4a352ec11c7c54e2597fc86c0/raw/TeaMobiSkip10s.user.js
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
var interval = setInterval(() => {
var btnDownload = document.getElementById("btnD");
if (btnDownload)
{
btnDownload.disabled = false;
btnDownload.click();
clearInterval(interval);
}
}, 100);
var original_setInterval = setInterval;
setInterval = (func, interval) => {
var funcContents = func.toString();
if (funcContents.includes("Vui lòng chờ") && funcContents.includes("Tải Ngay"))
return null;
else
return original_setInterval(func, interval);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment