Skip to content

Instantly share code, notes, and snippets.

View rahulbansal16's full-sized avatar

Rahul Bansal rahulbansal16

View GitHub Profile
@rahulbansal16
rahulbansal16 / gist:49b80a949de1719224952774a1bd9d9a
Created April 16, 2024 07:05
Fetching Transcript From the Spotify
const elements = document.querySelectorAll("div.wYBEXo9heVZe_zkteOJ6.QER3MDmhErzCc5bKcklD");
const texts = Array.from(elements).map(element => element.textContent);
console.log(texts);
@rahulbansal16
rahulbansal16 / gist:1cb2cb119ffaa3c91a1847e07d0377ca
Last active April 5, 2024 10:15
Automating the Summary of Whatsapp bots
Install the extension https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
Click on Icon and Dashboard from the Menu.
Click on New Script and paste the below code.
Navigate to web.whatsapp.com
You will see a summary button on every chat you open.
Click on the summary.
// ==UserScript==
// @name Whatsapp Chat Parsing
print(chunk == "This is the new home for Fly.io discussions, questions, queries and being the community that’s discovered the Firecracker-powered Global platform that is Fly. We previously ran this on Spectrum.chat, but unfortunately Spectrum has been becoming less and less reliable, and its future is set to be a migration to Github Discussions. We can’t wait for that, and we set to work finding a good replacement. You’re looking at it now, community.fly.io, a Discourse-powered discussion system which you more than likely already use. So, sign up now and get your place at community.fly.io then start a conversation. And if you have any questions, ask away here… Dj,/Discord/Discourse/ =]")
print("The hash and hash value is", hash(chunk), chunk, type(chunk))
@rahulbansal16
rahulbansal16 / fork-me-fcc-test-suite-template.markdown
Created November 17, 2019 12:12
Fork Me! FCC: Test Suite Template
0x3729f296bf692a998e645bdeabcac524a46169db
0xe836c689716dd5f53b9e93590dbb0fd44eb14cea
@rahulbansal16
rahulbansal16 / sample
Last active September 24, 2017 07:02
0xe836c689716dd5f53b9e93590dbb0fd44eb14cea
737760b91df7d3db2619adafc916d570b32ac2d6
737760b91df7d3db2619adafc916d570b32ac2d6