This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 ) { |