|
@@ -0,0 +1,27 @@
|
|
|
|
+// ==UserScript==
|
|
|
|
+// @name T-美妆-爬虫
|
|
|
|
+// @author tianyunperfect
|
|
|
|
+// @description 简介
|
|
|
|
+// @version 1.0.0
|
|
|
|
+// @update 2021-07-08 16:16:14
|
|
|
|
+// @grant GM_registerMenuCommand
|
|
|
|
+// @include https://bebd.bevol.com/ranking?type=category
|
|
|
|
+// @require https://git.tianyunperfect.cn/tianyunperfect/web-base/raw/master/tmp/monkey/util.js?a=1
|
|
|
|
+// @require https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js
|
|
|
|
+
|
|
|
|
+// ==/UserScript==
|
|
|
|
+(async () => {
|
|
|
|
+ GM_registerMenuCommand("!!!复制并加到memory", do1);
|
|
|
|
+ async function do1 () {
|
|
|
|
+ let res =[]
|
|
|
|
+ let rows = (await getDomAll(".ant-table-tbody [data-row-key]"))
|
|
|
|
+ for (let x in rows) {
|
|
|
|
+ if (x < 50) {
|
|
|
|
+ res.push(rows[x].getAttribute("data-row-key"));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log(res)
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+})();
|