Greasy Fork

Greasy Fork is available in English.

Ebay for "according to description"

Tries to view the item description valid at the date of purchase

当前为 2022-01-14 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Ebay for "according to description"
// @description  Tries to view the item description valid at the date of purchase
// @author       Werve
// @match        https://order.ebay.it/ord/*
// @icon         https://icons.duckduckgo.com/ip2/ebay.it.ico
// @grant        none
// @create       2022-01-13
// @lastmodified 2022-01-13
// @version      0.1
// @namespace    http://greasyfork.icu/users/669237
// @homepageURL  http://greasyfork.icu/scripts/438499
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @license      CC BY 4.0
// @copyright    2022 Werve
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    $.noConflict(true);
    $(".top-region").append("<div id='try_old_desc'> <button id='old_desc'> View item description valid at the date of purchase </button></div></br>");
    $("#old_desc").click(URL_desc);
})();

function URL_desc(){
    let URL = location.href;
    let productId = URL.match(/.*itemid=(\d+)/)[1];
    let transactionId = URL.match(/.*transId=(\d+)/)[1];
    location.href = "https://ebay.it/ipp/"+ productId +"?transactionId="+ transactionId;
}