Skip to content

Instantly share code, notes, and snippets.

View kernelism's full-sized avatar
🤯
dazzled

Arjhun S kernelism

🤯
dazzled
View GitHub Profile
@kernelism
kernelism / skipHotstarAds.js
Created April 29, 2025 11:32
A simple script that when run on JioHotstar console skips all the ads. Right now its 3 un-skippable ads for 30 secs each even for a subscriber.
(function skipAdsHotstar() {
const video = document.querySelector('video');
if (!video) {
console.log("❌ No video element found.");
return;
}
const skipAd = () => {
if (video.duration < 60 && video.currentTime < video.duration - 1) {
@kernelism
kernelism / sel.py
Last active August 21, 2022 06:37
selenium lazy loading
from selenium import webdriver
url = '<your_url>'
browser = webdriver.Safari() # you can use any webdriver you want!
browser.get(url)
current_height = browser.execute_script('window.scrollTo(0,document.body.scrollHeight);')
while True:
browser.execute_script('window.scrollTo(0,document.body.scrollHeight);')
time.sleep(1)
new_height = browser.execute_script('return document.body.scrollHeight')