GenerateWP - Unlock Unallowed Modules

Replace "section-unallowed" with "section-allowed" on GenerateWP pages.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
sharmanhall
今日安裝
1
安裝總數
4
評價
0 0 0
版本
1.0
建立日期
2024-03-14
更新日期
2024-03-14
尺寸
1.1 KB
授權條款
MIT
腳本執行於

GenerateWP - Unlock Unallowed Modules

This Tampermonkey script automatically replaces all instances of the class "section-unallowed" with "section-allowed" on GenerateWP pages. This is particularly useful for webpages that dynamically load content (e.g., via AJAX), as the script continually monitors the page for changes and applies the replacement as needed.

Features

  • Automatic Replacement: Automatically replaces "section-unallowed" with "section-allowed" without any user intervention.
  • Dynamic Content Support: Utilizes MutationObserver to support webpages that load content dynamically, ensuring that all elements, regardless of when they are added to the DOM, have their class names replaced appropriately.

Usage

  1. Install Tampermonkey: Ensure that Tampermonkey is installed in your browser. If not, you can download and install it from https://www.tampermonkey.net/.
  2. Add Script: Click on the Tampermonkey icon in your browser, then select "Create a new script..."
  3. Copy and Paste Script: Replace the template with the script provided below. Make sure to replace YourName in the @author field with your actual name or username.
  4. Save: Save the script by pressing Ctrl + S or by selecting File > Save in the Tampermonkey editor.
  5. Visit GenerateWP: Navigate to https://generatewp.com/ and observe the script in action. The specified class names should be replaced accordingly.