Answer the question
In order to leave comments, you need to log in
Javascript for Greasemonkey: how on page load "send a message" to the user?
It is necessary to make sure that when loading the page "send a message" to the user (site kinozal.tv), by default, the item "Save in sent" is ALWAYS checked . (see picture below).
The latest Firefox browser (v27.0.1) is being used.
Answer the question
In order to leave comments, you need to log in
// ==UserScript==
// @name Always__On
// @namespace Kinozal
// @description Авто-включить "Сохранить в отправленных"
// @include http://kinozal.tv/sendmessage.php*
// @version 1
// @grant none
// ==/UserScript==
document.getElementById('save').checked="checked";
Thanks for the answers:
1) Yuri Lobanov: @iiil (I don't know who deleted his answer),
2) and Sergey Sokolov: @sergiks
// ==UserScript==
// @name Always_On
// @namespace Kinozal
// @description Кинозал_сообщение "Сохранить в отправленных"
// @include http://kinozal.tv/sendmessage.php*
// @version 1
// @grant none
// ==/UserScript==
document.getElementById('save').checked="checked";
document.getElementById('delete').checked="";
I deleted the answer myself, because I completely missed Greasemonkey in the question and wrote you html checked and a second example in jq :)
Try checked=true and checked=false
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question