Okay, do they recommend removal after the code is added, to prevent security breaches?
I am not sure what you mean by "removal". Staff look at the JS and if they determine it is not suitable, they can do one of two things.
If they see a quick fix, they may do that for you and then immediately approve their modified version. On a few occasions, I have seen them do this for simple syntactical errors as well. However, this is not a service they have promised to provide. There have been a few times that I have made a mistake and it got approved.
Otherwise, they will simply mark it as rejected and the most recent approved revision will be used instead. Typically they will provide a reason for the rejection so you can try to correct it and resubmit for approval.
By removal, I mean clearing the JavaScript each time a change is resolved.
I still don't quite get where you are coming from. A wiki only uses the most recently approved revision of a JS page. When staff reject a revision, nothing happens to the page itself.
In other words, don't confuse what you see currently on the JS page with what is actually being executed for the wiki.
The current version of the Common.js page will only get used if you see something like the following in the right side bar:
https://viacomcbs.fandom.com/wiki/MediaWiki:Wikia.css
Did I miss any codes here? If yes, can you provide them?
Oh my bad @Fandyllic
However I eventually figured out the process
FYI, I went ahead and copied the previous day's data from your personal log to the wiki's log. If you don't want extra pages laying around, you can go ahead and delete your log and Monstermon's log. Neither will be used now that the wiki's log is the target. Also, there are additional settings you can set so that it automatically logs the data when either of you access the wiki. That way, you don't need to remember to click the button each time. You do need to visit the wiki though. If you are interested, you can enable it by editing your site's JS to be like this:
window.railWAM = { logPage: "Project:WAM Log", autoLogForUsers: [ "Monstermon", "UpnCbs06" ] }
Edit:
Of course, the new version would need to be approved before it becomes active. In the mean time, you will still need to click the button.