迅雷离线界面优化

优化迅雷离线界面,方便多选

目前為 2016-07-02 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 迅雷离线界面优化
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 优化迅雷离线界面,方便多选
  6. // @author You
  7. // @match http://dynamic.cloud.vip.xunlei.com/user_task?*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. $("<style>.rwbox .rw_list { position: relative; }\n.rw_list .w01 { background: /*rgba(94,160,222,.1)*/#5ea0de1a; position: absolute; left: 0; top: 0; height: 100%; }\n.rw_list .w01sel { padding: 20px 0 0 16px; }\n.rw_list .w02 { margin-left: 40px; }</style>").appendTo(document.head);
  15. var tid = null;
  16. $("div.rwbox").live("DOMSubtreeModified", function() {
  17. if (tid) {
  18. window.clearTimeout(tid);
  19. }
  20. tid = window.setTimeout(function() {
  21. tid = null;
  22. console.log("hoho");
  23. $("div.rwbox .w01").click(function(e) {
  24. var $target = $(e.target);
  25. e.stopImmediatePropagation();
  26. e.stopPropagation();
  27. //console.log(e, $target);
  28. $target.find(":checkbox").trigger("click");
  29. });
  30. }, 10);
  31. });
  32. })();

QingJ © 2025

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