MAJOR BUGGGG!! Why has my code suddenly stopped working?

Hi,

I have been building a some code to do some custom operations on the page. Everything was working fine. However, for the last few refreshes the UI has stopped responding to the code. I reverted back to the last version of the code that was working. However the issues remain.

Your code?