您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
药丸
// ==UserScript== // @name 微软搞事(MSDN订户显示) // @version 0.3 // @description 药丸 // @author InoriHimea // @require https://code.jquery.com/jquery-3.2.1.min.js // @match *://msdn.microsoft.com/*/subscriptions/downloads/* // @match *://msdn.microsoft.com/subscriptions/downloads/* // @match *://msdn.microsoft.com/*/subscriptions/securedownloads/* // @match *://msdn.microsoft.com/subscriptions/securedownloads/* // @grant unsafeWindow // @grant GM_setClipboard // @run-at document-end // @namespace https://gf.qytechs.cn/users/136944 // ==/UserScript== (function() { 'use strict'; $("#SubMigratedMessageArea").remove(); window.setTimeout(function(){ var length = $(".detailrow").length; if (length > 0) { $(".buttonscolumn").each(function(index){ $(this).remove(); }); } },1500); window.setTimeout(function(){ $("#DownloadsArea").fadeIn(1000,function(){ $(".newSubscriberDownloadProducts").click(function(){ let href = $(this).find("a").attr("href"); let value = href.substr(href.indexOf("#"),(href.length - href.indexOf("#"))); window.location.href += value; window.location.reload(); }); var length = $(".detailrow").length; console.log("length:" + length); if (length > 0) { $(".detailrow").each(function(index){ let id = $(this).find("div")[0].id; //console.log(id); let postId = id.substr(4,id.length); //console.log(postId); let $detail = $("<label class=\"detailtitle\">文件名:</label><label id=\"filenameLabel\"></label><br/><label class=\"detailtitle\">语言:</label><label id=\"languagesLabel\"></label><br/><label class=\"detailtitle\">SHA1:</label><label id=\"sha1Label\"></label><br/><label class=\"detailtitle\">大小:</label><label id=\"sizeLabel\"></label>"); $("#" + id).append($detail); $("#" + id).css("display","block"); let postUrl = "https://msdn.microsoft.com/en-us/subscriptions/securejson/GetFileDetail"; let postData = {"fileId":postId,"brand":"MSDN"}; $.ajax({ url : postUrl, type : "POST", data : postData, dataType : "json", success : function(json){ $(".detailrow").eq(index).find("#filenameLabel").text(json.FileName); $(".detailrow").eq(index).find("#languagesLabel").text(json.Languages[0]); $(".detailrow").eq(index).find("#sha1Label").text(json.Sha1Hash); $(".detailrow").eq(index).find("#sizeLabel").text(json.Size); } }); }); } }); },2000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址