Greasy Fork is available in English.
自动修改淘宝/天猫/京东等购物页面的“配送至”地址,在你分享商品截图的时候保护隐私
当前为
// ==UserScript==
// @name 我家在... 改
// @namespace https://114514.plus/
// @version 0.1.1
// @description 自动修改淘宝/天猫/京东等购物页面的“配送至”地址,在你分享商品截图的时候保护隐私
// @author Archeb / jkfujr
// @match https://item.jd.com/*.html*
// @match https://*.detail.tmall.com/item.htm*
// @match https://*.detail.tmall.hk/hk/item.htm*
// @match https://item.taobao.com/item.htm*
// @grant none
// @license GNU GPLv3
// ==/UserScript==
(function () {
"use strict";
var fakeAddress = "日本下北沢";
setTimeout(function () {
switch (window.location.host) {
case "item.jd.com":
document.querySelector(".ui-area-text").innerText = fakeAddress;
break;
case "detail.tmall.com":
case "detail.tmall.hk":
case "chaoshi.detail.tmall.com":
case "item.taobao.com":
var addressElement = document.querySelector(".mui-addr-tri-1");
if (addressElement) {
addressElement.textContent = fakeAddress;
}
break;
}
}, 3000);
})();