Post by @mundernan • Hey
I use this sript with tampermonkey,so I can see $Eth price in Chrome every time load a page. // ==UserScript== // @name Monitor Ethereum Price //
Stats
Actions: 0
Comments: 2
Likes: 1
Mirrors: 0
Quotes: 0
Comments
`(function() {` `'use strict';` `var div = document.createElement('div');` `div.style.position = 'fixed';` `div.style.top = '10px';` `div.style.right = '10px';` `div.style.backgroundColor = '#f8f9fa';` `div.style.padding = '10px';` `div.style.borderRadius = '5px';` `div.style.zIndex = 99999;` `document.body.appendChild(div);` `var checkPrice = function() {` `GM_xmlhttpRequest({` `method: "GET",` `url: "https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd",` `onload: function(response) {` `var res = JSON.parse(response.responseText);` `div.innerHTML = ' + res.ethereum.usd;` `}` `});` `};` `setInterval(checkPrice, 10000);` `})();`