// ==UserScript==
// @name autologin
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include *.catonrug.net:1*index.php
// ==/UserScript==
(function() {
'use strict';
let usernameElem = document.getElementById('name');
usernameElem.value = 'Admin';
let passwordElem = document.getElementById('password');
passwordElem.value = 'zabbix';
document.getElementById('enter').click();
// document.getElementsByTagName('form')[0].submit();
})();
To enable script you must have a valid URL pattern:
// @include *.catonrug.net:1*index.php
Related:https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
No comments:
Post a Comment