colg简化

try to take over the world!

  1. // ==UserScript==
  2. // @name colg简化
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description try to take over the world!
  6. // @author You
  7. // @match *://bbs.colg.cn/*
  8. // @grant none
  9. // @require https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.min.js
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. //更改标题
  16. $("title").html("hello");
  17.  
  18. //$().remove();
  19. $("#f_pst").remove();
  20. $("#newspecial").remove();
  21. $(".drag").remove();
  22. $("#newspecialtmp").remove();
  23. $("#hd").remove();
  24. $(".avatar").remove();
  25. $(".md_ctrl").remove();
  26. $(".sign").remove();
  27. $(".mbn .xw1").remove();
  28. $(".mbn .xg1").remove();
  29. $(".pstl a img").remove();
  30. $(".xg2").nextAll().remove();
  31.  
  32. //链接标题文字颜色
  33. $(".xst").css({
  34. "color": "black",
  35. "font-weight": "normal"
  36. });
  37.  
  38. //内容图片
  39. var showImgBtn = '<div class="showImgBtn">[IMG]</div>';
  40. $(".savephotop").prepend(showImgBtn);
  41. $(".showImgBtn").css({
  42. "cursor": "pointer"
  43. });
  44. $(".savephotop img").hide();
  45. $(".showImgBtn").click(function() {
  46. $(this).next().toggle();
  47. });
  48.  
  49. function changeTxtImgToString(){
  50. var showImgBtn = '<text class="showTxtImgBtn">(img)</text>';
  51. $(".t_f img").before(showImgBtn);
  52. $(".showTxtImgBtn").css({
  53. "cursor": "pointer"
  54. });
  55. $(".t_f img").hide();
  56. $(".showTxtImgBtn").click(function() {
  57. $(this).next().toggle();
  58. });
  59. }
  60.  
  61. changeTxtImgToString();
  62.  
  63. // Your code here...
  64. })();
  65.  
  66.  

QingJ © 2025

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