Browse Source

加入注释

master
feng 3 years ago
parent
commit
37edee3ea7
  1. 35
      客户端/齐越慧眼/齐越慧眼/replacepddcss.js

35
客户端/齐越慧眼/齐越慧眼/replacepddcss.js

@ -6,7 +6,13 @@ for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) {
var maindiv = document.getElementsByClassName("_3glhOBhU")[i].children[0].children[0];
maindiv.style = "width:200px;height:280px";
if(maindiv.outerHTML.indexOf("<span>试试搜这些</span>")>=0)
{
document.getElementsByClassName("_3glhOBhU")[i].style = "display:none";
continue;
}
maindiv.style = "width:200px;height:300px";
if (maindiv.children[0].children[0] != undefined) {
maindiv.children[0].children[0].style = "width:200px;height:200px";
@ -39,14 +45,17 @@ for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) {
}
}
// 标签
if (itemInfoDiv.children[1] != undefined) {
itemInfoDiv.children[1].style = "padding:0px;margin:0px";
itemInfoDiv.children[1].style = "padding:0px;margin:0px;height:10px";
var iconList = itemInfoDiv.children[1].children;
for (var si = 0; si < iconList.length; si++) {
var iconDiv = iconList[si]
for (var t = 0; t < iconDiv.children.length; t++) {
iconDiv.children[t].style.fontSize = "10px";
iconDiv.children[t].style.lineHeight = "15px";
iconDiv.children[t].style.marginRight = "5px";
iconDiv.children[t].style.marginBottom = "5px";
}
imgs = iconDiv.getElementsByTagName("img")
if (imgs != undefined && imgs.length > 0) {
@ -56,6 +65,28 @@ for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) {
}
}
}
//价格
if (itemInfoDiv.children[2] != undefined) {
itemInfoDiv.children[2].style = "padding:0px;margin:0px;height:1px";
var priceDiv = itemInfoDiv.children[2].children[0];
if (priceDiv.children[1] != undefined) {
// priceDiv.children[1].style = "margin-left: 0.04rem; font-size: 0.13rem;"
// if (priceDiv.children[1].children[0] != undefined) {
// priceDiv.children[1].children[0].style = " transform-origin: left bottom; transform: scale(1); overflow: hidden;"
// }
}
var spans = priceDiv.getElementsByTagName("span")
for (var spanI = 0; spanI < spans.length; spanI++) {
spans[spanI].style.transform = "unset";
spans[spanI].style.fontSize = "10px";
spans[spanI].style.lineHeight = "15px";
}
}
}
}

Loading…
Cancel
Save