cc58同城自用过滤器,欢迎自己修改

cc58同城自用过滤器,欢迎自己修改,用于过滤58同城不想要的条目

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name cc58同城自用过滤器,欢迎自己修改
// @namespace Violentmonkey Scripts
// @match https://cc.58.com/*
// @grant none
// @description  cc58同城自用过滤器,欢迎自己修改,用于过滤58同城不想要的条目
// @version 0.0.1.20190108095827
// ==/UserScript==
//拿到列表
//
var lists=$(".house-list-wrap").children();
$.each(lists, function( i, l ){
  if($(l).find(".baseinfo").eq(0).text().match(/高层\(共[678]层\)/)){
    $(l).remove();
  }
  //没有轨道
  if($(l).find(".baseinfo").eq(1).children().length===1){
    $(l).remove();
  }
  //轨道不应该超过1000
  else if(parseInt($(l).find(".baseinfo").eq(1).children().text().match(/\d+米/)[0])>1000){
    $(l).remove();
  }
  if($(l).find(".jjrinfo").children().eq(1).text().match(/史媛媛/)){
    $(l).remove();
  }
  //汽车城
  if($(l).find(".baseinfo").eq(1).text().match(/汽车城/)){
    $(l).remove();
  }
});