2 次代碼提交 8e2cbe46cb ... 2dc2caf4eb

作者 SHA1 備註 提交日期
  Steve0Greatness 2dc2caf4eb Version bump 7 月之前
  Steve0Greatness ce1097a9f0 Added Toggle for Showing Comments 7 月之前
共有 3 個文件被更改,包括 11 次插入3 次删除
  1. 4 0
      CHANGELOG.md
  2. 6 2
      fandom-debloater.user.css
  3. 1 1
      fandom-debloater.user.js

+ 4 - 0
CHANGELOG.md

@@ -1,3 +1,7 @@
+# 1.1
+
+* Added a toggle for showing article comments
+
 # 1.0
 
 * Initial release of userscript and -style

+ 6 - 2
fandom-debloater.user.css

@@ -1,18 +1,22 @@
 /* ==UserStyle==
 @name         YA Fandom Debloater
 @namespace    github.com/openstyles/stylus
-@version      1.0.0
-@preprocessor default
+@version      1.1.0
+@preprocessor less
 @description  (Yet Another Fandom Debloater)
 @author       Steve0Greatness
 @homepageURL  https://notabug.org/Steve0Greatness/Yet-Another-Fandom-Debloater
 @supportURL   https://notabug.org/Steve0Greatness/Yet-Another-Fandom-Debloater/issues
 @updateURL    https://notabug.org/Steve0Greatness/Yet-Another-Fandom-Debloater/raw/master/fandom-debloater.user.css
 @license      GPL-v3
+@var checkbox showcomments "Show article comments" 1
 ==/UserStyle== */
 @-moz-document domain("fandom.com") {
     #articleComments {
         margin-top: 3em;
+        if @showcomments == 0 {
+            display: none !important;
+        }
     }
 
     .ad-slot-placeholder,

+ 1 - 1
fandom-debloater.user.js

@@ -3,7 +3,7 @@
 // @namespace   Violentmonkey Scripts
 // @match       https://*.fandom.com/*
 // @grant       none
-// @version     1.0
+// @version     1.1
 // @author      Steve0Greatness
 // @description (Yet Another Fandom Debloater)
 // @copyright   GPL-v3