// ==UserScript== // @name upm // @namespace http://tampermonkey.net/ // @version 1.0 // @description no! // @author You // @match https://pterclub.com/upload.php // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org // @grant none // @downloadURL none // ==/UserScript==ssstyle=" (function() { 'use strict'; 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"); var pos=0; var res=''; var patten = /\.[0-9]{4}\./ divNode.setAttribute("oninput","checkTxt()") function checkTxt() { arr = divNode.value.split('\n'); 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