diff --git a/TSDM_Mobile_Daily_CheckIn.js b/TSDM_Mobile_Daily_CheckIn.js new file mode 100644 index 0000000..4be0db7 --- /dev/null +++ b/TSDM_Mobile_Daily_CheckIn.js @@ -0,0 +1,34 @@ +// ==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(); + }); +})(); \ No newline at end of file