AO3: Set Default Posting Language

Sets English as the default language to post works to Archive of Our Own.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name          AO3: Set Default Posting Language
// @author        Quihi
// @version       1.1
// @namespace     https://greasyfork.org/en/users/812553-quihi
// @description   Sets English as the default language to post works to Archive of Our Own.
// @match         https://archiveofourown.org/*works/new*
// @match     	  https://www.archiveofourown.org/*works/new*
// ==/UserScript==

try {
  document.getElementById("work_language_id").querySelectorAll("option[value='1']")[0].setAttribute("selected", "");
}
catch (error) {}

try {
	document.getElementById("language_id").querySelectorAll("option[value='1']")[0].setAttribute("selected", "");
}
catch (error) {}