Skip to content

Instantly share code, notes, and snippets.

@brunos3d
Created September 8, 2021 22:00
Show Gist options
  • Save brunos3d/46508d9e34c892e26c6213155bb0d0cf to your computer and use it in GitHub Desktop.
Save brunos3d/46508d9e34c892e26c6213155bb0d0cf to your computer and use it in GitHub Desktop.
TamperMonkey CoinMarketCap Portfolio Tracker Title
// ==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...
})();
@brunos3d
Copy link
Author

brunos3d commented Sep 8, 2021

Install Tampermonkey from Google Chrome Web Store

image

Copy the code above and paste it on Tampermonkey code editor

image

Save script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment