tddhkh

tddhkhihipguck12

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/472003/1227471/tddhkh.js

  1. // ==UserScript==
  2. // @name tddhkh
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description tddhkhihipguck12
  6. // @author 小李子
  7. // @grant none
  8. // ==/UserScript==
  9. const a="123"
  10. function addDisplayStyle(cssSelector) {
  11. $$$(cssSelector).css("display","none");
  12. $$$(cssSelector).attr("style","display:none");
  13. }
  14.  
  15. function addDisplayCssStyle() {
  16. $$$("style").get(0).append("article{opacity: 1 !important;display: block !important;}" +
  17. "#menu li{opacity: 1;display: block;}")
  18.  
  19. }
  20.  
  21. function removeAlertRule1() {
  22. $$$("div[style]").each(function (index) {
  23. let attr = $$$(this).attr('style');
  24. let text = $$$(this).text();
  25. if (attr.indexOf("z-index") != -1 && (text.indexOf("首次访问") != -1 || text.indexOf("人机检测") != -1)) {
  26. let zIndex = $$$(this).css("z-index");
  27. console.log("zIndex:", zIndex)
  28. let lastDiv = $$$("div[style]").filter(function () {
  29. return $$$(this).attr('style').indexOf("z-index") != -1 && $$$(this).css("z-index") == zIndex - 1
  30. })
  31. console.log("lastDiv:", lastDiv)
  32. if (lastDiv && lastDiv.length > 0) {
  33. lastDiv.remove();
  34. }
  35. $$$(this).remove();
  36. $$$('body').css("overflow", 'auto');
  37. }
  38.  
  39. })
  40. }
  41. function commonFindRules1(keys) {
  42. let split = keys.split(",");
  43. let selector = $$$("div").filter(function (){
  44. let text = $$$(this).text();
  45. let flag = false;
  46. for (let i in split) {
  47. flag = text.indexOf(split[i]) && flag ;
  48. }
  49. return flag && $$$(this).children().length == 0
  50. })
  51. let id = selector.attr("id");
  52. if(id){
  53. return "#"+id;
  54. }
  55. let cls = selector.attr("class");
  56. if(cls){
  57. return "."+cls;
  58. }
  59. return selector;
  60. }
  61.  
  62. function commonRemoveRule1(selector,isRemoveParent) {
  63. var $selector = $$$(selector);
  64. if($selector.length > 0){
  65. if(isRemoveParent){
  66. $selector.parent().remove();
  67. }else {
  68. $selector.remove();
  69. }
  70. }
  71.  
  72. }
  73.  
  74. let=document.querySelector("video")
  75. const duti=()=>{
  76. vi.play()
  77. vi.currentTime=vi.duration+1
  78. document.getElementsByClassName("vjs-big-play-button")[0].click()
  79. }
  80.  
  81. function commonHideRule1(selectors) {
  82. var selectorArray = selectors.split(",");
  83. for (let index in selectorArray) {
  84. if ($$$("style").length > 0) {
  85. $$$("style").get(0).append(selectorArray[index] + "{display:none !important}");
  86. }else {
  87. $$$("header").append("<style></style>");
  88. $$$("style").get(0).append(selectorArray[index] + "{display:none !important}");
  89. }
  90. }
  91.  
  92.  
  93.  
  94.  
  95. }