Author : Trent Gordon

https://newsi8.com - 61 Posts - 0 Comments
Trent Gordon is an aspiring reporter who handles day to day operations at Newsi8 and occasionally gets to work on a story.
News i8 // Function to disable jQuery Mousewheel plugin function disableMouseWheel() { // Unbind the mousewheel event from all elements $(document).off("mousewheel"); $(document).off("DOMMouseScroll"); // For Firefox support } // Call the function to disable mouse wheel functionality disableMouseWheel(); $(window).on('load', function() { disableMouseWheel(); // Disable again after all scripts have loaded }); // Function to check if jQuery Mousewheel plugin is loaded function isMouseWheelLoaded() { return typeof jQuery.event.special.mousewheel !== 'undefined'; } // Usage if (isMouseWheelLoaded()) { console.log("WARNING: CloudFlare jQuery Mousewheel spyware plugin is loaded."); } else { console.log("GREAT: CloudFlare spyware jQuery Mousewheel plugin is NOT loaded."); }