查看单个帖子
nh_wzg
 
nh_wzg 的头像
核心会员
 
资 料:
注册日期: Jul 2000
帖子: 3,353 声望值: 3
精华: 5,解答: 9
#24 旧 2012-07-17, 04:46:32 默认
nh_wzg 当前离线  

【CleanHide】
代码:
javascript:getobjstyle=function(node,prop){return%20node.ownerDocument.defaultView.getComputedStyle(node,"").getPropertyValue(prop);};RemoveHide=function(objname){var%20minValue=15;var%20objs=document.getElementsByTagName(objname);if(objs.length==0){}else{for(var%20i=objs.length-1;i>=0;i--){var%20node=objs.item(i);if(getobjstyle(node,"display")=="none"%20||%20getobjstyle(node,"visibility")=="hidden"%20||%20parseInt(getobjstyle(node,"font-size"))==0){node.parentNode.removeChild(node);}else{if(node.parentNode){var%20orgNode=node;var%20orgColor=getobjstyle(orgNode,"color");var%20orgRGB=CleanHidegetRGB(orgColor);var%20parentNode=node.parentNode;var%20parentBgColor=getobjstyle(parentNode,"background-color");var%20isLast=false;while(parentBgColor=="transparent"){if(parentNode.parentNode==null){isLast=true;break;}parentNode=parentNode.parentNode;parentBgColor=getobjstyle(parentNode,"background-color");if(parentBgColor%20!=%20"transparent"){break;}}if(isLast){if((Math.abs(orgRGB[0]-255)<=minValue)&&(Math.abs(orgRGB[1]-255)<=minValue)&&(Math.abs(orgRGB[2]-255)<=minValue)){orgNode.parentNode.removeChild(orgNode);}}else{parentBgRGB=CleanHidegetRGB(parentBgColor);if((Math.abs(orgRGB[0]-parentBgRGB[0])<=minValue)&&(Math.abs(orgRGB[1]-parentBgRGB[1])<=minValue)&&(Math.abs(orgRGB[2]-parentBgRGB[2])<=minValue)){orgNode.parentNode.removeChild(orgNode);}}}}}}var%20itemFrames=document.getElementsByTagName("frame");var%20itemiFrames=document.getElementsByTagName("iframe");var%20frame,iframe;if%20(itemFrames.length>0){for%20(var%20i=0;i<itemFrames.length;i++){frame=itemFrames[i].contentDocument;this.RemoveHide(frame,objname);}}if(itemiFrames.length>0){for(var%20i=0;i<itemiFrames.length;i++){iframe=itemiFrames[i].contentDocument;this.RemoveHide(iframe,objname);}}};function%20CleanHidegetRGB(colorString){var%20RGB=new%20Array;var%20tempSting=colorString.substring(4,colorString.length-1);var%20tempArray=tempSting.split(",");RGB[0]=parseInt(tempArray[0]);RGB[1]=parseInt(tempArray[1]);RGB[2]=parseInt(tempArray[2]);return%20RGB;};RemoveHide("span");RemoveHide("font");RemoveHide("div");RemoveHide("p");


平和精确简约应成为精品成员的三大基本要求!!!
nh_wzg