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
//#region Capitalize | |
// Write a function that accepts a string. The function should | |
// capitalize the first letter of each word in the string then | |
// return the capitalized string. | |
//i.e-1: capitalize('a short sentence') --> 'A Short Sentence' | |
//i.e-2: capitalize('a lazy fox') --> 'A Lazy Fox' | |
//i.e-3: capitalize('look, it is working!') --> 'Look, It Is Working!' | |
function capitalize(str) { | |
//TODO |
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
let prevFollowers = localStorage | |
.getItem(`${location.pathname.split("/")[1]}-followers`); | |
let followers = document.querySelectorAll("._1XyCr .FPmhX"); | |
let flwrs = []; | |
followers.forEach((item) => { | |
flwrs.push(`${item.href}`.split("/").reverse()[1]); | |
}); | |
if (prevFollowers) { | |
prevFollowers = prevFollowers.split("-"); | |
let newFollowers = flwrs.filter((follower) => { |
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
{"lastUpload":"2021-09-02T07:58:02.062Z","extensionVersion":"v3.4.3"} |