GreasyFork Search

To search scripts using Google Search

作者
𝖢𝖸 𝖥𝗎𝗇𝗀
日安装量
0
总安装量
200
评分
5 0 0
版本
0.6.5
创建于
2023-06-12
更新于
2024-10-09
大小
20.3 KB
许可证
MIT
适用于

GreasyFork Scripts

Description

The GreasyFork Scripts by Google Search user script supercharges your GreasyFork experience by merging the power of Google Search with smart, data-driven result ranking. This script offers two distinct modes: one that leverages Google’s advanced search operators to locate scripts with pinpoint accuracy, and another that enhances GreasyFork’s native search by dynamically reordering results based on script popularity and keyword relevance. By harnessing the jStat library for statistical analysis—including Principal Component Analysis (PCA)—the script intelligently refines the search results, ensuring that the most relevant and widely-used scripts rise to the top.

Usage

This script introduces two primary search functionalities on the main page of gf.qytechs.cn:

  1. Google Search Mode: Triggered by prefixing your search query with g.
    • Example: g YouTube

This mode redirects your query to Google, which then searches GreasyFork script pages exclusively. It filters out non-script sections (like user profiles, discussions, and stats) to return comprehensive and precise results.

  1. Enhanced Native Search Mode: Activated by entering a query without the g prefix.
    • Example: youtube.com tamer

In this mode, the script intercepts the standard GreasyFork search process. It gathers script metadata such as daily and total install counts, normalizes this data, and applies PCA to compute a dynamic ranking score. Additionally, it boosts the ranking of scripts that match your query keywords in their titles or descriptions, ensuring the most relevant results are prioritized.

Features

  • Dual Search Modes: Seamlessly switch between a full-scale Google-powered search and an enhanced native search with intelligent result reordering.
  • Advanced Statistical Ranking: Utilizes PCA on normalized install metrics to compute relevance scores, thereby reordering search results based on popularity and statistical significance.
  • Google Search Integration: Employs Google’s advanced search operators to confine your query strictly to GreasyFork’s script pages, effectively filtering out unrelated content.
  • Keyword Relevance Enhancement: Boosts results that contain query keywords in their titles or descriptions for improved relevance.
  • Seamless Integration: Automatically hooks into the GreasyFork search form, providing these enhancements without disrupting your usual workflow.
  • Language and Domain Filtering: Supports language selection and domain-specific searches, tailoring results to your precise needs.
  • Efficient Performance: Built on the lightweight jStat library for quick and effective mathematical computations, ensuring minimal impact on page load times.

Additional Technical Details

  • Statistical Analysis: The script leverages the jStat library to perform matrix operations and PCA. This analysis refines the ranking of scripts based on real-time usage data, such as daily and total install counts.
  • Dynamic Form Interception: By monitoring the GreasyFork search form, the script dynamically adjusts the search behavior based on whether a Google search prefix is detected.
  • Result Reordering: Beyond statistical ranking, the script also incorporates keyword matching within script titles and descriptions to further adjust the order of results, ensuring that highly relevant scripts are featured prominently.
  • Robust Error Handling: Includes fallback mechanisms to maintain consistent performance even if certain statistical refinements are not applicable.

QingJ © 2025

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