I want Tampermonkey to be able to get the value of a drop down, additionally the value I'm after is part of the URL as an option.
Example url: https://JimsPizza.com/NYC3/#/afe/rainbow?partition=PPPickToRebin3
HTML:
<div class="pull-right">
<small translate="afe_components_selector_process_path" class="ng-scope">Process Path:</small>
<select class="form-control input-sm ng-pristine ng-valid" ng-model="selectedChutePartitionName" ng-options="partitionName for partitionName in chutePartitionNames" ng-disabled="shouldDisablePartitionSelector()" ng-change="updateSelection({selection: chutePartitionMetadata[selectedChutePartitionName]})" style="">
<option value="0" selected="selected" label="PPAFE1">PPAFE1</option>
<option value="1" label="PPPickToRebin2">PPPickToRebin2</option>
<option value="2" selected="selected" label="PPPickToRebin3">PPPickToRebin3</option>
<option value="3" label="PPPickToRebin4">PPPickToRebin4</option>
</select>
</div>
Note: I am new to using Tampermonkey and JS in general, any answer is greatly appreciated. I have tried searching for examples but was unable to find anything