Created
September 8, 2021 22:00
-
-
Save brunos3d/46508d9e34c892e26c6213155bb0d0cf to your computer and use it in GitHub Desktop.
TamperMonkey CoinMarketCap Portfolio Tracker Title
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 CoinMarketCap Portfolio Tracker Title | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author Bruno Silva | |
// @match https://coinmarketcap.com/portfolio-tracker/ | |
// @icon https://www.google.com/s2/favicons?domain=coinmarketcap.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval(() => { | |
const currentPrice = document.querySelector(".sc-131di3y-0.cLgOOr").innerText; | |
document.title = `${currentPrice} | Portfolio Tracker`; | |
}, 1000); | |
// Your code here... | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Tampermonkey from Google Chrome Web Store
Copy the code above and paste it on Tampermonkey code editor
Save script