linux.do nonmembers only

解决非会员浏览 linux.do 出现的 bug

  1. // ==UserScript==
  2. // @name linux.do nonmembers only
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 解决非会员浏览 linux.do 出现的 bug
  6. // @author You
  7. // @match https://linux.do/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=linux.do
  9. // @license MIT
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12. (function() {
  13. 'use strict';
  14. // Your code here...
  15. // document.querySelector("body").classList.remove("topic-in-gated-category");
  16. // document.querySelector("#ember35").remove();
  17. GM_addStyle (`
  18. .topic-in-gated-category,
  19. .post-stream {
  20. max-height: none !important;
  21. height: auto !important;
  22. overflow: auto !important;
  23. }
  24. .ember-view.topic-in-gated-category,
  25. .topic-in-gated-category .container.posts::before,
  26. .topic-in-gated-category .container.posts::after{
  27. display: none !important;;
  28. }
  29. `);
  30. })();