wxmp-history-url

打开任意公众号文章,即可获取该公众号主页(历史消息)页面地址

// ==UserScript==
// @name         wxmp-history-url
// @namespace    http://tampermonkey.net/
// @version      0.1.1
// @description  打开任意公众号文章,即可获取该公众号主页(历史消息)页面地址
// @author       xplee
// @match        https://mp.weixin.qq.com/*
// @exclude      https://mp.weixin.qq.com/cgi-bin/*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAALC9JREFUeJztfQl8lPWZ/y6ZeyJWPGptu2qr1n/bbWu73d1e/93aVrfdrUeP7f6bzDtXCKcCSsETlVoKWhCxHlhFBatQaxW1WiuZ95hcBBJCSCAJkIQj5L4mx8y85/95nt87CJmQyZBJQvbTX9/GIZnjnd/ze+7v8zx/Z0yfpRq6Zj7U6aGGD+AnPNYN85pu6++m+gbGtnTzB+60Dov2XDM3Hf5HtMGfdE2nNU0IYOC203/w0nS2/5oOXGGo9AvzWQnmmDZrehBAP8kCQAfYbZUuDQhAXIAcgdTQ6OH0EkTTgwBs4eYbhsLkjKYpCQ4wdPidrBuKZqjEG9OJAucSAej0JvbvlE2kX/fI/RV9Te93Vb/UXPirI9sX1r/oqX7mv/au+96eNTdW/eaWfY979m9cXP/yb479+bXOMrGv9tBQy4A6xJjj9PfTT/uEqSbWVBJAZ7tDgkU1VA2Fiy6TFoWHCp5tpUeLvNm+e/nBbTfteewzpctnFc6zi77Rr5lC8MqixV+ueOCm6g2/PrT9rz1VUS2qIdvgO2umDgH5hbRWSYpN4TonOADUKUgP3AmZLtSw+nGla8nBVz8evsPC+6xSbpaUYw3nOkTOxXMOwTsKAWyC14bP8dkF7wzeYw37P1O2YlXTmxGlBxlMMWQZ5ZhsxPEfU02BKSOATsswTLsSWUCHzdePxtrf6Nx104F1lwgLrILfwQdcgh+20oGP/XY+YBUCNvjNmQngEP0OIeAI+d2hAFxOfBVnEQKfKFk2p+7FcF91rxrB468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/lN3/hdK7rt25/KrSpdeULvvczmVf2n3PN/b88vuVj+bWPH3Xwa2bW6TyyKEhPWpW17FgGOG5kd2YkciiNKl1gCmsmFurm/dvdnafaC0wcTrglDOUOFD6sL/ow58g62qX0n8s1lU31Fw9cHRPpGl3X0N5pLGy/2jN4Imjse5ueUA5zfk06aklpAX7w0lDZwwawHzaKYNGTr/5CV4TSIC/rbGsvxFgitffCDDF628EmOL1NwJM8fr/Qhln69jkwFYAAAAASUVORK5CYII=
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    appendStyle();
    appendCustomer();
})();

function appendStyle() {
    var styles = document.createElement('style');
    styles.type = 'text/css';
    styles.innerHTML = ".mppu-tool{ position:fixed;bottom:20%;right:20px; padding:10px;border-radius:8px;background: #51a8dd; cursor:pointer;} .mppu-tool .btn-copy{ display: flex;justify-content: center;align-items: center;color: #fff;} .mppu-url{ position:fixed;bottom:30%;right:20px; padding:10px;border-radius:8px;background: #51a8dd; cursor:pointer;}";
    document.getElementsByTagName('head')[0].appendChild(styles);
}

function appendCustomer() {
    let div = document.createElement("div");
    div.id = "mppu-tool";
    div.className = "mppu-tool";
    div.innerHTML = "<span id='mppu-btn-copy' class='btn-copy'>显示历史消息URL</span>";
    div.onclick = function (event) {
        const copyBtn = document.getElementById("mppu-btn-copy");
        if (copyBtn.innerText == "显示历史消息URL") {
            copyBtn.innerText = "关闭"
            const url = extraUrl();
            showUrl(url)
        } else {
            copyBtn.innerText = "显示历史消息URL"
            let tool = document.getElementById("mppu-url");
            tool.style.display = 'none';
        }
    };
    document.body.append(div)
}

function extraUrl() {
    let body = document.body.innerHTML;
    const results = body.matchAll(/var biz = "(?<biz>.*)" \|\| ""/mg)
    // console.log(results);
    const [result] = results;
    if (!result || result == undefined) return "";
    const biz = result.groups.biz;
    return biz ? 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=' + biz + '#wechat_redirect': '';
    // const profileUrl = 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=' + biz + '#wechat_redirect';
    // console.log(profileUrl);
    // return profileUrl;
}

function showUrl(url) {
    let tool = document.getElementById("mppu-url");
    if (tool) {
        document.body.removeChild(tool);
    }
    let span = document.createElement("span");
    span.id="mppu-url";
    span.className = "mppu-url";
    span.append(url? url: "无法获取");
    document.body.append(span);
}