Greasy Fork is available in English.

Expandable Text Area for SDQL

Increase the killersports.com query text box to multiple rows and make it expandable by the user

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
swain scheps
일일 설치수
0
총 설치수
9
평점
0 0 0
버전
0.1
생성
2023-07-10
갱신
2023-07-10
크기
3.65KB
라이선스
없음
동작 사이트

For users of SDQL on Killersports.com, this script replaces the single line query text box with a multi-line/user-expandable textbox. It does this after the page load, copies the query string (if any) into the new textbox, places the cursor at the end of the string, and replicates the normal functionality as a way to submit the query. (You can do a line feed using + but not sure there's a reason to use that in a SDQL query).

If you are a SDQL user and you write long complicated queries, this script will aid you in being able to see more of your query at once. FWIW, this is another cosmetic request I've made to KS several times that I'm sure they'll get around to eventually, but in the meantime, this script works reasonably well. There is a minor impact on performance, as you can see the replacement happen after the page loads.

Note: you can adjust the default number of rows for the textbox with this line: textareaElement.rows = 3;

It would be cool for the next version to make the new textbox expand and contract depending on the size of the string in the query.

All these scripts are yours. Use them in peace.