At our organization, we utilize the Firefox Greasemonkey addon to automatically enter login credentials on a specific webpage upon opening it.
Here is an example of what the script consists of:
// ==UserScript==
// @name logon
// @namespace https://www.example.com
// @include https://www.example.com
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==
$(document).ready(function() {
$('input[name=username]').val('*****');
$('input[name=passcode]').val('*****');
$('input[name=send]').click();
});
After upgrading to Firefox version 70, we noticed that the script no longer enters the login information automatically. We suspect that this may be due to the page loading too slowly and the script running too quickly.
Therefore, we are seeking guidance on how to add a delay to the script so that it waits for 5 seconds after the page loads before executing.
We have tried implementing various examples found online, but have not been successful in getting them to work as intended.
Any assistance with this matter would be highly appreciated!
Thank you