链家-地图找房打开所有房子1.0

链家-地图找房打开所有房子

// ==UserScript==
// @name         链家-地图找房打开所有房子1.0
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  链家-地图找房打开所有房子
// @author       You
// @match        https://lease-pz.link.lianjia.com/rent/house/map
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    for (let i = 1; i < document.querySelector("#leaseroot > div > div > div.ant-layout-content > div > div > div.ditu-house_list > div:nth-child(3) > div.lj-track > div > div > ul").childElementCount+1; i++) {
    document.querySelector("#leaseroot > div > div > div.ant-layout-content > div > div > div.ditu-house_list > div:nth-child(3) > div.lj-track > div > div > ul > li:nth-child("+i+")").click()
}

    
    // Your code here...
})();