Board Thread:General Coding Help/@comment-29943340-20180331003435/@comment-29943340-20180331032328

Posting this as another reply as I've technically solved the issue, but it's sort of a backwards method, and I want to be sure the code is clean. Basically, I modified some code from EditIntroButton and changed the link so it adds "?action=edit&useeditor=visual" to the page. This isn't EXACTLY what I want, but having this option will make users want to switch to the source mode editor more. If there is a way to force load the source editor (the one WITHOUT the classic editor in it), I would love to use that instead.

Here's the code. I would appreciate if someone could clean it up or at least tell me if it needs cleaning up: // Classic-Edit Button (lightly modified version of Grunny's EditIntroButton) // Adds a button to the Edit Dropdown that allows the user to edit in classic-visual mode. Useful for users who have the default as Source Mode. if ( wgNamespaceNumber != -1 && !window.AddSectionButtonLoaded ) { $( addAddSectionButton ); } var AddSectionButtonLoaded = true; function addAddSectionButton { var theText = 'Classic Editor'; if ( typeof AddSectionButtonText == "string" ) { theText = AddSectionButtonText; }	switch( skin ) { case 'oasis': case 'wikia': $(( wgNamespaceNumber == 2 || wgNamespaceNumber == 3 ) && $( '.UserProfileActionButton' ).length ? '.UserProfileActionButton > .wikia-menu-button > ul' : '.page-header__contribution-buttons .wds-list').append(''+ theText + ''); break; } }