Skip to content

Instantly share code, notes, and snippets.

View AadityaJain-Dev's full-sized avatar
👨‍💻
Working

Aditya Jain AadityaJain-Dev

👨‍💻
Working
  • India
View GitHub Profile
// ==UserScript==
// @name MediaFire Batch Downloader v1
// @namespace http://tampermonkey.net/
// @include https://www.mediafire.com/folder/*
// @include https://www.mediafire.com/file/*
// @version 1.0
// @description Batch download files from a MediaFire folder with delay
// @author Aditya Jain
// @license GNU GPL v3
// @grant none
@AadityaJain-Dev
AadityaJain-Dev / groww-search-clickable.js
Created October 11, 2024 22:17
Groww - making search results clickable
/**
* Handles changes on the input element with id 'sp23Input' and
* the input element with class 'se55Input'. Updates specific DOM
* elements based on the data found in localStorage.
*/
try {
document.getElementById('sp23Input').addEventListener('change', handleInputChange); // input value
document.querySelector('.se55Input').addEventListener('change', handleInputChange); // drop down value
/**
@AadityaJain-Dev
AadityaJain-Dev / Reddit Web Comment Deletion Script.js
Last active November 15, 2023 14:20
Reddit Web Comment Deletion Script
/**
* Reddit Comment Deletion Script:
* This script automates the process of deleting the last 25 comments made by a user on their Reddit profile.
*
* Instructions:
* - Log in to Reddit and visit the comments page (https://www.reddit.com/user/[your_user_name]/comments/).
* - Run this script to delete the last 25 comments.
* - Refresh the page and run the script again for the next batch of comments.
*/
/**
* Filter products on the Myntra eCommerce website based on a specified price range.
* This code selects product elements and hides/shows them based on their prices.
*
* @param {number} minPrice - Minimum price threshold.
* @param {number} maxPrice - Maximum price threshold.
*/
function filterProductsByPriceRange(minPrice, maxPrice) {
// Select all product items on the Myntra search results page.
const productItems = document.querySelectorAll("#desktopSearchResults > div.search-searchProductsContainer.row-base > section > ul > li");