您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple script to reload eBay UK listing pages to only show you results from eBay UK.
// ==UserScript== // @name This is a Local Shop for Local People // @namespace Violentmonkey Scripts // @match https://www.ebay.co.uk/sch/i.html // @grant none // @version 1.0 // @author madra.net // @license GNU GPLv3 // @description A simple script to reload eBay UK listing pages to only show you results from eBay UK. // Annoyingly, no matter how many times you select "UK Only" eBay defaults to showing international // listings each time you search. This script will reload the search listing result page and append the // appropriate parameter to the URL to show onky UK results. Obviously only tested with eBay UK. Should // be trivial enough to adapt to your own local eBay. // ==/UserScript== /* -- Store current URL */ var oldURL = window.location; /*--- Test if local results only parameter is in current URL. ie "&LH_PrefLoc=1" */ if ( ! /&LH_PrefLoc=1/.test (oldURL) ) { /*-- if not, append it */ var newURL = window.location+ "&LH_PrefLoc=1"; /*-- and reload window with updated URL. */ window.location.replace (newURL); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址