Paywall Button Injector

document.addEventListener(“DOMContentLoaded”, function() { /** * LexiPress: Paywall Button Injector (Direct Shop Routing) * Mounts an interactive “Unlock Now” button into the Madara blocked content container. */ function injectPaywallButton() { const paywallContainer = document.querySelector(‘body.reading-manga .content-blocked.login-required’); // If the container exists and…Continue reading

Gutenberg Checkout Login Interceptor

document.addEventListener(“DOMContentLoaded”, function() { /** * LexiPress: Gutenberg Checkout Login Interceptor * Prevents the native WooCommerce redirect and invokes the Madara Auth Modal. */ document.body.addEventListener(‘click’, function(e) { // Look for the specific link inside the React Must Login block const loginPromptLink…Continue reading

Checkout Block Legal Injector

document.addEventListener(“DOMContentLoaded”, function() { /** * LexiPress Checkout Block Legal Injector * Hooks into wp.apiFetch to pass legal states to the backend securely. */ // 1. Register API Fetch Middleware if ( window.wp && window.wp.apiFetch ) { window.wp.apiFetch.use( function( options, next…Continue reading

Altivo JS

// Tab functionality document.querySelectorAll(‘.tab-btn’).forEach(btn => { btn.addEventListener(‘click’, () => { const tab = btn.dataset.tab; document.querySelectorAll(‘.tab-btn’).forEach(b => b.classList.remove(‘active’)); document.querySelectorAll(‘.tab-panel’).forEach(p => p.classList.remove(‘active’)); btn.classList.add(‘active’); document.getElementById(‘tab-‘ + tab).classList.add(‘active’); }); }); // Mobile nav hamburger const hamburger = document.getElementById(‘hamburger’); const navLinks = document.getElementById(‘navLinks’); if (hamburger…Continue reading

AUTO-RETRACT MOBILE MENU ON ANCHOR CLICK

jQuery(document).ready(function($) { ‘use strict’; // 1. GHOST CLICK & CUSTOM SCROLL (The Ultimate Bypass) $(document).on(‘click touchend’, ‘.off-menu a[href*=”#”]:not([href=”#”])’, function(e) { var href = $(this).attr(‘href’); var targetId = href.substring(href.indexOf(‘#’)); var $target = $(targetId); // If the target section exists on this…Continue reading

[NOT IN USE – Zorem Customer Email Verification] Hide Billing Fields After Email Until Verified

(function () { const fieldSelectors = [ ‘#billing_phone_field’, ‘#billing_company_field’, ‘#billing_address_1_field’, ‘#billing_address_2_field’, ‘#billing_city_field’, ‘#billing_postcode_field’, ‘#billing_state_field’, ‘#billing_country_field’ ]; const klaviyoSelectors = [ ‘#kl_newsletter_checkbox_field’, ‘#kl_sms_consent_checkbox_field’ ]; function setVisibility(selectors, show) { selectors.forEach(selector => { const el = document.querySelector(selector); if (el) { el.style.display = show…Continue reading

[NOT IN USE – Zorem Customer Email Verification] Change Verification Code Input to Number Format

document.addEventListener(‘DOMContentLoaded’, function () { const observer = new MutationObserver(function () { const codeInput = document.querySelector(‘input[name=”cev_billing_email”]’); if (codeInput && !codeInput.hasAttribute(‘inputmode’)) { codeInput.setAttribute(‘inputmode’, ‘numeric’); } }); observer.observe(document.body, { childList: true, subtree: true }); });Continue reading

Untitled Snippet

document.addEventListener(‘DOMContentLoaded’, function () { document.querySelectorAll(‘.elementor-post__thumbnail__link’).forEach(function(link) { link.setAttribute(‘target’, ‘_blank’); link.setAttribute(‘rel’, ‘noopener noreferrer’); }); });Continue reading