Alwasy choose the best resolution on rumble.com
// ==UserScript==
// @name Choose the best resolution on rumble.com
// @namespace deep.institute
// @version Fixed
// @description Alwasy choose the best resolution on rumble.com
// @author deep.institute
// @license MIT
// @match *://rumble.com/*
// @grant none
// ==/UserScript==
const waitClick = selector => {
let intervalId = setInterval(function () {
const el = document.querySelector(selector)
if (el) {
// console.log(el)
el.click()
clearInterval(intervalId)
return
}
}, 100)
}
setTimeout(() => {
const selectors = [
'video',
'.videoPlayer-Rumble-cls > div > div:nth-child(6)>div',
'li:nth-child(2)>div',
'ul:last-child>li:last-child',
]
for (const selector of selectors) {
waitClick(selector)
}
}, 1500)