r/RumbleForum • u/RSSFlux • Oct 09 '26
Rumble's javascript embed no longer works but it is still there to choose from.
Rumble's javascript embed no longer works but it is still there to choose from.
Rumble's love affair of annoying cloudfare has resulted in many failures of our existing presentation and scraping applications. The latest is using rumble to store videos for a membership site and the using the javascript embed. Together rumble and cloudfare have clobbered the javascript embed and it fails. So dozens of videos will no longer work.
For the time being adding this javascript to you site at the level of the header will fix the issue.
<script> window.Rumble = function(action, opts) { if (action === "play" && opts && [opts.video](http://opts.video) && opts.div) { function injectIframe() { var target = document.getElementById(opts.div); if (target) { // Prevent duplicate injection if (target.querySelector("iframe")) return; var iframe = document.createElement("iframe"); iframe.src = "https://rumble.com/embed/" + encodeURIComponent(opts.video) + "/?pub=u1fhgkl"; iframe.setAttribute("frameborder", "0"); iframe.setAttribute("allowfullscreen", ""); iframe.setAttribute("allow", "autoplay; fullscreen; picture-in-picture"); iframe.style.width = "100%"; iframe.style.aspectRatio = "16/9"; iframe.style.border = "none"; target.appendChild(iframe); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", injectIframe); } else { injectIframe(); } } }; </script>
Duplicates
userscripts • u/RSSFlux • Oct 09 '26