tianyunperfect 3 yıl önce
ebeveyn
işleme
5217b9f0ae
2 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 4 1
      tmp/monkey/notion-字体修改.js
  2. 2 0
      tmp/monkey/tmp.js

+ 4 - 1
tmp/monkey/notion-字体修改.js

@@ -14,8 +14,11 @@
     if (window.top !== window.self) {
         return;
     }
+    if (location.href.indexOf("?v") > 0) {
+        return;
+    }
     axios.post(`https://web_history.tianyunperfect.cn/notion/insert`, {
-        "notion_url": location.href,
+        "notion_url": location.href.split("?")[0].split("/").pop().split("-").pop(),
     }).then(async res => {
         console.log(res.data)
         if (res.data.statusCode == 200) {

+ 2 - 0
tmp/monkey/tmp.js

@@ -0,0 +1,2 @@
+let a = "https://www.notion.so/tianyunperfect/88d3a7467adc42919edfaa6a0476e533";
+console.log(a.split("?")[0].split("/").pop().split("-").pop());