Skip to content

Instantly share code, notes, and snippets.

View techguybiswa's full-sized avatar
💭
Building something meaningful

Biswarup Banerjee techguybiswa

💭
Building something meaningful
View GitHub Profile
@techguybiswa
techguybiswa / HashMap.ts
Created April 23, 2019 07:53 — forked from alaa-eddine/HashMap.ts
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects Features : * Direct acces too elements throught .get(key) * fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 )
/*
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects
Features :
* Direct acces too elements throught .get(key)
* fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 )
*/
class HashMap {
public length: number = 0;
let textToSend = "Hey There. I wanted to wish you Happy New Year. Hope you are doing great.";
textToSend = textToSend.split(".");
let count = 0;
let textbox = document.querySelector('div._2S1VP');
let event = new InputEvent('input', {
bubbles: true
});
let messageLoop = setInterval(function(){
textbox.textContent =textToSend[count] ;
textbox.dispatchEvent(event);
@techguybiswa
techguybiswa / LinkedInAutocoment.js
Last active March 31, 2019 15:59
Automatically reply to ALL your LinkedIn Comments
var listOfCommentBox = document.getElementsByTagName("article");
//get the array list of all the div-s that has the comments
let extractedListOfFirstComment = [];
// store the author details of the comment
let listOfDiv = [];
//store the div-s of the comment
let count =0;
function generateComment(name,index) {
// linkedin script
var listOfTopInvitations = document.getElementsByClassName("invitation-card__action-btn button-secondary-medium");
for (var i = 0;i<listOfTopInvitations.length();i++) { listOfTopInvitations[i].click() }
@techguybiswa
techguybiswa / WhatsAppAutomationScript.js
Created March 11, 2019 18:36
What's App Automated "New Year Wish" Script
let listOfRecentContacts = document.getElementsByClassName("_3j7s9");
console.log("listOfRecentContacts.length = " + listOfRecentContacts.length);
var eventToSwitchMessageBox = new MouseEvent('mousedown', {
bubbles: true,
});
let count =1;
let openMessageBox = setInterval(function(){
// if(count>listOfRecentContacts.length) {
if(count>5) {
console.log("Clearing interval with clearInterval...");