Better GreasyFork Forum

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

目前为 2020-12-16 提交的版本。查看 最新版本

// ==UserScript==
// @name         Better GreasyFork Forum
// @namespace    BetterGreasyForkForum
// @version      0.1
// @description  Show only the Creation Requests and Development Boards on the GreasyFork Forum.
// @author       hacker09
// @match        https://gf.qytechs.cn/*
// @icon         https://www.google.com/s2/favicons?domain=gf.qytechs.cn
// @grant        none
// ==/UserScript==
(function() {
  'use strict';
  document.querySelector("#site-nav > nav > li.forum-link > a").href = '/discussions/no-scripts'; //Make the Default Forum button redirect to another url

  if (location.href.match('/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
})();

QingJ © 2025

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