Talk:Greasemonkey Manual:API: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Reverted edits by 188.112.248.239 (Talk) to last revision by Arantius)
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)
== Продажа копий кредитных карт. ==
Кампания CardHolding занимается продажей копий кредитных карт с пин-кодами, дампы, CC, CVV2 (Visa, MasterCard). Примерный баланс карт от 1000 EUR и предназначены только для снятия наличных через банкомат. Стоимость 10% от баланса карты. Продаем по предоплате.
По всем вопросам пишите на E-mail: cardmoney@hu2.ru
кардинг, carding, дампы кредитных карт, продам картон, номера кредитных карт, хакерство, кредитные карты, как взломать банк, продам дампы кредитных карт, кардинг, как обмануть банкомат, дорожные чеки, кардеры, как ограбить банк, продам дампы кредитных карт, пластиковые карты, продам номера кредитных карт, основы кардинга, продам дампы кредитных карт, компьютерный взлом, хакеры, фальшивые кредитные карты, как стать хакером plastic cards

Revision as of 15:17, 6 March 2011

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)