游侠游戏截图广告去除

去除游侠简介中游戏截图中广告。

  1. // ==UserScript==
  2. // @name 游侠游戏截图广告去除
  3. // @description 去除游侠简介中游戏截图中广告。
  4. // @version 1.0.8
  5. // @namespace 游侠游戏截图广告去除
  6. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  7. // @author 会说话的鱼
  8. // @include *//down.ali213.net/*
  9. // @require https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.min.js
  10. // @run-at document-start
  11. // @grant none
  12. // @rewritten_script_code javascript
  13. // ==/UserScript==
  14.  
  15. (function () {
  16. 'use strict';
  17. $(function () {
  18. init();
  19. });
  20. })();
  21.  
  22. function init() {
  23. var close_btn = $('<a href="javascript:void(0);" class="downInfoBtn" style="position: absolute;right: 0;top: 0;display: block;width: 60px;line-height: 30px;text-align: center;color: #FFF;background: red;">关闭</a>').click(function(){
  24. $('.detailAlertBox').hide();
  25. });
  26. $('.downInfoBox').append(close_btn);
  27.  
  28. $(window).on('scroll', function(){
  29. if($('.detail_body_con_bb_con_con #gc0').length>0) {
  30. if($(window).scrollTop() + $(window).height() > $('.detail_body_con_bb_con_con #gc0').offset().top - 50) {
  31. $('.detail_body_con_bb_con_con #gc0').click();
  32. }
  33. }
  34.  
  35. if($('.nyfmt').length>0) {
  36. $('.nyfmt').hide();
  37. }
  38. });
  39. }

QingJ © 2025

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