Skip to content

Instantly share code, notes, and snippets.

@gcjbr
gcjbr / script.js
Created January 15, 2022 00:32
Script para livrar sua timeline do Twitter do INFERNO do BBB
const delayMs = 1000;
const keywords = ["#redeBBB","Big Brother","bbb","#BBB","#BBB22","#BBB222","#BBBB22","boninho","b0ninho","b0ninh0","boninh0","globoplay","Tadeu Schmidt","Schmidt","schimit","Pedro Scooby","Scooby","Arthur Aguiar","Brunna Gonçalves","Rhudson Victor","Rhudson","Rafa Kalimann","Kalimann","Luciano Estevan","Eslovenia Marques","Lucas Bissoli","lais caldas","Bissoli","Barbara Heck","Heck","Rodrigo Mussi","Mussi","Natalia Deodato","Paulo Andre Camilo","bigfone","bigphone","paredão","paredawn","paredaum","Eslovenia","Eliezer","Eli","Jessilane","Lais","Paulo Andre","Andre Camilo","anjo","imunidade","votação","projac"];
const nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value").set;
const addMutedKeyword = keyword => {
const input = document.querySelector("[name='keyword']");
nativeInputValueSetter.call(input, keyword);
input.dispatchEvent(new Event('input', { bubbles: true }));
function SearchingChallenge(str: string): string | number {
const openers = ['(', '['];
const closers = [')', ']'];
const collection = [];
let counter: number = 0;
let isValid = true;
[...str].forEach((char)=> {
if(openers.includes(char)) {
/*
* There are 3 key problems with the React code below. Can you find them?
* Assume fetchUserProfile exists elsewhere.
*/
import React, { Suspense, useState, useEffect } from "react";
const SuspensefulUserProfile = ({ userId }) => {
@gcjbr
gcjbr / Fade div content on window scroll - vanilla javascript.markdown
Created February 16, 2016 05:40
Fade div content on window scroll - vanilla javascript

Fade div content on window scroll - vanilla javascript

Just my shot at doing this without using jQuery

A Pen by GC on CodePen.

License.