Greasy Fork

Yahoo sign up for iranian V3(ZANA_FN)

This script is for sign up iranian to the yahoo and to bypass sanctions on Iran by the yahoo site. After install you can select Iran country and set cell phone to receive sms for activation account.

当前为 2014-05-12 提交的版本,查看 最新版本

// ==UserScript==
// @name		Yahoo sign up for iranian V3(ZANA_FN)
// @description	This script is for sign up iranian to the yahoo and to bypass sanctions on Iran by the yahoo site. After install you can select Iran country and set cell phone to receive sms for activation account.
// @version		3.0
// @createdate	        2013-09-05
// @update		2014-05-12
// @namespace	http://forum.soft98.ir/member77546.html
// @author		ZANA_FN (from Iran)
// @homepage	http://forum.soft98.ir/member77546.html
// @license		GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html 
// @include		https://edit.europe.yahoo.com/registration*
// ==/UserScript==

["", "-rec"].forEach(function(entry) {
	var parent = document.getElementById('country-code'+entry);
	var child = parent.children[0];
	var node = document.createElement("option");
	node.value = '98';
	node.setAttribute('data-country-code', 'ir');
	node.setAttribute('aria-label', 'Iran');
	if (parent.value == '1')
		node.setAttribute('selected', 'selected');
	node.innerHTML = 'Iran (+98)';
	parent.insertBefore(node, child);
});
var referenceNode = document.getElementById('general-message');
var newNode = document.createElement("span");
newNode.setAttribute('style', 'display:block; direction:rtl; text-align:right; font:12px tahoma; color:#bbb;');
newNode.innerHTML = 'http://forum.soft98.ir/member77546.html  ویرایش توسط ٰZANA_FN ';
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);