<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
	$key = 'Tool Get Direct Link - Google Drive, Dropbox, OneDrive';
	$mkey = 'Tool Get Direct Link - Google Drive, Dropbox, OneDrive , lấy link chia sẻ, link tải trực tiếp từ dịch vụ chia sẻ file nổi tiếng Google Drive , get link tải nhanh ';
	require '../../template/header.php';
?>

	<div class="col-right-xs">
		<div class="mainblok">
			<div class="phdr">
					<div vocab="https://schema.org/" typeof="BreadcrumbList">
						<span property="itemListElement" typeof="ListItem">
							<a href="/"  property="item" typeof="WebPage">
								<i class="fa fa-home"></i> <span property="name">Home</span>
							</a>
							<meta property="position" content="1">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<a href="/getlink/"  property="item" typeof="WebPage">
								<i class="fa fa-chain-broken"></i> <span property="name">GetLink</span>
							</a>
							<meta property="position" content="2">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<span property="name">Tool Get Direct Link - Google Drive, Dropbox, OneDrive</span>
							<meta property="position" content="3">
						</span>
					</div>
			</div>
			<div class="newsx">Tool Get Direct Link - Google Drive, Dropbox, OneDrive . Direct link là dạng link download trực tiếp, có nghĩa là khi bạn bấm vào đường link đó nó sẽ tự động tải xuống luôn mà không cần phải click thêm một lần nào nữa.</div>
			<div class="menu">
				<strong>Link hỗ trợ:</strong><br> 
						https://drive.google.com/open?id=1ahBnis4T3Vjk74MNpIjI9yuoEQ4q47SC<br />
						https://drive.google.com/file/d/1ahBnis4T3Vjk74MNpIjI9yuoEQ4q47SC/view?usp=sharing<br />
						https://www.dropbox.com/sh/bxswq8vmi8v31n6/AACtgqddh21mwbJ5mK1eNGcOa?dl=0<br />
						https://onedrive.live.com/embed?cid=E5DA28800C57A84E&resid=E5DA288OOC57A84E%21126&authkey=ACrSKTVU7RjQI0M
			</div>
			<div class="menu">
				<form role="form" class="form-horizontal" id="form" method="post" onSubmit="return false;">  
					<label for="cde">Nhập đường link được chia sẻ:</label> 
					<input id="cde" placeholder="e.g., https://drive.google.com/file/d/1ahBnis4T3Vjk74MNpIjI9yuoEQ4q47SC/view?usp=sharing" type="text" class="form-control" autofocus />
					<input type="submit" id="but" value="Lấy link get" name="submit" /> 
				</form>
			</div>
			<div class="list2">
				<label for="linkpaste">Direct Download link:</label> 
				<input id="linkpaste" readonly="" type="text" class="form-control" autofocus />
			</div>
		</div>
<?php require '../list.php'; ?>
	</div>
	<div class="col-left-xs">
<?php require '../../tools/toolslist.php'; ?>
	</div>
	<div class="clear"></div>

<script>
$(document).ready(function(){
	$("#but").click(function(){
		var add = $("#cde").val();
		var drive = add.indexOf("google.com/file/d/");
		var drive2 = add.indexOf("google.com/open");
		var dbox = add.indexOf("dropbox.com/s");
		var odrive = add.indexOf("onedrive.live.com");
		if (drive != -1) {
			var start = add.indexOf("d/");
			var end = add.indexOf("/view");
			var reString = add.slice(start + 2, end);
			var link = "https://drive.google.com/uc?export=download&id=" + reString + "";
			$("#linkpaste").val(link);
			$("#linkpaste").select();
		} else if (drive2 != -1) {
			var start = add.indexOf("id=");
			var end = add.length;
			var reString = add.slice(start+3, end);
			var link = "https://drive.google.com/uc?export=download&id=" + reString + "";
			$("#linkpaste").val(link);
			$("#linkpaste").select();
		} else if (dbox != -1) {
			var link = add.replace("?dl=0", "?dl=1");
			$("#linkpaste").val(link);
			$("#linkpaste").select();
		} else if (odrive != -1) {
			var link = add.replace("redir", "download");
			var link = add.replace("embed", "download");
			$("#linkpaste").val(link);
			$("#linkpaste").select();
		} else {
			$("#linkpaste").val('Xin lỗi, có vẻ như link bạn vừa dán chưa chia sẻ công khai hoặc không đúng! Vui lòng kiểm tra lại!');
		}
	});
});
</script>
</div>

<?php
	require '../../template/footer.php';
?>