GenerateWP - Unlock Unallowed Modules

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

Forfatter
sharmanhall
Daglige installasjoner
0
Totale installasjoner
0
Vurderinger
0 0 0
Versjon
1.0
Lagd
14.03.2024
Oppdatert
14.03.2024
Lisens
MIT
Gjelder

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.