// ==UserScript== // @name upm // @namespace http://tampermonkey.net/ // @version 1.1 // @description no! // @author You // @match https://pterclub.com/upload.php // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org // @grant none // @run-at document-end // @downloadURL none // ==/UserScript==ssstyle=" (function() { document.querySelectorAll('#compose > table > tbody > tr:nth-child(11) > td.rowfollow > select')[0].value='1' document.querySelectorAll('#browsecat')[0].value='413' document.querySelectorAll('#compose > table > tbody > tr:nth-child(10) > td.rowfollow > select')[0].value='5' document.querySelectorAll('#jinzhuan')[0].checked=true document.querySelectorAll('#guanfang')[0].checked=true document.querySelectorAll('#compose > table > tbody > tr:nth-child(13) > td.rowfollow > input[type=checkbox]')[0].checked=true var divNode = document.querySelector(".wysibb-texarea"); divNode.setAttribute("oninput","checkTxt()") console.log(divNode) window.checkTxt = function (){ var pos=0; var res=''; var patten = /\.[0-9]{4}\./ arr = divNode.value.split('\n'); if(arr.length<12){return 0} for (i = 0; i < arr.length; i++) { if(arr[i].indexOf("[font=Lucida Console]")!=-1){ pos=i+1; break; } } aimpos = arr[pos] if(aimpos.indexOf('[')!=-1) { for(i=aimpos.indexOf('[')+1;i