- Mar 22, 2013
- 8,675
- 10,228
I need Greasemonkey to change a value by 5 in some code. I'm not sure if it's possible, but I think it is.
We have this code:
<input id="some" name="asd" data-bv-notempty="" data-bv-notempty-message="bla bla bla bla" placeholder="e.g. 20" data-bv-greaterthan="true" data-bv-greaterthan-value="10" data-bv-lessthan="true" data-bv-lessthan-value="51" data-bv-lessthan-message="bla bla" class="form-control" value="40" type="hidden">
Where it says Value="40"
I want when the page loads for Greasemonkey to turn that into Value="45"
But if it says Value="10", I want it to become Value="15"
And so on and so forth...
Can it be done? @TomTheCat @Gogol
We have this code:
<input id="some" name="asd" data-bv-notempty="" data-bv-notempty-message="bla bla bla bla" placeholder="e.g. 20" data-bv-greaterthan="true" data-bv-greaterthan-value="10" data-bv-lessthan="true" data-bv-lessthan-value="51" data-bv-lessthan-message="bla bla" class="form-control" value="40" type="hidden">
Where it says Value="40"
I want when the page loads for Greasemonkey to turn that into Value="45"
But if it says Value="10", I want it to become Value="15"
And so on and so forth...
Can it be done? @TomTheCat @Gogol