Created
October 22, 2022 05:05
-
-
Save insanj/8fb867a49dcd806290e09cdf7e822faf to your computer and use it in GitHub Desktop.
✅ Fun TamperMonkey Script To Give Yourself an Instagram Checkmark (Will Break)
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
// ==UserScript== | |
// @name instagram_checkmark | |
// @namespace https://github.com/insanj | |
// @version 1.0.0 | |
// @description Fun TamperMonkey Script To Give Yourself an Instagram Checkmark (Will Break) | |
// @author Julian <@insanj> Weiss | |
// @match https://www.tampermonkey.net/scripts.php?version=4.18.0&ext=dhdg&updated=true | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// @match *://instagram.com/* | |
// @match *://*.instagram.com/* | |
// @run-at document-start | |
// ==/UserScript== | |
// | |
// Inspired by https://www.youtube.com/watch?v=1VPGCPsxGvk | |
// | |
(function() { | |
'use strict'; | |
var giveMeCheckmark; | |
giveMeCheckmark = () => { | |
if (document.getElementsByTagName("h2").length < 1) { | |
window.requestAnimationFrame(giveMeCheckmark); | |
return; | |
} | |
const nameEl = document.getElementsByTagName("h2").item(0); | |
const checkmarkEl = document.createElement('div'); | |
checkmarkEl.className = "_ab8w _ab94 _ab99 _ab9f _ab9m _ab9p _abb0 _abcm"; | |
checkmarkEl.innerHTML = '<span class="_act0 _a9_u _9ys7" title="Verified">Verified</span>'; | |
const nameElParent = nameEl.parentNode; | |
nameElParent.insertBefore(checkmarkEl, nameEl.nextSibling); | |
}; | |
giveMeCheckmark(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please Update Script.... Sir