Skip to content

Instantly share code, notes, and snippets.

View Rahul-RB's full-sized avatar
😄
Woo

Rahul R Bharadwaj Rahul-RB

😄
Woo
View GitHub Profile
@Rahul-RB
Rahul-RB / remove_google_meet_from_gmail_sidebar.js
Last active May 7, 2020 17:50
Remove Google Meet link in Gmail Sidebar
/* Install TamperMonkey
* Click on extension, create new script
* Copy paste the script from line 6 till end.
* Enjoy!
*/
// ==UserScript==
// @name Remove Google Meet link in Gmail Sidebar
// @namespace https://github.com/Rahul-RB
// @version 0.1
@Rahul-RB
Rahul-RB / mnemonic_auto_focus.js
Created March 17, 2020 04:27
Mnemonic Dictionary Auto Focus Tamper Monkey Script
/* Install TamperMonkey
* Click on extension, create new script
* Copy paste the script from line 6 till end.
* Enjoy!
*/
// ==UserScript==
// @name Mnemonic Dict Auto Focus
// @namespace https://github.com/Rahul-RB
// @version 0.3
@Rahul-RB
Rahul-RB / BrowserLikeTabs.js
Last active March 26, 2024 15:03
Dynamically add and remove tabs in Material UI (Browser tabs feature)
/* No licenses, use as pleased.
* The code here uses React Class components (ES6 classes).
* Ken Nguyen has made a hooks version of this! Please find that here: https://codesandbox.io/s/addanddelete-tabs-mui-bo7tw
* Cheers!
*/
import React, { Component } from "react";
import {
withStyles,
AppBar,
@Rahul-RB
Rahul-RB / RedditAutoSub.js
Last active January 28, 2021 07:55
Reddit Auto subscribe
// Open reddit in desktop browser and login into it. Then do the following:
// Go to https://www.old.reddit.com/subreddits/ and paste the following lines, until ****
function clickSubredditButtons(buttons) {
var i = buttons.length;
setTimeout(function() {
buttons[0].click()
if (--i) clickSubredditButtons(buttons.slice(1));
}, 500)
}
@Rahul-RB
Rahul-RB / massUnfollow.js
Last active May 7, 2017 02:04
Mass unfollow Quora
//Open your profile page and click "Following" tab on left side
//Then open console and paste the code below.
//You can also specify the people who you want to keep following (depending on their number of followers).
//To do so, change the float number at end of this condition in "if" statement: "parseFloat(tag.childNodes[1].innerHTML)<20.00 "
var all_tags = document.getElementsByTagName("a");
for(var i=0, len=all_tags.length ; i<len ; ++i)
{
var tag = all_tags[i];
if( tag.getAttribute("action_click") && tag.getAttribute("action_click") == "UserUnfollow" && tag.childNodes[1].innerHTML!="undefined" && parseFloat(tag.childNodes[1].innerHTML)<20.00 ) {