This script filters highlighted (advertised) offers in mobile.de result pages and sorts them ascending by price.
// ==UserScript==
// @name Mobile Result Page Cleanup
// @namespace s
// @include https://suchen.mobile.de/fahrzeuge/search.html*
// @version 1.1
// @grant none
// @description This script filters highlighted (advertised) offers in mobile.de result pages and sorts them ascending by price.
// ==/UserScript==
window.onload = function () {
var divs = document.querySelectorAll('div.cBox-body--similarSellerAds, div.cBox-body--topInCategory, div.cBox-body--topResultitem, div.cBox-body--eyeCatcher');
for(var i=0; i<divs.length; i++) {
divs[i].style.display = "none";
//divs[i].style.opacity = "0.1";
}
var sel = document.getElementById('so-sb');
var needs_reload = sel.options[sel.selectedIndex].text != 'Preis aufsteigend';
// fire form
if(needs_reload){
var l = sel.options.length;
for (var i = 0; i < l; i++) {
if (sel.options[i].text == 'Preis aufsteigend') {
sel.options[i].selected = true;
sel.onChange();
}
}
}
}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址