34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
// ==UserScript==
|
|
// @name TSDM Moblie Daily Check-In
|
|
// @version 1.1
|
|
// @description TSDM Moblie Daily Check-In
|
|
// @exclude *://www.tsdm*.*/plugin.php?id=np_cliworkdz:work*
|
|
// @exclude *://www.tsdm*.*/forum.php?mod=viewthread&tid=321479
|
|
// @include *://www.tsdm*.*/plugin.php?id=dsu_paulsign:sign&mobile=yes
|
|
// @grant none
|
|
// ==/UserScript==
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
// Function to submit the form
|
|
function submitForm() {
|
|
var form = document.querySelector('form[name="qiandao"]');
|
|
form.submit();
|
|
}
|
|
|
|
// Function to fill the input and select elements
|
|
function fillForm() {
|
|
var todaysayInput = document.querySelector('input[name="todaysay"]');
|
|
todaysayInput.value = 'Your text here';
|
|
|
|
var qdmodeRadio = document.querySelector('input[name="qdmode"][value="3"]');
|
|
qdmodeRadio.checked = true;
|
|
}
|
|
|
|
// Wait for the page to load before filling the form
|
|
window.addEventListener('load', function() {
|
|
fillForm();
|
|
submitForm();
|
|
});
|
|
})(); |