On 2017-08-23 21:38, [email protected] wrote:
New to scripting with greasemonkey. I just want to be able to change
one number on a web page when it opens to another number or name. When
I inspect element on page I get <span class="ledger--section-total
js-total-balance-value">$267,699.51</span> the number is a changing
number but I want to make it just a constant number. Is there a way to
script this to happen
// ==UserScript==
// @name jQuery Example
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant unsafeWindow
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
jQuery("span.ledger--section-total.js-total-balance-value").text("12345");
See https://wiki.greasespot.net/Third-Party_Libraries for using jQuery
with Greasemoney
See jQuery documentation how to access and modify the DOM tree
--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.