Restore original links in outlook / stop safelinks

Outlook is wrapping all links in emails with their own server. undo that and restore the original links.

// ==UserScript==
// @name         Restore original links in outlook / stop safelinks
// @description  Outlook is wrapping all links in emails with their own server. undo that and restore the original links.
// @description:en  It is annoying when Outlook is wrapping all links in emails with their own server. undo that and restore the original links.
// @license MIT
// @namespace    http://tampermonkey.net/
// @version      2025-08-27
// @author       Oria
// @match        https://outlook.office.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function magic() {
        [...document.querySelectorAll("[originalsrc][href]")].forEach(
        (e) => {
            e.href=e.getAttribute("originalsrc");
            e.removeAttribute("originalsrc");
        });
    }
    setInterval(magic,400);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址