I am new to this site! :)
I want to ask a question, the question is that, I want a tampermonkey/greasemonkey script in which a button (example- next) becomes available somewhere on the page and on clicking the button, it basically goes to the 2nd ID and on clicking it again, it goes the 3rd ID and so on..
EXAMPLE:-
There is the following trimmed html code present on a page:-
<div style="width: 2917px; left: -660px;" id="PlaylistVideos">
<a href="/watch/video/1" class="PlaylistVideo" id="PlaylistVideo1" onclick="return switchToVideoAndDisableLink(this);" index="0" title="1"></a>
<a href="/watch/video/2" class="PlaylistVideo" id="PlaylistVideo2" onclick="return switchToVideoAndDisableLink(this);" index="0" title="2"></a>
<a href="/watch/video/3" class="PlaylistVideo" id="PlaylistVideo3" onclick="return switchToVideoAndDisableLink(this);" index="0" title="3"></a>
</div>
</section>
So, what I want to do is that a Next Button becomes available on the page and, on clicking it, it goes to the next id that is "PlaylistVideo2" and on clicking it again, it goes to the next id that is "PlaylistVideo3" and so on..
I tried many codes, but, I wasn't able to make it work..
Any help would be appreciated. Thanks in advance for anyone who can help me..