Google Drive Auto Download (without preview)

Auto download files from Google Drive without preview.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Google Drive Auto Download (without preview)
// @namespace    https://greasyfork.org/en/users/223360
// @version      1.0.0.1
// @description  Auto download files from Google Drive without preview.
// @author       Zennar
// @match        https://drive.google.com/*
// @match        https://docs.google.com/*
// @grant        none
// @icon         https://ssl.gstatic.com/docs/doclist/images/infinite_arrow_favicon_4.ico
// @run-at       document-end
// ==/UserScript==vvvar thisUrl = document.location.href;
var thisUrl=location.href;
if(/[drive|docs].google.com\/file/.test(thisUrl))
{
    var gdf_id= /\/file\/d\/([^\/]+)/i.exec(thisUrl);
    var newhref = location.protocol+'//'+location.hostname+'/uc?id='+gdf_id[1]+'&export=download'
    location.href=newhref;
}
if(/[drive|docs].google.com\/uc\?id/.test(thisUrl))
{
    var dlbtn = document.getElementById('uc-download-link');
    if (dlbtn.href.length > 0) {
        dlbtn.click();
    }
}