您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2021/11/16 下午2:34:13
// ==UserScript== // @name 链家自动计算公摊 // @namespace Violentmonkey Scripts // @match https://*.lianjia.com/ershoufang/*.html // @grant none // @version 1.0 // @author Ybond // @description 2021/11/16 下午2:34:13 // @license MIT // ==/UserScript== //建筑面积 let jzmj = $("#introduction .content ul>li:eq(2)").html().replace('<span class="label">建筑面积</span>','').replace("㎡",""); //套内面积 let tnmj = $("#introduction .content ul>li:eq(4)").html().replace('<span class="label">套内面积</span>','').replace("㎡",""); if(isNumber(tnmj)&&isNumber(jzmj)){ //公摊面积 let gtmj = ((jzmj-tnmj)/jzmj*100).toFixed(2)+"%"; $(".content .price .text .unitPrice").append('<span style="margin-left: 50px;">'+gtmj+'</span>'); } function isNumber(val) { if (parseFloat(val).toString() == "NaN") { return false; } else { return true; } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址