At the moment I'm trying to create a script that is supposed to be run (by chrome extension) on page load (of the new entry page) that with automatically set the entry type. The name of the entry type is "Episodes" and the value (from the html) of the entry type is 5.
Here's the script I have so far.
var contenttype = document.getElementById('entryType');
contenttype.value = "5";
When run, this changes the Entry Type field on the side, but it doesn't actually set the entry type.
How should I go about doing this?