您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes things work better???
// ==UserScript== // @name BridalPortraits.com Reworking // @namespace http://mailerdaemon.home.comcast.net // @include http://www.bridalportraits.com/cgi-bin/cpoole/photocart.cgi // @version 0.0.1.20140517011656 // @description Makes things work better??? // ==/UserScript== if(data = $X("//form[@name='communicator']")){ cn = data.elements.namedItem("cn").value; connectionspeed = data.elements.namedItem("connectionspeed").value; category = data.elements.namedItem("category").value; $Z("//a[@href='javascript:void(null);']/img[@class='noprint']", function(img,i,p){ link = img.parentNode; link.href = img.src.replace("s.jpg", "sl.jpg"); link.attributes.removeNamedItem("onclick"); link.target="_blank"; block = link.parentNode; text = block.getElementsByTagName("font"); text = (text.length && text.length >0)?text[0]:null; for(j = (brs = block.getElementsByTagName("br")).length; j-- > 0;) block.removeChild(brs[j]); block.appendChild(below = document.createElement("div")); below.appendChild(pop = document.createElement("a")); block.removeChild(text); pop.appendChild(text); pop.href = "http://www.bridalportraits.com/cgi-bin/cpoole/photocart.cgi?popupwindow=" + cn + ";" + "comchoice=1;" + "connection="+connectionspeed + ";" + "category="+ category + ";" + "picno="+text.innerHTML; pop.target="_blank"; }); } function $X(_xpath, node){return document.evaluate(_xpath, node?node:document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0);} function $Y(_xpath, node){return document.evaluate(_xpath, node?node:document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);} function $Z(_xpath, func, node, payload){ var res = document.evaluate(_xpath, node?node:document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); var i, j; for (i = j = 0; link = res.snapshotItem(i); ++i) j += func(link, i, payload); return j; } function insertAfter(insert, after){return after.parentNode.insertBefore(insert, after.nextSibling);} function insertBefore(insert, before){return before.parentNode.insertBefore(insert, before);}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址