Better GreasyFork Forum

Show only the Creation Requests and Development Boards on the GreasyFork Forum.

当前为 2022-04-28 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Better GreasyFork Forum
// @namespace    BetterGreasyForkForum
// @version      5
// @description  Show only the Creation Requests and Development Boards on the GreasyFork Forum.
// @author       hacker09
// @match        https://greasyfork.org/*
// @icon         https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://greasyfork.org/&size=64
// @grant        none
// ==/UserScript==
(function() {
  'use strict';
  document.querySelector("li.forum-link > a").href = '/discussions/no-scripts'; //Make the Default Forum button redirect to another url

  if (location.href === 'https://greasyfork.org/en/discussions/no-scripts') //If the user on the Forum website
  { //Starts the if condition
    var Topics = document.querySelectorAll("div.discussion-meta-item.discussion-meta-item-script-name"); //Create a variable to hold the total Topics elements
    for (var i = Topics.length; i--;) { //Starts the for condition
      if (Topics[i].innerText === "Greasy Fork Feedback") { //Starts the if condition
        Topics[i].parentElement.parentElement.parentElement.style.display = 'none'; //Hide the element
      } //Finishes the if condition
    } //Finishes the for condition
  } //Finishes the if condition
})();