Amazon Name Hider

Just Replaces your name and address with what you set

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Amazon Name Hider
// @version      0.1
// @description  Just Replaces your name and address with what you set
// @description  This should just work on the home page, product pages, orders page, and order details pages.
// @author       NickTh3M4l4chi
// @match        https://www.amazon.com/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at       document-start
// @namespace https://greasyfork.org/users/582957
// ==/UserScript==

var SleepTime = 1;

const ReplaceName = "No Name for you";
const FakeAddress = "101 NoneYaBiz Lane‌"
const FakeAddressLocal = "NonYaBizton, Fu 101011"


var TopLeftNextToSearch = setInterval(function() {
    if ($('#glow-ingress-line1').length) {
        $('#glow-ingress-line1').text('Deliver to ' + ReplaceName);
        $('#glow-ingress-line2').text(FakeAddressLocal);
        clearInterval(TopLeftNextToSearch);
    }
}, SleepTime);

var ProductPageRightSide = setInterval(function() {
    if ($(document.querySelector("#contextualIngressPtLabel_deliveryShortLine > span:nth-child(1)")).length) {
        $(document.querySelector("#contextualIngressPtLabel_deliveryShortLine > span:nth-child(1)")).text('Deliver to ' + ReplaceName + ' -');
        $(document.querySelector("#contextualIngressPtLabel_deliveryShortLine > span:nth-child(2)")).text(FakeAddressLocal);
        clearInterval(ProductPageRightSide);
    }
}, SleepTime);

var OrdersPageMain = setInterval(function() {
    if ($(".a-popover-trigger.a-declarative.insert-encrypted-trigger-text").length) {
        $(".a-popover-trigger.a-declarative.insert-encrypted-trigger-text").text(ReplaceName);
        const OrdersPageMainWorking = 1;
    }
    if ($(".trigger-text").length) {
        $(".trigger-text").text(ReplaceName);
        const OrdersPageMainWorking = 1;
    }
}, SleepTime);


var OrdersPopup = setInterval(function() {
    if ($("[id^=a-popover-content-] > span > div:nth-child(1) > span").length) {
        $("[id^=a-popover-content-] > span > div:nth-child(1) > span").text(ReplaceName);
        $("[id^=a-popover-content-] > span > div:nth-child(2)").text(FakeAddress);
        const OrdersPopupWorking = 1;
    }
    if ($("[id^=a-popover-content-] > div > div > ul > li.displayAddressLI.displayAddressFullName").length) {
        $("[id^=a-popover-content-] > div > div > ul > li.displayAddressLI.displayAddressFullName").text(ReplaceName);
        $("[id^=a-popover-content-] > div > div > ul > li.displayAddressLI.displayAddressAddressLine1").text(FakeAddress);
        $("[id^=a-popover-content-] > div > div > ul > li.displayAddressLI.displayAddressCityStateOrRegionPostalCode").text(FakeAddressLocal);
        $("[id^=a-popover-content-] > div > div > ul > li.displayAddressLI.displayAddressPhoneNumber").remove();
        const OrdersPopupWorking = 1;
    }
}, SleepTime);

var OrderDetailsPage = setInterval(function() {
    if ($("#orderDetails > div.a-box-group.a-spacing-base > div.a-box.a-first > div > div > div > div.a-fixed-right-grid-col.a-col-left > div > div.a-column.a-span5 > div.a-section.a-spacing-none.od-shipping-address-container > div > div > ul > li.displayAddressLI.displayAddressFullName").length) {
        $("#orderDetails > div.a-box-group.a-spacing-base > div.a-box.a-first > div > div > div > div.a-fixed-right-grid-col.a-col-left > div > div.a-column.a-span5 > div.a-section.a-spacing-none.od-shipping-address-container > div > div > ul > li.displayAddressLI.displayAddressFullName").text(ReplaceName);
        $("#orderDetails > div.a-box-group.a-spacing-base > div.a-box.a-first > div > div > div > div.a-fixed-right-grid-col.a-col-left > div > div.a-column.a-span5 > div.a-section.a-spacing-none.od-shipping-address-container > div > div > ul > li.displayAddressLI.displayAddressAddressLine1").text(FakeAddress);
        $("#orderDetails > div.a-box-group.a-spacing-base > div.a-box.a-first > div > div > div > div.a-fixed-right-grid-col.a-col-left > div > div.a-column.a-span5 > div.a-section.a-spacing-none.od-shipping-address-container > div > div > ul > li.displayAddressLI.displayAddressCityStateOrRegionPostalCode").text(FakeAddressLocal);
        const OrderDetailsPageWorking = 1;
    }
}, SleepTime);

var KillLoopsNotInUse = setInterval(function() {
    clearInterval(TopLeftNextToSearch);
    clearInterval(ProductPageRightSie);

    if(OrdersPageMainWorking !== 1) {
        clearInterval(OrdersPageMain);
        console.log('OrdersPageMain killed');
    }
    if(OrdersPopupWorking !== 1) {
        clearInterval(OrdersPopup);
        console.log('OrdersPopup killed');
    }
    if(OrderDetailsPageWorking !== 1) {
        clearInterval(OrderDetailsPage);
        console.log('OrderDetailsPage killed');
    }
}, 2000);