Remove msdl fork

This commit is contained in:
DESKTOP-RBH716R\Admin 2022-09-22 22:13:09 +05:30
parent c45361b02d
commit 1acb492d12
8 changed files with 7 additions and 298 deletions

View File

@ -399,8 +399,8 @@ div.tocify {
<p>All download links leads to genuine files only.</p>
<table>
<colgroup>
<col width="52%" />
<col width="47%" />
<col width="51%" />
<col width="48%" />
</colgroup>
<thead>
<tr class="header">
@ -411,8 +411,9 @@ div.tocify {
<tbody>
<tr class="odd">
<td align="left">Windows 11/10/8.1</td>
<td align="left"><a href="https://massgrave.dev/msdl/">Link1</a> - <a
href="https://www.microsoft.com/software-download">Link2</a></td>
<td align="left"><a
href="https://www.microsoft.com/software-download">Link1</a> - <a
href="https://eraseyourknees.github.io/msdl/">Link2</a></td>
</tr>
<tr class="even">
<td align="left">Windows 7</td>

View File

@ -1,19 +0,0 @@
# Enable TLSv1.2 for compatibility with older clients
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
$DownloadURL = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/master/MAS/All-In-One-Version/MAS_AIO.cmd'
$FilePath = "$env:TEMP\MAS.cmd"
try {
Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath
} catch {
Write-Error $_
Return
}
if (Test-Path $FilePath) {
Start-Process $FilePath -Wait
$item = Get-Item -LiteralPath $FilePath
$item.Delete()
}

View File

@ -1,8 +0,0 @@
{
"products": {
"52": "Windows 8.1 (Build 9600)",
"55": "Windows 8.1 N (Build 9600)",
"2084": "Windows 10 21H2 (Build 19044.1288)",
"2360": "Windows 11 22H2 (Build 22621.382)"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

View File

@ -1,59 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Microsoft Software Download Listing lets you browse and download products from Microsoft Software Download.">
<meta property="twitter:card" content="summary_large_image">
<meta property="og:site_name" content="Microsoft Software Download Listing">
<meta property="og:title" content="Microsoft Software Download Listing">
<meta property="og:type" content="website">
<meta property="og:description" content="Microsoft Software Download Listing lets you browse and download products from Microsoft Software Download.">
<meta property="og:image" content="https://eraseyourknees.github.io/msdl/img/cover.png">
<meta property="og:url" content="https://eraseyourknees.github.io/msdl/">
<title>Microsoft Software Download Listing</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
<script defer src="js/msdl.js"></script>
</head>
<body>
<a href="https://github.com/massgravel/mas-docs/tree/main/_site/msdl">Forked</a> from <a href="https://github.com/eraseyourknees/msdl">https://github.com/eraseyourknees/msdl</a>
<noscript>
<p>This page requires JavaScript to work.</p>
</noscript>
<div id="products-list" style="display: none;">
<h2>Select product</h2>
<table style="table-layout: auto;">
<thead>
<tr>
<th>Product</th>
<th>ID</th>
</tr>
</thead>
<tbody id="products-table-body"></tbody>
</table>
</div>
<div id="msdl-ms-content" style="display: none;"></div>
<div id="msdl-please-wait" style="display: none;">
<h2>Please wait...</h2>
<p>Please wait while the data you requested is being retrieved.</p>
</div>
<div id="msdl-processing-error" style="display: none;">
<h2>Error</h2>
<p>An error has occurred while processing your request.</p>
</div>
<div id="back-to-products" style="display: none;">
<hr>
<button onClick="backToProducts();">Go back to the product list</button>
</div>
<input id="msdl-session-id" type="hidden">
</body>
</html>

View File

@ -1,206 +0,0 @@
const langsUrl = "https://www.microsoft.com/en-us/api/controls/contentinclude/html?pageId=cd06bda8-ff9c-4a6e-912a-b92a21f42526&host=www.microsoft.com&segments=software-download%2cwindows11&query=&action=getskuinformationbyproductedition&sdVersion=2";
const downUrl = "https://www.microsoft.com/en-us/api/controls/contentinclude/html?pageId=cfa9e580-a81e-4a4b-a846-7b21bf4e2e5b&host=www.microsoft.com&segments=software-download%2Cwindows11&query=&action=GetProductDownloadLinksBySku&sdVersion=2";
const sessionId = document.getElementById('msdl-session-id');
const msContent = document.getElementById('msdl-ms-content');
const pleaseWait = document.getElementById('msdl-please-wait');
const processingError = document.getElementById('msdl-processing-error');
const productsList = document.getElementById('products-list');
const backToProductsDiv = document.getElementById('back-to-products');
var msdlXhr = new XMLHttpRequest();
function uuidv4() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
);
}
function updateVars() {
var id = document.getElementById('product-languages').value;
if(id == "") {
document.getElementById('submit-sku').disabled = 1;
return;
}
id = JSON.parse(id);
document.getElementById('submit-sku').disabled = 0;
return id;
}
function checkForError(content) {
var errorMessage = document.getElementById('errorModalMessage');
if(errorMessage) {
processingError.style.display = "block";
content.style.display = "none";
return true;
}
return false;
}
function updateContent(content, response) {
content.innerHTML = response;
return !checkForError(content);
}
function abortAndHide() {
msdlXhr.abort();
msContent.style.display = 'none';
pleaseWait.style.display = 'none';
processingError.style.display = 'none';
window.location.hash = "";
}
function fixSubmitSku() {
var submitSku = document.getElementById('submit-sku');
submitSku.setAttribute("onClick", "getDownload();");
}
function fixProdLang() {
var prodLang = document.getElementById('product-languages');
prodLang.setAttribute("onChange", "updateVars();");
}
function fixLanguageList() {
fixSubmitSku();
fixProdLang();
}
function onLanguageXhrChange() {
if(!(this.readyState == 4 && this.status == 200))
return;
if(pleaseWait.style.display != "block")
return;
pleaseWait.style.display = "none";
msContent.style.display = "block";
if(!updateContent(msContent, this.responseText))
return;
fixLanguageList();
updateVars();
}
function onDownloadsXhrChange() {
if(!(this.readyState == 4 && this.status == 200))
return;
if(pleaseWait.style.display != "block")
return;
pleaseWait.style.display = "none";
msContent.style.display = "block";
if(!updateContent(msContent, this.responseText))
return;
}
function getLanguages(productId) {
sessionId.value = uuidv4();
msContent.style.display = "none";
pleaseWait.style.display = "block";
var url = langsUrl + "&productEditionId=" + encodeURIComponent(productId) +
"&sessionId=" + encodeURIComponent(sessionId.value);
msdlXhr.abort();
msdlXhr.onreadystatechange = onLanguageXhrChange;
msdlXhr.open("GET", url, true);
msdlXhr.send();
}
function getDownload() {
msContent.style.display = "none";
pleaseWait.style.display = "block";
var id = updateVars();
var url = downUrl + "&skuId=" + encodeURIComponent(id['id']) +
"&language=" + encodeURIComponent(id['language'])+
"&sessionId=" + encodeURIComponent(sessionId.value);
msdlXhr.abort();
msdlXhr.onreadystatechange = onDownloadsXhrChange;
msdlXhr.open("GET", url, true);
msdlXhr.send();
}
function backToProducts() {
abortAndHide();
backToProductsDiv.style.display = 'none';
productsList.style.display = 'block';
}
function prepareDownload(id) {
productsList.style.display = 'none';
backToProductsDiv.style.display = 'block';
return getLanguages(id);
}
function createTable(data) {
var table = document.getElementById('products-table-body');
for(value in data) {
var a = document.createElement('a')
a.href = "#" + value;
a.setAttribute("onClick", "prepareDownload(" + value + ");");
a.appendChild(document.createTextNode(data[value]))
var tr = table.insertRow();
var td = tr.insertCell();
td.appendChild(a);
var td2 = tr.insertCell();
td2.appendChild(document.createTextNode(value))
}
}
function checkHash() {
var hash = window.location.hash;
if(hash.length == 0)
return
prepareDownload(hash.substring(1))
}
function preparePage(resp) {
var data = JSON.parse(resp);
createTable(data['products']);
pleaseWait.style.display = 'none';
productsList.style.display = 'block';
checkHash();
}
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if(this.readyState != 4)
return;
if(this.status != 200) {
pleaseWait.style.display = 'none';
processingError.style.display = 'block';
return;
}
preparePage(this.responseText);
};
xhr.open("GET", 'data/products.json', true);
xhr.send();
pleaseWait.style.display = 'block';

View File

@ -3,8 +3,8 @@
All download links leads to genuine files only.
| **Windows** | |
|:------------------------------------|:---------------------------------|
| Windows 11/10/8.1 | [Link1](https://massgrave.dev/msdl/) - [Link2](https://www.microsoft.com/software-download) |
|:------------------------------------|:----------------------------------|
| Windows 11/10/8.1 | [Link1](https://www.microsoft.com/software-download) - [Link2](https://eraseyourknees.github.io/msdl/) |
| Windows 7 | [Link1](https://stuff.mtt-m1.workers.dev/Windows%207/) - [Link2](https://isofiles.bd581e55.workers.dev/Windows%207/) |
| Windows 10 Enterprise LTSB/LTSC | [Link1](https://opendirectory.luzea.de/luzea/Windows_10_Enterprise_LTSC_2021/) - [Link2](https://stuff.mtt-m1.workers.dev/Windows%2010/) - [Link3](https://isofiles.bd581e55.workers.dev/Windows%2010/) |
| **Office** | |