获取阿里云token

获取阿里云的token

  1. // ==UserScript==
  2. // @name 获取阿里云token
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 获取阿里云的token
  6. // @author You
  7. // @license MIT
  8. // @match https://www.aliyundrive.com/drive
  9. // @match https://www.aliyundrive.com
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=aliyundrive.com
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. 'use strict';
  16.  
  17. let box = document.createElement('div')
  18. box.class = 'my_aliyundrive_box'
  19. box.style.zIndex = 100000
  20. box.style.backgroundColor = '#48D1CC'
  21. // box.style.width = '220px'
  22. // box.style.height = '200px'
  23. box.style.position = 'fixed'
  24. box.style.top = '90px'
  25. box.style.right = '10px'
  26. box.style.padding = '5px'
  27. box.style.color = "#000"
  28. box.style.fontSize = "12px"
  29. box.style.textAlign = "left"
  30.  
  31. const token = JSON.parse(localStorage.token).refresh_token
  32. console.log("token === ", JSON.parse(localStorage.token).refresh_token);
  33.  
  34. let hideBtn = document.createElement('button')
  35. hideBtn.textContent = "关闭"
  36. hideBtn.onclick = function () {
  37. box.style.display = "none"
  38. }
  39.  
  40. let tokenHtml = document.createElement('p')
  41. tokenHtml.id = 'my_token'
  42. tokenHtml.innerHTML = 'token: ' + token
  43.  
  44. box.appendChild(tokenHtml)
  45.  
  46. box.appendChild(hideBtn)
  47.  
  48. document.body.appendChild(box)
  49. })();
  50.  

QingJ © 2025

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