Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Letson-EstimatedEarnings
- // @namespace https://letsoncorp.com
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://letsoncorp.com/Youtube/EstimatedEarnings
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- var totalCurrency = 0;
- $('.div80 tr').each(function( index ) {
- if ($(this).css('font-weight') !== 'bold') {
- // empty
- }
- else {
- var tds = $(this).find( "td" );
- var earn = $(tds[tds.length - 1])[0].innerText;
- var currency = Number( earn.replace(/[^0-9\.]+/g,""));
- totalCurrency += currency;
- }
- });
- $('body').prepend('<strong>Currency: ' + totalCurrency + '</strong>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement