Greasy Fork is available in English.

导出京东购物车文本链接

导出京东购物车文本链接到 Chrome 控制台

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         导出京东购物车文本链接
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  导出京东购物车文本链接到 Chrome 控制台
// @author       Androidcn
// @license      MIT
// @match        https://cart.jd.com/cart_index
// @icon         https://www.google.com/s2/favicons?sz=64&domain=jd.com
// @grant        none
// @require     http://code.jquery.com/jquery-latest.js

// ==/UserScript==

(function() {
    var $ = window.$;
    'use strict';

    $('#cart-body div.p-name a').each(function()
{
	var jdlink = /\/\/item\.jd\.com\/\d+\.html/
	var patt1 = new RegExp(jdlink);

    if(patt1.test($(this).attr('href')))
    {
    console.log($(this).attr('title'));
    console.log($(this).attr('href'));
    }
});
})();