web-history.js 780 B

123456789101112131415161718192021
  1. // ==UserScript==
  2. // @name T-All-历史记录
  3. // @author tianyunperfect
  4. // @description 简介
  5. // @version 1.0.0
  6. // @update 2021-07-08 16:16:14
  7. // @match *://*/*
  8. // @require https://git.tianyunperfect.cn/tianyunperfect/web-base/raw/master/tmp/monkey/util.js?a=2022年05月15日
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js
  10. // ==/UserScript==
  11. (async () => {
  12. setTimeout(()=> {
  13. if (window.top.location.href == window.location.href) {
  14. axios.get(`https://web_history.tianyunperfect.cn/history/insert?title=${document.title}&url=${location.href}`).then(res => {
  15. console.log(res.data);
  16. });
  17. }
  18. },3000)
  19. })();