Last active
January 22, 2026 07:12
-
-
Save pachuco/9fc978ec0ee3c11b1d8d8042e76afb29 to your computer and use it in GitHub Desktop.
Greasemonkey script to fix stuff on Whirled Club, for PaleMoon and similar browsers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Whirling Pool | |
| // @namespace whirled | |
| // @description Fix stuff on Whirled Club, for PaleMoon and similar browsers. | |
| // @include https://www.whirled.club/* | |
| // @version 1.0 | |
| // @grant none | |
| // ==/UserScript== | |
| function patch_fixObjectEmbedFF() { | |
| // https://perishablepress.com/embed-flash-or-die-trying/ | |
| // for future reference | |
| var EMBEDFIX_CLASSNAME = "WP_fixed"; | |
| var callBack = function() { | |
| var elemArr = document.getElementsByTagName('object'); | |
| for(var i = 0; i < elemArr.length; i++) { | |
| var objElem = elemArr[i]; | |
| if (!objElem.classList.contains(EMBEDFIX_CLASSNAME)) { | |
| var urlParamElem = objElem.querySelector('param[name="movie"]'); | |
| if (objElem && urlParamElem) { | |
| if (urlParamElem) { | |
| console.log("---------------------Patched an object."); | |
| objElem.setAttribute("data", urlParamElem.getAttribute("value")); | |
| objElem.classList.add(EMBEDFIX_CLASSNAME); | |
| } | |
| } | |
| } | |
| } | |
| setTimeout(callBack, 1000); | |
| } // ---outer--- | |
| setTimeout(callBack, 500); | |
| } | |
| ////////////////////////////////// | |
| // Patchboard | |
| patch_fixObjectEmbedFF(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment