您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto set sort by price on Adverts.ie
// ==UserScript== // @run-at document-start // @name Adverts.ie Sort by Lowest Price // @namespace Advrts // @description Auto set sort by price on Adverts.ie // @version 1.01 // @copyright 2020 Chopper // @include https://www.adverts.ie/for-sale/* // @grant none // ==/UserScript== // Get current URL var url = window.location.href; // If URL contains already contains a sorting method, don't change it. if (url.indexOf('/sortby_') > -1){ url += '' } // If there is no sorting method, sort by lowest price else{ url += 'sortby_price-asc/' // Load new URL window.location.href = url; }