11
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/414705-%E5%8F%8C%E5%8D%81%E4%B8%80/code/%E5%8F%8C%E5%8D%81%E4%B8%80.js?version=866705
let objList = [ { name: "运动户外", url: "https://s.click.taobao.com/Dd3Qzuu", }, { name: "家清鲜花", url: "https://s.click.taobao.com/Dd3Qzuu", }, { name: "大牌美妆", url: "https://s.click.taobao.com/WaWkwuu", }, { name: "大牌内衣", url: "https://s.click.taobao.com/wEUSzuu", }, { name: "家具建材", url: "https://s.click.taobao.com/g9shwuu", }, { name: "运动尖货", url: "https://s.click.taobao.com/E2fQzuu", }, { name: "全球尖货", url: "https://s.click.taobao.com/MUmgwuu", }, { name: "小家电", url: "https://s.click.taobao.com/qd9Pzuu", }, { name: "轻享健康", url: "https://s.click.taobao.com/qd9Pzuu", }, { name: "大牌男装", url: "https://s.click.taobao.com/2ZZOzuu", }, { name: "品质家电", url: "https://s.click.taobao.com/gqWgwuu", }, { name: "同城好货", url: "https://s.click.taobao.com/0A9Qzuu", }, { name: "爱车达人", url: "https://s.click.taobao.com/LdIMzuu", }, { name: "大牌手机", url: "https://s.click.taobao.com/AoxiWuu", }, { name: "女子运动", url: "https://s.click.taobao.com/eTEwZuu", }, { name: "手机数码", url: "https://s.click.taobao.com/PsNwZuu", }, { name: "家具建材", url: "https://s.click.taobao.com/14ovZuu", }, ]; $(function () { double11(); tmallIndex(); }); // 双十一 function double11() { if (window.location.host.indexOf("taobao") > -1) { let tbnode = $(".logo .logo-hover"); tbnode.attr("href", "https://s.click.taobao.com/EaZ1Dvu"); let list = $(".superbanner-inner .list a"); list.each(function () { let that = $(this); let title = that.find(".title").html(); objList.forEach((item) => { if (title == item.name) { that.attr("href", item.url); } }); }); } else if (window.location.host.indexOf("tmall") > -1) { $(".top-con a").attr( "href", "https://s.click.taobao.com/Hw9c2vu" ); let node = $(".j_logo"); if (node.length > 0) { // domAddEventListener(node, tmall11); } } } // tmall11插入 function tmall11() { let node = $(".j_logo .j_doodleCon a"); node.attr("href", "https://s.click.taobao.com/EaZ1Dvu"); } function tmallIndex() { let list = $(".meeting-item"); list.each(function () { let that = $(this); let title = that.find(".link-text").html(); objList.forEach((item) => { if (title == item.name) { that.find(".nav-item-link").attr( "href", item.url ); } }); }); let page = $("#J_ActivityPageList .page-list a"); page.each(function () { let that = $(this); let title = that.find(".page-name").html(); objList.forEach((item) => { if (title == item.name) { that.attr("href", item.url); } }); }); }