1688获取产品链接

轻松输出1688产品链接

目前为 2022-03-18 提交的版本。查看 最新版本

// ==UserScript==
// @name         1688获取产品链接
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  轻松输出1688产品链接
// @author       You
// @license MIT
// @include      *://s.1688.com/*
// @icon         https://re.1688.com/%3Fkeywords%3D%7Bkeywords%7D%26cosite%3Dbaidujj_pz%26location%3Dre%26trackid%3D%7Btrackid%7D%26keywordid%3D%7Bkeywordid%7D%26format%3Dnormal
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var box = document.getElementById("app");
    var input = document.createElement("input");
    input.type = "button";
    input.id = "han"
    input.value = "获取产品链接"
    box.appendChild(input);
    document.getElementById("han").style.borderColor = "#fffff";
    document.getElementById("han").style.border = "1px solid #f60";
    document.getElementById("han").style.color= "#ff6444";
    document.getElementById("han").style.display = "block";
    document.getElementById("han").style.width = "100%";
    document.getElementById("han").style.height = "50px";
    document.getElementById("han").style.borderRadius="5px";
    document.getElementById("han").style.marginBottom="12px";
    document.getElementById("han").style.fontSize="25px";
    document.getElementById("han").onclick = function() {
var aa=document.getElementsByTagName('a')
for(const a in aa){
var str = aa[a].href;
var reg1 = RegExp(/dj.1688/);
var reg2 = RegExp(/detail.1688/);
if(str.match(reg1)||str.match(reg2)){
console.log(aa[a].href);}}
    };

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址