Talk:Greasemonkey Manual:API: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Arantius moved page User:Greasemonkey Manual:API to Talk:Greasemonkey Manual:API over redirect: revert)
 
(17 intermediate revisions by 9 users not shown)
Line 24: Line 24:


: It is the general policy of Greasemonkey to ''not'' implement a special API just to build something that a user script can easily do on its own.  Something like this is a perfect candidate for a reusable component in the [[:Category:@require Library]]. [[User:Arantius|Arantius]] 12:55, 27 July 2010 (UTC)
: It is the general policy of Greasemonkey to ''not'' implement a special API just to build something that a user script can easily do on its own.  Something like this is a perfect candidate for a reusable component in the [[:Category:@require Library]]. [[User:Arantius|Arantius]] 12:55, 27 July 2010 (UTC)
== DDos услуги/заказать DDos ==
<b>DDos атака/заказать DDos</b>
- профессиональный сервис; 
- гарантируем Вам анонимность; 
- лучшее соотношение цены и качества на рынке DDoS услуг; 
- индивидуальный подход; 
- гибкая система скидок для постоянных клиентов и оптовых заказчиков; 
- оснащены профессиональными приватными программами; 
- беремся за проекты с анти-DDoS, за «тяжелые проекты»; 
- можем работать на постоянной основе несколько url одновременно(в любой момент url можно поменять); 
- предлагаем Вам качество проверено гарантом; 
- делаем тест; 
Досконально изучаем все тонкости Вашего заказа! 
Ценовая политика: 
от 1$ час 
(индивидуальный подход к оптовым клиентам) 
<b>Связь/Support: 
mail4900@rambler.ru</b>
защита сервера +от ddos атак, loic ddos, ddos википедия, ddos prevention, armageddon ddos, ddos атака css, +как совершить ddos атаку, dirt jumper ddos, nginx защита +от ddos, ssrc dc ddos, ddos botnet, trojan win32 ddos ci удалить, ddos center, программа ddos samp, ddos icq, +как провести ddos атаку, darkness ddos bot, ddo com ua, ddos сервера samp, ddos minecraft

Latest revision as of 23:31, 2 October 2023

GM_getObject/GM_setObject

I think these two additional functions might be handy:

function GM_getObject( name, default )
function GM_setObject( name, value )

Implementation:

function GM_getObject(name, defaultValue) {
	var s = GM_getValue(name);

	if (s === undefined) {
		return defaultValue;
	}
	else {
		return JSON.parse(s);
	}
}

function GM_setObject(name, value) {
	GM_setValue(name, JSON.stringify(value));
}
It is the general policy of Greasemonkey to not implement a special API just to build something that a user script can easily do on its own. Something like this is a perfect candidate for a reusable component in the Category:@require Library. Arantius 12:55, 27 July 2010 (UTC)