| (()=>{ | |
| // Select all row elements that represent folders by their data attributes or visible content | |
| const folderRows = document.querySelectorAll('div[data-item-index]'); | |
| // Extract folder names from anchor tags within those rows | |
| const folderNames = []; | |
| folderRows.forEach(row => { | |
| // The folder name seems inside: div > div.item-list-name > div.item-name-holder > div.name-row > div.item-name > a.item-link |
| @echo off | |
| setlocal EnableDelayedExpansion | |
| :: Set your root folder path | |
| cd /d "C:\Path\To\Your\Folders" | |
| for /d %%F in (*) do ( | |
| set "folderName=%%F" | |
| set "fileCount=0" |
| // Run this in the browser console while logged into Google Photos Albums page | |
| (function() { | |
| let albumNames = []; | |
| const links = document.getElementsByTagName('A'); | |
| for (let i = 0; i < links.length; i++) { | |
| const link = links[i]; | |
| // Google Photos albums usually show count like '123 items' in their text; skip those links | |
| if (/\b\d+ items\b/.test(link.innerText)) { | |
| const divs = link.getElementsByTagName('DIV'); |
| // given a condition all the sections are expanded | |
| (function () { | |
| function sanitize(text) { | |
| return text?.trim().replace(/\s+/g, ' ') || ''; | |
| } | |
| const sections = document.querySelectorAll('[data-purpose^="section-panel-"]'); | |
| const markdownLines = []; | |
| sections.forEach((section) => { |
| // ==UserScript== | |
| // @name Remove Sponsor Ads | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-12-05 | |
| // @description Removes sponsor ads on the MoneyControl mutual funds page. | |
| // @author You | |
| // @match https://www.moneycontrol.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=moneycontrol.com | |
| // @grant none | |
| // ==/UserScript== |
| { | |
| "budget_trips": [ | |
| { | |
| "Alleppey": "The Venice Of The East", | |
| "Goa": "The Land Of Beaches", | |
| "Pondicherry": "The French Town", | |
| "Gokarna": "The Less Crowded Goa", | |
| "Rishikesh": "The Yoga Capital", | |
| "Darjeeling": "The Land Of Thunderbolt", | |
| "McLeodganj": "The Little Lhasa", |
| /** | |
| * Asynchronous function to fetch internet facts from a JSON API. | |
| * @returns {Promise<void>} A Promise that resolves when the facts are fetched and logged. | |
| */ | |
| async function getFacts() { | |
| try { | |
| // Fetch data from the internet_facts.json API | |
| const API = await fetch( | |
| "https://gist.githubusercontent.com/g-rohit/a4c4c49b85c71bff69738e9ad0e44da9/raw/1e74b775a2efcf1cca8b066da45aa0d28c2ac096/internet_facts.json" | |
| ); |
| { | |
| "internet_facts": [ | |
| "The first ever website was published on August 6, 1991, by Tim Berners-Lee.", | |
| "The first email was sent by Ray Tomlinson in 1971.", | |
| "The concept of the World Wide Web was proposed by Tim Berners-Lee in 1989.", | |
| "Google processes over 40,000 search queries every second on average.", | |
| "The internet requires 50 million horsepower to keep running in current state.", | |
| "The most common use of the internet is sending and receiving email.", | |
| "YouTube is the second largest search engine on the internet, after Google.", | |
| "There are over 1.7 billion websites on the internet as of 2021.", |
| [ | |
| { | |
| "Name": "Antivirus", | |
| "ApplicationName": "Bitdefender Antivirus Free", | |
| "URL": "https://www.bitdefender.com/solutions/free.html", | |
| "tags": "utilities" | |
| }, | |
| { | |
| "Name": "Break time reminder", | |
| "ApplicationName": "Stretchly", |