Skip to content

Instantly share code, notes, and snippets.

@nishantrpai
nishantrpai / xspeakchat.js
Created October 17, 2026 16:57
speak aloud all messages on x live chat
// Clear out the console to remove noise
console.clear();
// Kill any stuck audio queues from the previous script runs
window.speechSynthesis.cancel();
(function() {
console.log("🔊 Single-Trigger Inverted Chat Reader Active!");
// Keep track of the last processed message key to prevent repeat triggers
let lastProcessedKey = "";
@nishantrpai
nishantrpai / about.md
Last active October 15, 2026 16:13
multiplegoogle.html

What is this?

If you want to do multiple google searches in tweetdeck style, this simple html allows you to do so.

You'll need the x frame bypass chrome extension (only use it for this site).

@nishantrpai
nishantrpai / lichess_chessset.css
Created November 24, 2025 05:26
opepen chess set for lichess
/* black pieces */
.black.rook {
background-image: url("https://opepenremixed.xyz/chess/assets/pieces/bR.png");
}
.black.knight {
background-image: url("https://opepenremixed.xyz/chess/assets/pieces/bN.png");
}
.black.bishop {
background-image: url("https://opepenremixed.xyz/chess/assets/pieces/bB.png");
}
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Chain is ERC721, Ownable {
uint256 public nextTokenId;
uint256 [] public colors;
constructor() ERC721("ChainNFT", "CHN") {
@nishantrpai
nishantrpai / lichessinfinitetime.md
Created January 22, 2024 07:48
Give infinite time to opponent

The opponent gives you time to act strong, you give him infinite time.

setInterval(() => { document.querySelector('.moretime').click() }, 500)

Show infinite love in the twitter spaces

  1. Join spaces
  2. Go to console

Paste: will run every second, do 5000 for 5s, currently 1s

setInterval(() => {
@nishantrpai
nishantrpai / replay.md
Last active July 15, 2023 07:12
If you want to replay git commits this script can help you. Useful for documentation purposes.
@nishantrpai
nishantrpai / unsub.md
Created July 5, 2023 11:28
How to unsubscribe from all subreddits:
  1. Go to https://www.reddit.com/subreddits/
  2. Go to console

Paste:

Array.from(document.querySelectorAll(`span.fancy-toggle-button.subscribe-button.toggle > a.option.active.remove.login-required`)).forEach((node, i) => setTimeout(() => { node.click(); console.log('leave node'); }, i*500));