Greasy Fork is available in English.
csdn论坛改造:1.去除论坛右侧广告和底部推荐。 2.去除“展开阅读全文”的限制。 3.帖子自动翻页,完美“破解”10贴/页的问题。 4.调整一些版面使得更易于浏览。
// ==UserScript==// @name csdn论坛改造: 1.去除了论坛右侧广告和底部推荐。 2.去除“展开阅读全文”的限制。 3.帖子自动翻页,完美“破解”10贴/页的问题。 4.调整一些版面使得更易于浏览。// @namespace Violentmonkey Scripts// @match https://bbs.csdn.net/*// @grant none// @version 1.1// @author sysdzw// @description csdn论坛改造:1.去除论坛右侧广告和底部推荐。 2.去除“展开阅读全文”的限制。 3.帖子自动翻页,完美“破解”10贴/页的问题。 4.调整一些版面使得更易于浏览。// ==/UserScript==//设置发帖按钮$(".btns").prepend("<li style='background:green;border-radius:5px;height: 32px; margin-top: 6px;'><a style='color:#fff; line-height:32px;' href='" + $("a:contains('我要发贴')").attr("href") + "'>发帖</a></li>");$("#rightList").remove();//移除右侧栏$("#post_feed_wrap").remove();$(".post_recommend").remove();$("#left-box").css("cssText","float: left;width:100% !important;");//加宽左框$(".topic_r").css("width","100%");//加宽帖子正文区域$(".control").css("cssText","bottom:0px !important;");//时间靠底部//到底部自动翻页$(window).scroll(function(){var scrollTop = $(this).scrollTop();var windowHeight = $(this).height();var scrollHeight = $(document).height();if(scrollTop + windowHeight == scrollHeight){$(".next_page")[0].click();}});//去掉展开阅读全文$(document).ready(function(){if($(".omit_wrap").css("display")=="block"){$(".tips").click();}});