您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
The Australia Post eParcel site wraps label PDF downloads in an <object> tag that interferes with browsers' normal PDF display and printing. This script "unwraps" those PDF links.
// ==UserScript== // @name De-embed AusPost PDFs // @namespace mailto:[email protected] // @esversion 6 // @version 1.0 // @description The Australia Post eParcel site wraps label PDF downloads in an <object> tag that interferes with browsers' normal PDF display and printing. This script "unwraps" those PDF links. // @author Roy-Orbison // @include https://eparcel.auspost.com.au/eParcel/merchant/auth/viewLabelsDownload.do // @include https://online.auspost.com.au/eParcel/merchant/auth/viewLabelsDownload.do // @run-at document-end // ==/UserScript== (function(pdfPath, loc) { pdfPath = loc.protocol + '//' + loc.host + pdfPath; unsafeWindow.openPDFWindow = function(indirectReference) { unsafeWindow.open(pdfPath + indirectReference); }; unsafeWindow.replaceWindowWithPDF = function(indirectReference) { unsafeWindow.location = pdfPath + indirectReference; }; })('/eParcel/merchant/auth/submitLabelsDownload.do?autoPrint=true&temporaryPdfSysId=', unsafeWindow.location);