Greasy Fork

来自缓存

Greasy Fork is available in English.

eBay FR - Corrections du site

Corrige le site eBay FR

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         eBay FR - Corrections du site
// @namespace    eBay_FR_C
// @version      2.0
// @description  Corrige le site eBay FR
// @author       Micdu70
// @match        https://www.ebay.fr/*
// @match        https://*.ebay.fr/*
// @match        http://www.ebay.fr/*
// @match        http://*.ebay.fr/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

function Corrections() {
    var url = window.location.href;
    var reg = /^https?:\/\/.*ebay\.fr\/sh\/lst\/active\/?$/;
    var newUrl;
    if (url.match(reg) !== null) {
        newUrl = 'https://www.ebay.fr/mys/active/rf/container_sort=TIME_LEFT_ENDING_SOONEST&container_filter=ALL&container_limit=25';
        window.location.replace(newUrl);
    } else {
        var checkExist1 = setInterval(function() {
            if (document.getElementById('gh-p-2')) {
                var element = document.getElementById('gh-p-2');
                var message = element.getElementsByTagName('a')[0];
                message.setAttribute('href', 'https://bulksell.ebay.fr/ws/eBayISAPI.dll?SingleList');
                clearInterval(checkExist1);
            }
        }, 100);
        var checkExist2 = setInterval(function() {
            url = window.location.href;
            reg = /^https?:\/\/.*ebay\.fr\/mys\/active\/?$/;
            if (url.match(reg) !== null) {
                newUrl = 'https://www.ebay.fr/mys/active/rf/container_sort=TIME_LEFT_ENDING_SOONEST&container_filter=ALL&container_limit=25';
                window.location.replace(newUrl);
                clearInterval(checkExist2);
            }
        }, 100);
    }
}

Corrections();