@@PT-site-helper

PT-site-helper PT 助手

当前为 2018-07-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name @@PT-site-helper
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description PT-site-helper PT 助手
  6. // @author You
  7. // @match http://hdhome.org/*
  8. // @match https://ourbits.club/*
  9. // @match https://nanyangpt.com/*
  10. // @require https://cdn.bootcss.com/jquery/1.12.2/jquery.min.js
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // Your code here...
  18. var url = window.location.origin;
  19.  
  20. $('body, table, .torrents td').css({
  21. "background-color": "#efefef",
  22. "color": "#000"
  23. });
  24. $('table a').css('color', 'blue');
  25.  
  26. setTimeout(function() {
  27. if ($('#nav_block a.faqlink').length) window.location.href = $('a.faqlink').attr('href')
  28. }, 2000);
  29.  
  30. function insertButton(btnName) {
  31. var btn = `<button id="fn1"
  32. style="position: fixed; left: 10px; top: 10px; z-index: 9999; background: #fff; border: 1px solid #aaa; padding: 4px 10px;"
  33. >${btnName}</button>`;
  34.  
  35. $('body').append(btn);
  36. $('#fn1').on('click', function () {
  37. start();
  38. });
  39. }
  40.  
  41. function start() {
  42. var $free = $('.pro_free');
  43. $.each($free, (index, item) => {
  44. // var $tr = $(item).parents('.sticky_top');
  45. console.log($(item).parent());
  46. // $tr.find('td').css('background', 'red');
  47. $(item).parent().attr('style', 'background: orange !important');
  48. });
  49. }
  50.  
  51. insertButton('只看免费');
  52. })();

QingJ © 2025

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