Полезная информация

На IRC-канале #mozilla-ru можно получить техническую консультацию онлайн и, конечно же, порцию общения.

№115-12-2012 10:53:50

Lex1
Участник
 
Группа: Members
Зарегистрирован: 07-07-2007
Сообщений: 260
UA: Firefox 16.0

[CB] Букмарклеты в контекстном меню

Кнопка добавляет в контекстное меню страницы пункт "Дополнительно" с произвольными букмарклетами.
Формат:

Выделить код

Код:

["Имя", function(){код_без_javascript:}], 

Если в коде вашего букмарклета встречается "%20" и т.п, то сначала его нужно раскодировать на http://www.codenet.ru/services/urlencode-urldecode/ - нижнее правое поле.

Код

Выделить код

Код:

custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3Eext%20menu%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bcustombuttons-stdicon-1%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5Bvar%20itemsArr%20%3D%20%5B%0A%20%20%20%20%5B%22%u0418%u0441%u043A%u0430%u0442%u044C%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u0443%20%u0432%20%u043A%u044D%u0448%u0435%20Google%22%2C%20function%28%29%7Bwindow.open%28%27http%3A//www.google.com/search%3Fq%3Dcache%3A%27+location.href%29%7D%5D%2C%0A%20%20%20%20%5B%22%u0418%u0441%u043A%u0430%u0442%u044C%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u0443%20%u043D%u0430%20Archive.org%22%2C%20function%28%29%7Bwindow.open%28%27http%3A//web.archive.org/web/*/%27+location.href%29%7D%5D%2C%0A%20%20%20%20%2C%0A%20%20%20%20%5B%22%u0418%u0441%u043A%u0430%u0442%u044C%20%u043B%u043E%u0433%u0438%u043D%20%u043D%u0430%20BugMeNot.com%22%2C%20function%28%29%7Bwindow.open%28%27http%3A//www.bugmenot.com/view/%27+location.hostname%2C%27BugMeNot_%27+location.hostname%2C%27width%3D500%2Cheight%3D400%2Cleft%3D100%2Ctop%3D100%2Cscrollbars%3Dyes%2Clocation%3Dno%27%29%7D%5D%2C%0A%20%20%20%20%5B%22%u041F%u0440%u043E%u0432%u0435%u0440%u0438%u0442%u044C%20%u0441%20%u043F%u043E%u043C%u043E%u0449%u044C%u044E%20Dr.Web%20Online%22%2C%20function%28%29%7Bwindow.open%28%27http%3A//online.drweb.com/result%3Furl%3D%27+escape%28location.href%29%2C%27DrWeb_%27+location.href%2C%27width%3D640%2Cheight%3D400%2Cleft%3D200%2Ctop%3D100%2Cscrollbars%3Dyes%2Clocation%3Dno%27%29%7D%5D%2C%0A%20%20%20%20%5B%22%u041F%u0440%u043E%u0432%u0435%u0440%u0438%u0442%u044C%20%u0434%u043E%u0441%u0442%u0443%u043F%u043D%u043E%u0441%u0442%u044C%20%u0441%u0430%u0439%u0442%u0430%22%2C%20function%28%29%7Bwindow.open%28%27http%3A//downforeveryoneorjustme.com/%27+location.hostname%2C%27DownForMe_%27+location.hostname%2C%27width%3D600%2Cheight%3D400%2Cleft%3D100%2Ctop%3D100%2Cscrollbars%3Dyes%2Clocation%3Dno%27%29%7D%5D%2C%0A%20%20%20%20%2C%0A%20%20%20%20%5B%22%u041F%u043E%u0438%u0441%u043A%20%u043F%u043E%20%u0442%u0435%u043A%u0443%u0449%u0435%u043C%u0443%20%u0441%u0430%u0439%u0442%u0443%22%2C%20function%28%29%7Bvar%20getSel%3Dfunction%28w%29%7Bvar%20s%2Cd%3Dw.document%3Bif%28d.selection%29%7Bvar%20r%3Dd.selection.createRange%28%29%3Bs%3Dr%3Fr.text%3A%27%27%7Delse%7Bs%3Dd.getSelection%28%29.toString%28%29%3Bif%28%21s%29%7Bvar%20e%2Ct%3Dd.getElementsByTagName%28%27textarea%27%29%2Cu%3Dd.getElementsByTagName%28%27input%27%29%2Ci%3Dt.length%3Bwhile%28e%3D%28i%3E0%29%3Ft%5B--i%5D%3Au%5B-i--%5D%29try%7Bif%28e.offsetHeight%3E0%26%26%28s%3De.value.substring%28e.selectionStart%2Ce.selectionEnd%29%29%29break%7Dcatch%28x%29%7B%7D%7D%7D%3Bif%28%21s%29for%28var%20j%3D0%2Cf%3Bf%3Dw.frames%5Bj%5D%3Bj++%29%7Btry%7Bif%28s%3DgetSel%28f%29%29break%7Dcatch%28x%29%7B%7D%7D%3Breturn%20s%7D%3Bvar%20w%3Dwindow%2Cs%3Dw.prompt%28%27%u041F%u043E%u0438%u0441%u043A%20%u043D%u0430%20%u044D%u0442%u043E%u043C%20%u0441%u0430%u0439%u0442%u0435%20%u0441%20%u043F%u043E%u043C%u043E%u0449%u044C%u044E%20Google%27%2CgetSel%28w%29%29%3Bif%28s%29%7Bw.open%28%27http%3A//www.google.com/search%3Fas_q%3D%27+encodeURIComponent%28s%29+%27%26as_sitesearch%3D%27+w.location.hostname%29%7D%7D%5D%2C%0A%20%20%20%20%5B%22%u0421%u0433%u0435%u043D%u0435%u0440%u0438%u0440%u043E%u0432%u0430%u0442%u044C/%u043F%u043E%u043A%u0430%u0437%u0430%u0442%u044C%20%u043F%u0430%u0440%u043E%u043B%u044C%22%2C%20function%28%29%7Bvar%20getRandomPass%3Dfunction%28d%29%7Bvar%20chars%3D%27abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890%27%3Bvar%20ret%3D%27%27%2Clen%3Dd%3E%3D3%3Fd%3A3%2Cbuf%3Dnew%20Uint8Array%28len%29%3Bcrypto.getRandomValues%28buf%29%3Bfor%28var%20i%3D0%3Bi%3Clen%3Bi++%29ret+%3Dchars.charAt%28buf%5Bi%5D*chars.length%3E%3E8%29%3Breturn/%5E%28%3F%3D.*%5Cd%29%28%3F%3D.*%5Ba-z%5D%29%28%3F%3D.*%5BA-Z%5D%29.+%24/.test%28ret%29%3Fret%3AgetRandomPass%28len%29%7D%3Bvar%20findPassEle%3Dfunction%28p%29%7Bvar%20c%2Cs%3D%27%27%2Cr%3Dfalse%2Cf%3Ddocument.getElementsByTagName%28%27form%27%29%3Bfor%28var%20i%3D0%3Bi%3Cf.length%3Bi++%29%7Bc%3Df%5Bi%5D.elements%3Bfor%28var%20j%3D0%2Ce%3Be%3Dc%5Bj%5D%3Bj++%29%7Bif%28e.type%3D%3D%27password%27%29%7Br%3Dtrue%3Bif%28p%29%7Be.value%3Dp%3Be.focus%28%29%7Delse%20if%28e.value%29s+%3D%27%5Cn%5Cn%27+e.value%7D%7D%7D%3Breturn%20r%3Fs%3Anull%7D%3Bvar%20s%3DfindPassEle%28%29%3Bif%28s%29%7Balert%28%27%u041D%u0430%20%u044D%u0442%u043E%u0439%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u0435%20%u0443%u0436%u0435%20%u0438%u043C%u0435%u0435%u0442%u0441%u044F%20%u043F%u0430%u0440%u043E%u043B%u044C%3A%27+s%29%7Delse%7BfindPassEle%28prompt%28%27%u041F%u0430%u0440%u043E%u043B%u044C%20%u0441%u0433%u0435%u043D%u0435%u0440%u0438%u0440%u043E%u0432%u0430%u043D%27+%28s%3D%3Dnull%3F%27%3A%27%3A%27.%20%u0412%u0441%u0442%u0430%u0432%u0438%u0442%u044C%3F%27%29%2CgetRandomPass%2812%29%29%29%7D%7D%5D%2C%0A%20%20%20%20%5B%22%u041F%u043E%u043A%u0430%u0437%u0430%u0442%u044C%20%u0441%u0441%u044B%u043B%u043A%u0438%20%u043D%u0430%20Flash/Video%22%2C%20function%28%29%7Bvar%20getVideo%3Dfunction%28flashvars%2Csrc%29%7Bvar%20getLink%3Dfunction%28s%29%7Bvar%20a%3Ds.match%28/%5B%5E%5Cs%5Cx22%3D%26%3F%5D+%5C.%5B%5E%5Cs%5Cx22%3D%26%3F%5C/%5D*%28flv%7Cmp4%29/i%29%3Breturn%20a%3Fa%5B0%5D%3A%27%27%7D%3Bvar%20getQuery%3Dfunction%28s%2Cq%29%7Bvar%20a%3Ds.match%28new%20RegExp%28%27%28%5E%7C%5B%26%3F%5D%29%27+q+%27%3D%28%5B%5E%26%5D+%29%27%29%29%3Breturn%20a%3Fa%5B2%5D%3A%27%27%7D%3Bvar%20getJson%3Dfunction%28s%2Cq%29%7Bvar%20a%3Ds.match%28new%20RegExp%28%27%5Cx22%27+q+%27%5Cx22%3A%5C%5Cs*%28%5Cx22.+%3F%5Cx22%29%27%29%29%3Breturn%20a%3Feval%28a%5B1%5D%29%3A%27%27%7D%3Bvar%20getURL%3Dfunction%28f%2Cs%29%7Breturn%20f.match%28/%5E%28%5Cw+%3A%5C/%5C/%7C%5C/%7C%24%29/%29%3Ff%3As.replace%28/%5B%23%3F%5D.*%24/%2C%27%27%29.replace%28/%5B%5E%5C/%5D*%24/%2Cf%29%7D%3Bvar%20decodeURL%3Dfunction%28s%29%7Btry%7Breturn%20decodeURIComponent%28s%29%7Dcatch%28e%29%7Breturn%20unescape%28s%29%7D%7D%3Bvar%20q%3D%27%27%2Curl%3Dlocation.href%2Cflv%3DdecodeURL%28flashvars%29%3Bif%28url.indexOf%28%27youtube.com/watch%3F%27%29%21%3D-1%26%26%28q%3DgetQuery%28flv%2C%27url%27%29%29%29return%20decodeURL%28q%29+%27%26signature%3D%27+getQuery%28flv%2C%27sig%27%29+%27%26title%3D%27+encodeURIComponent%28document.title%29%3Bif%28url.indexOf%28%27video.google.com/videoplay%3F%27%29%21%3D-1%26%26%28q%3DgetQuery%28src%2C%27videoUrl%27%29%29%29return%20decodeURL%28q%29%3Bif%28url.indexOf%28%27metacafe.com/watch/%27%29%21%3D-1%26%26%28q%3DgetJson%28flv%2C%27mediaURL%27%29%29%29return%20q+%27%3F__gda__%3D%27+getJson%28flv%2C%27value%27%29%3Bif%28url.indexOf%28%27dailymotion.com/%27%29%21%3D-1%26%26%28q%3DgetJson%28flv%2C%27hqURL%27%29%7C%7CgetJson%28flv%2C%27sdURL%27%29%29%29return%20q%3Bif%28url.indexOf%28%27www.break.com/%27%29%21%3D-1%26%26%28q%3DgetQuery%28flv%2C%27videoPath%27%29%29%29return%20q+%27%3F%27+getQuery%28flv%2C%27icon%27%29%3Bif%28url.indexOf%28%27my-hit.ru/film/%27%29%21%3D-1%26%26%28q%3DgetLink%28flv%29%29%29return%20q+%27%3Fstart%3D0%26id%3D%27+getQuery%28flv%2C%27id%27%29%3Breturn%20getURL%28getLink%28flv%29%7C%7CdecodeURL%28getLink%28src%29%29%2Csrc%29%7D%3Bvar%20createLink%3Dfunction%28url%2Ctxt%29%7Bvar%20oLnk%3Ddocument.createElement%28%27a%27%29%3BoLnk.setAttribute%28%27href%27%2Curl%29%3BoLnk.setAttribute%28%27style%27%2C%27display%3Ainline%3Bmargin%3A0%3Bpadding%3A0%3Bfont%3A14px%20Times%20New%20Roman%3Btext-decoration%3Aunderline%3Btext-transform%3Anone%3B%27%29%3BoLnk.appendChild%28document.createTextNode%28txt%29%29%3Breturn%20oLnk%7D%3Bvar%20showLink%3Dfunction%28oEle%2Csrc%2Cflv%29%7Bvar%20cName%3D%27ujs_downlink%27%3Bvar%20p%3DoEle.previousSibling%3Bif%28p%26%26p.className%3D%3DcName%29%7BoEle.parentNode.removeChild%28p%29%3Breturn%7D%3Bif%28src%29%7Bvar%20oDiv%3Ddocument.createElement%28%27div%27%29%3BoDiv.setAttribute%28%27style%27%2C%27display%3Ablock%3Bposition%3Astatic%3Bfloat%3Anone%3Bmargin%3A0%3Bpadding%3A0%3Bwidth%3Aauto%3Bheight%3Aauto%3Bfont%3A14px%20Times%20New%20Roman%3Bcolor%3A%23555%3Bz-index%3A999%3B%27%29%3BoDiv.className%3DcName%3BoDiv.appendChild%28createLink%28src%2C%27Download%27%29%29%3Bvar%20v%3DgetVideo%28flv%2Csrc%29%3Bif%28v%29%7BoDiv.appendChild%28document.createTextNode%28%27%20%28%27%29%29%3BoDiv.appendChild%28createLink%28v%2C%27Video%27%29%29%3BoDiv.appendChild%28document.createTextNode%28%27%29%27%29%29%7D%3BoEle.parentNode.insertBefore%28oDiv%2CoEle%29%7D%7D%3Bvar%20getParam%3Dfunction%28e%2Cn%29%7Bvar%20v%3D%27%27%2Cr%3Dnew%20RegExp%28%27%5E%28%27+n+%27%29%24%27%2C%27i%27%29%3Bvar%20param%3De.getElementsByTagName%28%27param%27%29%3Bfor%28var%20i%3D0%2Cp%3Bp%3Dparam%5Bi%5D%3Bi++%29%7Bif%28r.test%28p.getAttribute%28%27name%27%29%29%29%7Bv%3Dp.getAttribute%28%27value%27%29%3Bbreak%7D%7D%3Breturn%20v%7D%3Bvar%20searchEmbed%3Dfunction%28w%29%7Bif%28%21w%29return%3Bvar%20obj%3Dw.document.getElementsByTagName%28%27object%27%29%3Bfor%28var%20i%3D0%2Coi%3Boi%3Dobj%5Bi%5D%3Bi++%29%7Bif%28oi.parentNode%29showLink%28oi%2Coi.getAttribute%28%27data%27%29%7C%7Coi.getAttribute%28%27src%27%29%7C%7CgetParam%28oi%2C%27movie%7Cdata%7Csrc%7Ccode%7Cfilename%7Curl%27%29%7C%7C%28oi.getElementsByTagName%28%27embed%27%29.length%26%26oi.getElementsByTagName%28%27embed%27%29%5B0%5D.getAttribute%28%27src%27%29%29%2CgetParam%28oi%2C%27flashvars%27%29%29%7D%3Bvar%20em%3Dw.document.getElementsByTagName%28%27embed%27%29%3Bfor%28var%20i%3D0%2Cei%3Bei%3Dem%5Bi%5D%3Bi++%29%7Bif%28ei.parentNode%26%26ei.parentNode.nodeName.toLowerCase%28%29%21%3D%27object%27%29showLink%28ei%2Cei.getAttribute%28%27src%27%29%2Cei.getAttribute%28%27flashvars%27%29%29%7D%3Bfor%28var%20j%3D0%2Cf%3Bf%3Dw.frames%5Bj%5D%3Bj++%29%7Btry%7Barguments.callee%28f%29%7Dcatch%28e%29%7B%7D%7D%7D%3BsearchEmbed%28window%29%7D%5D%2C%0A%20%20%20%20%2C%0A%20%20%20%20%5B%22%u0418%u043D%u0444%u043E%u0440%u043C%u0430%u0446%u0438%u044F%20%u043E%20%u0441%u0442%u0440%u0430%u043D%u0438%u0446%u0435%22%2C%20function%28%29%7Bvar%20meta%3D%27%27%2Cscripts%3D%27%27%2Cembed%3D%27%27%2Ciframes%3D%27%27%2Ccookies%3D%27%27%3Bvar%20corrUrl%3Dfunction%28url%29%7Bif%28%21url%29return%27%27%3Bvar%20q%3Durl.indexOf%28%27%3F%27%29+1%3Breturn%28%28q%26%26url.length%3E50%29%3Furl.slice%280%2Cq%3E50%3Fq%3A50%29+%27%5Cu2026%27%3Aurl%29+%27%5Cn%27%7D%3Bvar%20fullUrl%3Dfunction%28url%29%7Bvar%20a%3Ddocument.createElement%28%27a%27%29%3Ba.href%3Durl%3Breturn%20url%3FcorrUrl%28a.href%29%3A%27%27%7D%3Bvar%20m%3Ddocument.getElementsByTagName%28%27meta%27%29%3Bfor%28var%20i%3D0%2Cmi%3Bmi%3Dm%5Bi%5D%3Bi++%29%7Bmeta+%3D%28mi.name%3Fmi.name+%27%3A%20%27%3A%28mi.httpEquiv%3Fmi.httpEquiv+%27%3A%20%27%3A%27%27%29%29+mi.content+%27%5Cn%27%7D%3Bvar%20s%3Ddocument.getElementsByTagName%28%27script%27%29%3Bfor%28var%20i%3D0%2Csi%3Bsi%3Ds%5Bi%5D%3Bi++%29%7Bif%28si.src%29scripts+%3DcorrUrl%28si.src%29%7D%3Bvar%20e%3Ddocument.getElementsByTagName%28%27embed%27%29%3Bvar%20o%3Ddocument.getElementsByTagName%28%27object%27%29%3Bfor%28var%20i%3D0%2Cei%3Bei%3De%5Bi%5D%3Bi++%29%7Bembed+%3DfullUrl%28ei.getAttribute%28%27src%27%29%29%7D%3Bfor%28var%20i%3D0%2Coi%3Boi%3Do%5Bi%5D%3Bi++%29%7Bvar%20src%3Doi.getAttribute%28%27data%27%29%7C%7Coi.getAttribute%28%27src%27%29%7C%7Coi.getAttribute%28%27source%27%29%3Bif%28%21src%29%7Bvar%20params%3Doi.getElementsByTagName%28%27param%27%29%3Bfor%28var%20j%3D0%2Cp%3Bp%3Dparams%5Bj%5D%3Bj++%29%7Bif%28p.hasAttribute%28%27name%27%29%26%26p.getAttribute%28%27name%27%29.match%28/%5E%28movie%7Cdata%7Csrc%7Ccode%7Cfilename%7Curl%7Csource%29%24/i%29%29%7Bsrc%3Dp.getAttribute%28%27value%27%29%3Bbreak%7D%7D%7D%3Bvar%20lnk%3DfullUrl%28src%29%3Bif%28embed.indexOf%28lnk%29%3D%3D-1%29embed+%3Dlnk%7D%3Bvar%20f%3Ddocument.getElementsByTagName%28%27iframe%27%29%3Bfor%28var%20i%3D0%2Cfi%3Bfi%3Df%5Bi%5D%3Bi++%29%7Bif%28fi.src%29iframes+%3DcorrUrl%28fi.src%29%7D%3Bvar%20c%3Ddocument.cookie.split%28%27%3B%27%29%3Bfor%28var%20i%3D0%2Cci%3Bci%3Dc%5Bi%5D%3Bi++%29%7Bwhile%28ci.charAt%280%29%3D%3D%27%20%27%29ci%3Dci.slice%281%29%3Bif%28ci.length%3E40%29ci%3Dci.slice%280%2C40%29+%27%5Cu2026%27%3Bcookies+%3Dci+%27%5Cn%27%7D%3Bvar%20lastmod%3D%28Date.parse%28document.lastModified%29%3D%3D0%29%3F%27%27%3Adocument.lastModified%3Bvar%20mode%3Ddocument.getElementsByTagName%28%27HTmL%27%29.length%3D%3D0%3F%27Really%20strict%27%3A%28document.compatMode%3D%3D%27CSS1Compat%27%3F%27Normal%20strict%27%3A%27Quirks%27%29%3Bvar%20title%3Ddocument.title%7C%7C%28document.getElementsByTagName%28%27title%27%29%5B0%5D%26%26document.getElementsByTagName%28%27title%27%29%5B0%5D.text%29%7C%7C%27%27%3Bif%28meta%29meta%3D%27%5CnMeta-%u0434%u0430%u043D%u043D%u044B%u0435%3A%5Cn%27+meta%3Bif%28scripts%29scripts%3D%27%5Cn%u0421%u043A%u0440%u0438%u043F%u0442%u044B%3A%5Cn%27+scripts%3Bif%28embed%29embed%3D%27%5Cn%u0412%u0441%u0442%u0440%u043E%u0435%u043D%u043D%u044B%u0435%20%u043E%u0431%u044A%u0435%u043A%u0442%u044B%3A%5Cn%27+embed%3Bif%28iframes%29iframes%3D%27%5CnIframes%3A%5Cn%27+iframes%3Bif%28cookies%29cookies%3D%27%5CnCookies%3A%5Cn%27+cookies%3Balert%28%27%u0418%u0434%u0435%u043D%u0442%u0438%u0444%u0438%u043A%u0430%u0446%u0438%u044F%20%u0431%u0440%u0430%u0443%u0437%u0435%u0440%u0430%3A%20%27+navigator.userAgent+%27%5Cn%5Cn%u0417%u0430%u0433%u043E%u043B%u043E%u0432%u043E%u043A%3A%20%27+title+%27%5Cn%5Cn%u0410%u0434%u0440%u0435%u0441%3A%20%27+location.href+%27%5Cn%5Cn%u0420%u0435%u0444%u0435%u0440%u0440%u0435%u0440%3A%20%27+document.referrer+%27%5Cn%5Cn%u0414%u0430%u0442%u0430%20%u043F%u043E%u0441%u043B%u0435%u0434%u043D%u0435%u0433%u043E%20%u0438%u0437%u043C%u0435%u043D%u0435%u043D%u0438%u044F%3A%20%27+lastmod+%27%5Cn%5Cn%u0420%u0435%u0436%u0438%u043C%20%u043E%u0442%u043E%u0431%u0440%u0430%u0436%u0435%u043D%u0438%u044F%3A%20%27+mode+%27%20mode%5Cn%27+meta+scripts+embed+iframes+cookies%29%7D%5D%2C%0A%20%20%20%20%5B%22%u0418%u0441%u0445%u043E%u0434%u043D%u044B%u0439%20%u043A%u043E%u0434%20%28snapshot%29%22%2C%20function%28%29%7Bvar%20q%3D%27%20%20%27%2CC%3D%7Bimg%3A1%2Cbr%3A1%2Clink%3A1%2Cinput%3A1%2Chr%3A1%2Cmeta%3A1%7D%2Cu%3Dfalse%2Cv%3D0%2CD%3D1%2Cg%3Dwindow.document%2Cm%3Dwindow.location%2Cw%3D%27resizable%3Dyes%2Cscrollbars%3Dyes%2Clocation%3Dno%27%2Ch%3D%27%3C/span%3E%3C/li%3E%27%3Bvar%20x%3Dfunction%28a%29%7Breturn%27%3Cspan%20class%3D%5C%27tag%5C%27%3E%26lt%3B%27+a+%27%27%7D%3Bvar%20y%3Dfunction%28a%29%7Breturn%28a%3F%27/%27%3A%27%27%29+%27%26gt%3B%3C/span%3E%27%7D%3Bvar%20z%3Dfunction%28a%2Cb%29%7Bif%28b%7C%7CC%5Ba.toLowerCase%28%29%5D%29return%27%27%3Breturn%27%3Cspan%20class%3D%5C%27tag%5C%27%3E%26lt%3B/%27+a+%27%26gt%3B%3C/span%3E%27%7D%3Bvar%20j%3Dfunction%28%29%7Bvar%20a%3Dv.toString%28%29%3Bwhile%28a.length%3C3%29a%3D%270%27+a%3Breturn%27%3Cli%20class%3D%5C%27line%27+%28D%26%26%28%28v++%29%261%29%3F%27%20dark%5C%27%27%3A%27%5C%27%27%29+%27%3E%3Cspan%3E%27%7D%3Bvar%20n%3Dfunction%28a%29%7Breturn%20a.replace%28/%3C/g%2C%27%26lt%3B%27%29.replace%28/%3E/g%2C%27%26gt%3B%27%29%7D%3Bvar%20E%3Dfunction%28a%29%7Bvar%20b%3Da.doctype%2Cc%3D%27%27%3Bif%28b%29%7Bc%3Dj%28%29+x%28%27%21DOCTYPE%27%29+%27%20%3Cspan%20class%3D%5C%27attrDoc%5C%27%3E%27+b.nodeName+%28b.publicId%3F%27%20PUBLIC%20%5C%27%27+b.publicId+%27%5C%27%27%3A%27%27%29+%28b.systemId%3F%27%3C/span%3E%3C/span%3E%27+h+j%28%29+%27%3Cspan%20class%3D%5C%27tag%5C%27%3E%3Cspan%20class%3D%5C%27attrDoc%5C%27%3E%27+q+%27%5C%27%27+b.systemId+%27%5C%27%27%3A%27%27%29+%27%3C/span%3E%27+y%28%29+h%7Dreturn%20c%7D%3Bvar%20F%3Dfunction%28a%29%7Bvar%20b%3Da.attributes%2Cc%3Dnull%2Cd%3D%27%27%3Bfor%28var%20f%3D0%3Bc%3Db%5Bf%5D%3Bf++%29%7Bif%28c.specified%26%26c.value%29%7Bd+%3D%27%20%3Cspan%20class%3D%5C%27attrTitle%5C%27%3E%27+c.name+%27%3C/span%3E%3D%3Cspan%20class%3D%5C%27attrValue%5C%27%3E%5Cx22%27+n%28c.value.replace%28/%5Ct/g%2Cq%29%29+%27%5Cx22%3C/span%3E%20%27%7D%7Dreturn%20d%7D%3Bvar%20r%3Dfunction%28a%29%7Breturn%20n%28a.nodeValue.replace%28/%5B%5Cn%5Ct%5Cr%5Cu00A0%5D+%20*/g%2C%27%27%29.replace%28/%20+/g%2C%27%20%27%29%29%7D%3Bvar%20G%3Dfunction%28a%29%7Bvar%20b%3D0%2Cc%3D%27%27%3Bwhile%28b%3Ca%29%7Bc+%3Dq%3Bb++%7Dreturn%20c%7D%3Bvar%20A%3Dfunction%28a%2Cb%2Cc%29%7Bvar%20d%3D%27%27%2Cf%3DG%28b++%29%3Bswitch%28a.nodeType%29%7Bcase%201%3A%7Bvar%20i%3Da.childNodes%2Ck%3Dnull%3Bvar%20s%3D%28i.length%3D%3D0%29%7C%7C%28i.length%3D%3D1%26%26i%5B0%5D.nodeType%3D%3D3%29%3Bvar%20t%3Du%26%26i.length%3D%3D0%3Bvar%20l%3Dj%28%29+f+x%28a.nodeName%29+F%28a%29+y%28t%29%3Bif%28%21s%29l+%3Dh%3Bfor%28var%20B%3D0%3Bk%3Di%5BB%5D%3BB++%29%7Bl+%3DA%28k%2Cb%2C%21s%26%26k.nodeType%3D%3D3%29%7Dif%28s%29%7Bl+%3D%28a.nodeName.toLowerCase%28%29%3D%3D%27textarea%27%3Fn%28a.value%29%3A%27%27%29+z%28a.nodeName%2Ct%29+h%7Delse%7Bl+%3Dj%28%29+f+z%28a.nodeName%2Ct%29+h%7Dreturn%20l%7Dcase%203%3A%7Bif%28%28d%3Dr%28a%29%29%26%26c%29%7Breturn%20j%28%29+f+d+h%7Delse%7Breturn%20d%7D%7Dcase%204%3A%7Bd%3Dr%28a%29%3Breturn%20j%28%29+f+%27%3Cspan%20class%3D%5C%27cdata%5C%27%3E%26lt%3B%21%5BCDATA%5B%3C/span%3E%27+d+%27%3Cspan%20class%3D%5C%27cdata%5C%27%3E%5D%5D%26gt%3B%3C/span%3E%27+h%7Dcase%208%3A%7Bd%3Dr%28a%29%3Breturn%20j%28%29+f+%27%3Cspan%20class%3D%5C%27comment%5C%27%3E%26lt%3B%21--%27+d+%27--%26gt%3B%3C/span%3E%27+h%7D%7Dreturn%20a.nodeType%7D%3Bvar%20H%3Dfunction%28a%29%7Bvar%20b%2Cc%3D%27%27%3Bif%28a%29%7Bvar%20d%3Da.getSelection%28%29.getRangeAt%280%29%2Cf%3Dd.commonAncestorContainer%3Bif%28f.nodeType%3D%3D3%7C%7Cf.nodeType%3D%3D4%29f%3Df.parentNode%3Bb%3Df.cloneNode%28false%29%3Bb.appendChild%28d.cloneContents%28%29%29%3Bvar%20i%3Dd.startContainer%2Ck%3Dd.endContainer%3Bif%28i%21%3Df.firstChild%7C%7C%28i.nodeType%3D%3D3%26%26d.startOffset%21%3D0%29%29b.insertBefore%28g.createTextNode%28%27%5Cu2026%27%29%2Cb.firstChild%29%3Bif%28k%21%3Df.lastChild%7C%7C%28k.nodeType%3D%3D3%26%26d.endOffset%21%3Dk.nodeValue.length%29%29b.appendChild%28g.createTextNode%28%27%5Cu2026%27%29%29%7Delse%7Bc%3DE%28g%29%3Bb%3Dg.documentElement%7D%3Bc+%3DA%28b%2C0%29%3Breturn%20c%7D%3Bvar%20I%3Dfunction%28a%29%7Bif%28a%26%26a.getSelection%29%7Bif%28a.getSelection%28%29.toString%28%29%29return%20a%3Bfor%28var%20b%3D0%2Cc%2Cd%3Bc%3Da.frames%5Bb%5D%3Bb++%29%7Btry%7Bif%28d%3Darguments.callee%28c%29%29return%20d%7Dcatch%28e%29%7B%7D%7D%7D%7D%3Bvar%20o%3DI%28window%29%3Bif%28o%29%7Bg%3Do.document%3Bm%3Do.location%3Bw+%3D%27%2Cwidth%3D800%2Cheight%3D500%2Cleft%3D100%2Ctop%3D100%27%7D%3Bu%3D/%5Ba-z%5D/.test%28g.documentElement.nodeName%29%3Bvar%20J%3D%27%3C%21DOCTYPE%20html%20PUBLIC%3E%3Chtml%3E%3Chead%3E%3Ctitle%3ESnapshot%3A%20%27+%28%28g.getElementsByTagName%28%27title%27%29.length%26%26n%28g.getElementsByTagName%28%27title%27%29%5B0%5D.text%29%29%7C%7C%28m.protocol+%27//%27+m.host+m.pathname%29%29+%27%3C/title%3E%3Cstyle%20type%3D%5C%27text/css%5C%27%3Ebody%7Bpadding%3A0%205px%3Bmargin%3A0%3Bfont-family%3Asans-serif%3Bfont-size%3A.7em%3Bbackground-color%3A%23FFF%3Bcolor%3A%23000%3B%7D%23content%7Bwhite-space%3Apre-wrap%7Dol%7Bcolor%3A%23999%3B%7Dspan%7Bcolor%3A%23000%7D.tag%7Bcolor%3A%2305F%7D.attrTitle%7Bcolor%3A%23E00%7D.attrValue%7Bcolor%3A%23C0C%7D.attrDoc%7Bcolor%3A%23800080%7D.comment%7Bcolor%3A%23008000%7D.cdata%7Bcolor%3A%2363D%7D.line%7Bmargin%3A0%3Bpadding%3A0%7D.dark%7Bbackground-color%3A%23FAFAFA%7D%3C/style%3E%3C/head%3E%3Cbody%3E%3Col%20id%3D%5C%27content%5C%27%3E%27+H%28o%29+%27%3C/ol%3E%3C/body%3E%3C/html%3E%27%3Bvar%20p%3Dwindow.open%28%27about%3Ablank%27%2C%27_blank%27%2Cw%29%3Bp.document.write%28J%29%3Bp.document.onkeydown%3Dfunction%28a%29%7Bif%28a.keyCode%3D%3D27%29p.close%28%29%7D%3Bp.document.close%28%29%7D%5D%2C%0A%20%20%20%20%2C%0A%20%20%20%20%5B%22%u0428%u0430%u0445%u043C%u0430%u0442%u044B%22%2C%20function%28%29%7Bwindow.open%28%27data%3Atext/html%3Bbase64%2CPGh0bWw+PGhlYWQ+PHRpdGxlPkNoZXNzPC90aXRsZT48bWV0YSBuYW1lPSJhdXRob3IiIGNvbnRlbnQ9Ik9zY2FyIFRvbGVkbyBHLiI+PG1ldGEgbmFtZT0ic2l0ZSIgY29udGVudD0iaHR0cDovL25hbm9jaGVzcy4xMTBtYi5jb20vY2hlc3M0Lmh0bWwiPjwvaGVhZD48Ym9keT48c2NyaXB0PnZhciBCLGkseSx1LGIsST1bXSxHPTEyMCx4PTEwLHo9MTUsTT0xZTQsbD1bNSwzLDQsNiwyLDQsMyw1LDEsMSwxLDEsMSwxLDEsMSw5LDksOSw5LDksOSw5LDksMTMsMTEsMTIsMTQsMTAsMTIsMTEsMTMsMCw5OSwwLDMwNiwyOTcsNDk1LDg0NiwtMSwwLDEsMiwyLDEsMCwtMSwtMSwxLC0xMCwxMCwtMTEsLTksOSwxMSwxMCwyMCwtOSwtMTEsLTEwLC0yMCwtMjEsLTE5LC0xMiwtOCw4LDEyLDE5LDIxXTtmdW5jdGlvbiBYKHcsYyxoLGUsUyxzKXt2YXIgdCxvLEwsRSxkLE89ZSxOPS1NKk0sSz03OC1oPDx4LHAsZyxuLG0sQSxxLHIsQyxKLGE9eT8teDp4O3lePTg7RysrO2Q9d3x8cyYmcz49aCYmWCgwLDAsMCwyMSwwLDApPk07ZG97aWYobz1JW3A9T10pe3E9byZ6Xnk7aWYocTw3KXtBPXEtLSYyPzg6NDtDPW8tOSZ6P1s1Myw0Nyw2MSw1MSw0Nyw0N11bcV06NTc7ZG97cj1JW3ArPWxbQ11dO2lmKCF3fHA9PXcpe2c9cXxwK2EtUz8wOlM7aWYoIXImKCEhcXxBPDN8fCEhZyl8fChyKzEmel55KT45JiZxfEE+Mil7aWYobT0hKHItMiY3KSlyZXR1cm4geV49OCxJW0ctLV09TyxLO0o9bj1vJno7RT1JW3AtYV0mejt0PXF8RS03P246KG4rPTIsNl55KTt3aGlsZShuPD10KXtMPXI/bFtyJjd8MzJdLWgtcTowO2lmKHMpTCs9KDEtcT9sWyhwLXAleCkveCszN10tbFsoTy1PJXgpL3grMzddK2xbcCV4KzM4XSoocT8xOjIpLWxbTyV4KzM4XSsobyYxNikvMjohIW0qOSkrKCFxPyEoSVtwLTFdXm4pKyEoSVtwKzFdXm4pK2xbbiY3fDMyXS05OSshIWcqOTkrKEE8Mik6MCkrIShFXnleOSk7aWYocz5ofHwxPHMmcz09aCYmTD56fGQpe0lbcF09bixJW09dPW0/KElbZ109SVttXSxJW21dPTApOmc/SVtnXT0wOjA7TC09WChzPmh8ZD8wOnAsTC1OLGgrMSxJW0crMV0sSj1xfEE+MT8wOnAscyk7aWYoIShofHxzLTF8Qi1PfGktbnxwLWJ8TDwtTSkpcmV0dXJuIFcoKSxHLS0sdT1KO0o9cS0xfEE8N3x8bXx8IXN8ZHxyfG88enx8WCgwLDAsMCwyMSwwLDApPk07SVtPXT1vO0lbcF09cjttPyhJW21dPUlbZ10sSVtnXT0wKTpnP0lbZ109OV55OjB9aWYoTD5OfHxzPjEmJkw9PU4mJiFoJiZNYXRoLnJhbmRvbSgpPC41KXtJW0ddPU87aWYocz4xKXtpZihoJiZjLUw8MClyZXR1cm4geV49OCxHLS0sTDtpZighaClpPW4sQj1PLGI9cH1OPUx9bis9Snx8KGc9cCxtPXA8Tz9nLTM6ZysyLElbbV08enxJW20rTy1wXXx8SVtwKz1wLU9dKT8xOjB9fX19d2hpbGUoIXImcT4yfHwocD1PLHF8QT4yfG8+eiYhciYmKytDKi0tQSkpfX19d2hpbGUoKytPPjk4P089MjA6ZS1PKTtyZXR1cm4geV49OCxHLS0sTitNKk0mJk4+LUsrMTkyNHxkP046MH1CPWk9eT11PTA7d2hpbGUoQisrPDEyMClJW0ItMV09QiV4P0IveCV4PDJ8QiV4PDI/NzpCL3gmND8wOmxbaSsrXXwxNjo3O2ZvcihhPSI8dGFibGUgY2VsbHNwYWNpbmc9MCBhbGlnbj1jZW50ZXIgYm9yZGVyPTA+IixCPTA7Qjw4O0IrKylmb3IoYSs9Ijx0cj4iLGk9MjE7aTwyOTtpKyspYSs9Ijx0ZCB3aWR0aD02MCBoZWlnaHQ9NjAgb25jbGljaz1ZKCIrKEIqeCtpKSsiKSBpZD1vIisoQip4K2kpKyIgc3R5bGU9J2xpbmUtaGVpZ2h0OjUwcHg7Zm9udC1zaXplOjUwcHg7Ym9yZGVyOjJweCBzb2xpZCAiKyIjZTBlMGYwJyBiZ2NvbG9yPSMiKyhpK0ImMT8iZjBmIjoiYzBjIikrIjBmMCBhbGlnbj1jZW50ZXI+IjthKz0iPHRyPjx0ZCBjb2xzcGFuPTggYWxpZ249Y2VudGVyPjxzZWxlY3QgaWQ9dCBzdHlsZT0nZm9udC1zaXplOjIwcHgnPjxvcHRpb24+JiM5ODE5OzxvcHRpb24+Ijtkb2N1bWVudC53cml0ZShhKyImIzk4MjA7PG9wdGlvbj4mIzk4MjE7PG9wdGlvbj4mIzk4MjI7PC9zZWxlY3Q+PC90YWJsZT4iKTtmdW5jdGlvbiBXKCl7Qj1iO2ZvcihwPTIxO3A8OTk7cCs9cCV4LTg/MTozKXtkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgibyIrcCkuaW5uZXJIVE1MPSJceGEwXHUyNjVmXHUyNjVhXHUyNjVlXHUyNjVkXHUyNjVjXHUyNjViICBcdTI2NTlcdTI2NTRcdTI2NThcdTI2NTdcdTI2NTZcdTI2NTUiLmNoYXJBdChJW3BdJnopO2RvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJvIitwKS5zdHlsZS5ib3JkZXJDb2xvcj1wPT1CPyJyZWQiOiIjZTBlMGYwIn19VygpO2Z1bmN0aW9uIFkocyl7aT0oSVtzXV55KSZ6O2lmKGk+OCl7Yj1zO1coKX1lbHNlIGlmKEImJmk8OSl7Yj1zO2k9SVtCXSZ6O2lmKChpJjcpPT0xJihiPDI5fGI+OTApKWk9MTQtZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInQiKS5zZWxlY3RlZEluZGV4Xnk7WCgwLDAsMCwyMSx1LDEpO2lmKHkpd2luZG93LnNldFRpbWVvdXQoIlgoMCwwLDAsMjEsdSwyLypwbHkqLyksWCgwLDAsMCwyMSx1LDEpIiwyNTApfX08L3NjcmlwdD48L2JvZHk+PC9odG1sPgo%3D%27%2C%27_blank%27%2C%27width%3D600%2Cheight%3D550%2Cleft%3D200%2Ctop%3D100%27%29%7D%5D%0A%5D%3B%0Avar%20contextMenu%20%3D%20document.getElementById%28%22contentAreaContextMenu%22%29%3B%0Avar%20nextEleMenu%20%3D%20contextMenu.children%5B%27context-inspect%27%5D%3B%0A%0Avar%20menuId%20%3D%20%22context-ext-addon%22%3B%0Avar%20menuItem%2C%20menuPopup%2C%20menu%20%3D%20document.getElementById%28menuId%29%3B%0Aif%20%28menu%29%20%7B%0A%20%20%20%20contextMenu.removeChild%28menu%29%3B%0A%7D%3B%0AmenuPopup%20%3D%20document.createElement%28%22menupopup%22%29%3B%0Amenu%20%3D%20document.createElement%28%22menu%22%29%3B%0Amenu.setAttribute%28%22id%22%2C%20menuId%29%3B%0Amenu.setAttribute%28%22label%22%2C%20%22%u0414%u043E%u043F%u043E%u043B%u043D%u0438%u0442%u0435%u043B%u044C%u043D%u043E%22%29%3B%0A%0Afor%20%28var%20i%20%3D%200%3B%20i%20%3C%20itemsArr.length%3B%20i++%29%20%7B%0A%20%20%20%20if%20%28itemsArr%5Bi%5D%29%20%7B%0A%20%20%20%20%20%20%20%20menuItem%20%3D%20document.createElement%28%22menuitem%22%29%3B%0A%20%20%20%20%20%20%20%20menuItem.setAttribute%28%22label%22%2C%20itemsArr%5Bi%5D%5B0%5D%29%3B%0A%20%20%20%20%20%20%20%20menuItem.addEventListener%28%22command%22%2C%20%28function%28f%29%7Breturn%20function%28%29%7Bcontent.location.href%20%3D%20%22javascript%3A%28%22%20+%20encodeURI%28f%29%20+%20%22%29%28%29%22%7D%7D%29%28itemsArr%5Bi%5D%5B1%5D.toString%28%29%29%2C%20false%29%3B%0A%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20menuItem%20%3D%20document.createElement%28%22menuseparator%22%29%3B%0A%20%20%20%20%7D%3B%0A%20%20%20%20menuPopup.appendChild%28menuItem%29%3B%0A%7D%3B%0Amenu.appendChild%28menuPopup%29%3B%0AcontextMenu.insertBefore%28menu%2C%20nextEleMenu%29%3B%0A%0AaddDestructor%28function%28%29%7BcontextMenu.removeChild%28menu%29%7D%29%3B%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5B/*CODE*/%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E


Код для вкладки Инициализация

Выделить код

Код:

var itemsArr = [
    ["Искать страницу в кэше Google", function(){window.open('http://www.google.com/search?q=cache:'+location.href)}],
    ["Искать страницу на Archive.org", function(){window.open('http://web.archive.org/web/*/'+location.href)}],
    ,
    ["Искать логин на BugMeNot.com", function(){window.open('http://www.bugmenot.com/view/'+location.hostname,'BugMeNot_'+location.hostname,'width=500,height=400,left=100,top=100,scrollbars=yes,location=no')}],
    ["Проверить с помощью Dr.Web Online", function(){window.open('http://online.drweb.com/result?url='+escape(location.href),'DrWeb_'+location.href,'width=640,height=400,left=200,top=100,scrollbars=yes,location=no')}],
    ["Проверить доступность сайта", function(){window.open('http://downforeveryoneorjustme.com/'+location.hostname,'DownForMe_'+location.hostname,'width=600,height=400,left=100,top=100,scrollbars=yes,location=no')}],
    ,
    ["Поиск по текущему сайту", function(){var getSel=function(w){var s,d=w.document;if(d.selection){var r=d.selection.createRange();s=r?r.text:''}else{s=d.getSelection().toString();if(!s){var e,t=d.getElementsByTagName('textarea'),u=d.getElementsByTagName('input'),i=t.length;while(e=(i>0)?t[--i]:u[-i--])try{if(e.offsetHeight>0&&(s=e.value.substring(e.selectionStart,e.selectionEnd)))break}catch(x){}}};if(!s)for(var j=0,f;f=w.frames[j];j++){try{if(s=getSel(f))break}catch(x){}};return s};var w=window,s=w.prompt('Поиск на этом сайте с помощью Google',getSel(w));if(s){w.open('http://www.google.com/search?as_q='+encodeURIComponent(s)+'&as_sitesearch='+w.location.hostname)}}],
    ["Сгенерировать/показать пароль", function(){var getRandomPass=function(d){var chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';var ret='',len=d>=3?d:3,buf=new Uint8Array(len);crypto.getRandomValues(buf);for(var i=0;i<len;i++)ret+=chars.charAt(buf[i]*chars.length>>8);return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).+$/.test(ret)?ret:getRandomPass(len)};var findPassEle=function(p){var c,s='',r=false,f=document.getElementsByTagName('form');for(var i=0;i<f.length;i++){c=f[i].elements;for(var j=0,e;e=c[j];j++){if(e.type=='password'){r=true;if(p){e.value=p;e.focus()}else if(e.value)s+='\n\n'+e.value}}};return r?s:null};var s=findPassEle();if(s){alert('На этой странице уже имеется пароль:'+s)}else{findPassEle(prompt('Пароль сгенерирован'+(s==null?':':'. Вставить?'),getRandomPass(12)))}}],
    ["Показать ссылки на Flash/Video", function(){var getVideo=function(flashvars,src){var getLink=function(s){var a=s.match(/[^\s\x22=&?]+\.[^\s\x22=&?\/]*(flv|mp4)/i);return a?a[0]:''};var getQuery=function(s,q){var a=s.match(new RegExp('(^|[&?])'+q+'=([^&]+)'));return a?a[2]:''};var getJson=function(s,q){var a=s.match(new RegExp('\x22'+q+'\x22:\\s*(\x22.+?\x22)'));return a?eval(a[1]):''};var getURL=function(f,s){return f.match(/^(\w+:\/\/|\/|$)/)?f:s.replace(/[#?].*$/,'').replace(/[^\/]*$/,f)};var decodeURL=function(s){try{return decodeURIComponent(s)}catch(e){return unescape(s)}};var q='',url=location.href,flv=decodeURL(flashvars);if(url.indexOf('youtube.com/watch?')!=-1&&(q=getQuery(flv,'url')))return decodeURL(q)+'&signature='+getQuery(flv,'sig')+'&title='+encodeURIComponent(document.title);if(url.indexOf('video.google.com/videoplay?')!=-1&&(q=getQuery(src,'videoUrl')))return decodeURL(q);if(url.indexOf('metacafe.com/watch/')!=-1&&(q=getJson(flv,'mediaURL')))return q+'?__gda__='+getJson(flv,'value');if(url.indexOf('dailymotion.com/')!=-1&&(q=getJson(flv,'hqURL')||getJson(flv,'sdURL')))return q;if(url.indexOf('www.break.com/')!=-1&&(q=getQuery(flv,'videoPath')))return q+'?'+getQuery(flv,'icon');if(url.indexOf('my-hit.ru/film/')!=-1&&(q=getLink(flv)))return q+'?start=0&id='+getQuery(flv,'id');return getURL(getLink(flv)||decodeURL(getLink(src)),src)};var createLink=function(url,txt){var oLnk=document.createElement('a');oLnk.setAttribute('href',url);oLnk.setAttribute('style','display:inline;margin:0;padding:0;font:14px Times New Roman;text-decoration:underline;text-transform:none;');oLnk.appendChild(document.createTextNode(txt));return oLnk};var showLink=function(oEle,src,flv){var cName='ujs_downlink';var p=oEle.previousSibling;if(p&&p.className==cName){oEle.parentNode.removeChild(p);return};if(src){var oDiv=document.createElement('div');oDiv.setAttribute('style','display:block;position:static;float:none;margin:0;padding:0;width:auto;height:auto;font:14px Times New Roman;color:#555;z-index:999;');oDiv.className=cName;oDiv.appendChild(createLink(src,'Download'));var v=getVideo(flv,src);if(v){oDiv.appendChild(document.createTextNode(' ('));oDiv.appendChild(createLink(v,'Video'));oDiv.appendChild(document.createTextNode(')'))};oEle.parentNode.insertBefore(oDiv,oEle)}};var getParam=function(e,n){var v='',r=new RegExp('^('+n+')$','i');var param=e.getElementsByTagName('param');for(var i=0,p;p=param[i];i++){if(r.test(p.getAttribute('name'))){v=p.getAttribute('value');break}};return v};var searchEmbed=function(w){if(!w)return;var obj=w.document.getElementsByTagName('object');for(var i=0,oi;oi=obj[i];i++){if(oi.parentNode)showLink(oi,oi.getAttribute('data')||oi.getAttribute('src')||getParam(oi,'movie|data|src|code|filename|url')||(oi.getElementsByTagName('embed').length&&oi.getElementsByTagName('embed')[0].getAttribute('src')),getParam(oi,'flashvars'))};var em=w.document.getElementsByTagName('embed');for(var i=0,ei;ei=em[i];i++){if(ei.parentNode&&ei.parentNode.nodeName.toLowerCase()!='object')showLink(ei,ei.getAttribute('src'),ei.getAttribute('flashvars'))};for(var j=0,f;f=w.frames[j];j++){try{arguments.callee(f)}catch(e){}}};searchEmbed(window)}],
    ,
    ["Информация о странице", function(){var meta='',scripts='',embed='',iframes='',cookies='';var corrUrl=function(url){if(!url)return'';var q=url.indexOf('?')+1;return((q&&url.length>50)?url.slice(0,q>50?q:50)+'\u2026':url)+'\n'};var fullUrl=function(url){var a=document.createElement('a');a.href=url;return url?corrUrl(a.href):''};var m=document.getElementsByTagName('meta');for(var i=0,mi;mi=m[i];i++){meta+=(mi.name?mi.name+': ':(mi.httpEquiv?mi.httpEquiv+': ':''))+mi.content+'\n'};var s=document.getElementsByTagName('script');for(var i=0,si;si=s[i];i++){if(si.src)scripts+=corrUrl(si.src)};var e=document.getElementsByTagName('embed');var o=document.getElementsByTagName('object');for(var i=0,ei;ei=e[i];i++){embed+=fullUrl(ei.getAttribute('src'))};for(var i=0,oi;oi=o[i];i++){var src=oi.getAttribute('data')||oi.getAttribute('src')||oi.getAttribute('source');if(!src){var params=oi.getElementsByTagName('param');for(var j=0,p;p=params[j];j++){if(p.hasAttribute('name')&&p.getAttribute('name').match(/^(movie|data|src|code|filename|url|source)$/i)){src=p.getAttribute('value');break}}};var lnk=fullUrl(src);if(embed.indexOf(lnk)==-1)embed+=lnk};var f=document.getElementsByTagName('iframe');for(var i=0,fi;fi=f[i];i++){if(fi.src)iframes+=corrUrl(fi.src)};var c=document.cookie.split(';');for(var i=0,ci;ci=c[i];i++){while(ci.charAt(0)==' ')ci=ci.slice(1);if(ci.length>40)ci=ci.slice(0,40)+'\u2026';cookies+=ci+'\n'};var lastmod=(Date.parse(document.lastModified)==0)?'':document.lastModified;var mode=document.getElementsByTagName('HTmL').length==0?'Really strict':(document.compatMode=='CSS1Compat'?'Normal strict':'Quirks');var title=document.title||(document.getElementsByTagName('title')[0]&&document.getElementsByTagName('title')[0].text)||'';if(meta)meta='\nMeta-данные:\n'+meta;if(scripts)scripts='\nСкрипты:\n'+scripts;if(embed)embed='\nВстроенные объекты:\n'+embed;if(iframes)iframes='\nIframes:\n'+iframes;if(cookies)cookies='\nCookies:\n'+cookies;alert('Идентификация браузера: '+navigator.userAgent+'\n\nЗаголовок: '+title+'\n\nАдрес: '+location.href+'\n\nРеферрер: '+document.referrer+'\n\nДата последнего изменения: '+lastmod+'\n\nРежим отображения: '+mode+' mode\n'+meta+scripts+embed+iframes+cookies)}],
    ["Исходный код (snapshot)", function(){var q='  ',C={img:1,br:1,link:1,input:1,hr:1,meta:1},u=false,v=0,D=1,g=window.document,m=window.location,w='resizable=yes,scrollbars=yes,location=no',h='</span></li>';var x=function(a){return'<span class=\'tag\'>&lt;'+a+''};var y=function(a){return(a?'/':'')+'&gt;</span>'};var z=function(a,b){if(b||C[a.toLowerCase()])return'';return'<span class=\'tag\'>&lt;/'+a+'&gt;</span>'};var j=function(){var a=v.toString();while(a.length<3)a='0'+a;return'<li class=\'line'+(D&&((v++)&1)?' dark\'':'\'')+'><span>'};var n=function(a){return a.replace(/</g,'&lt;').replace(/>/g,'&gt;')};var E=function(a){var b=a.doctype,c='';if(b){c=j()+x('!DOCTYPE')+' <span class=\'attrDoc\'>'+b.nodeName+(b.publicId?' PUBLIC \''+b.publicId+'\'':'')+(b.systemId?'</span></span>'+h+j()+'<span class=\'tag\'><span class=\'attrDoc\'>'+q+'\''+b.systemId+'\'':'')+'</span>'+y()+h}return c};var F=function(a){var b=a.attributes,c=null,d='';for(var f=0;c=b[f];f++){if(c.specified&&c.value){d+=' <span class=\'attrTitle\'>'+c.name+'</span>=<span class=\'attrValue\'>\x22'+n(c.value.replace(/\t/g,q))+'\x22</span> '}}return d};var r=function(a){return n(a.nodeValue.replace(/[\n\t\r\u00A0]+ */g,'').replace(/ +/g,' '))};var G=function(a){var b=0,c='';while(b<a){c+=q;b++}return c};var A=function(a,b,c){var d='',f=G(b++);switch(a.nodeType){case 1:{var i=a.childNodes,k=null;var s=(i.length==0)||(i.length==1&&i[0].nodeType==3);var t=u&&i.length==0;var l=j()+f+x(a.nodeName)+F(a)+y(t);if(!s)l+=h;for(var B=0;k=i[B];B++){l+=A(k,b,!s&&k.nodeType==3)}if(s){l+=(a.nodeName.toLowerCase()=='textarea'?n(a.value):'')+z(a.nodeName,t)+h}else{l+=j()+f+z(a.nodeName,t)+h}return l}case 3:{if((d=r(a))&&c){return j()+f+d+h}else{return d}}case 4:{d=r(a);return j()+f+'<span class=\'cdata\'>&lt;![CDATA[</span>'+d+'<span class=\'cdata\'>]]&gt;</span>'+h}case 8:{d=r(a);return j()+f+'<span class=\'comment\'>&lt;!--'+d+'--&gt;</span>'+h}}return a.nodeType};var H=function(a){var b,c='';if(a){var d=a.getSelection().getRangeAt(0),f=d.commonAncestorContainer;if(f.nodeType==3||f.nodeType==4)f=f.parentNode;b=f.cloneNode(false);b.appendChild(d.cloneContents());var i=d.startContainer,k=d.endContainer;if(i!=f.firstChild||(i.nodeType==3&&d.startOffset!=0))b.insertBefore(g.createTextNode('\u2026'),b.firstChild);if(k!=f.lastChild||(k.nodeType==3&&d.endOffset!=k.nodeValue.length))b.appendChild(g.createTextNode('\u2026'))}else{c=E(g);b=g.documentElement};c+=A(b,0);return c};var I=function(a){if(a&&a.getSelection){if(a.getSelection().toString())return a;for(var b=0,c,d;c=a.frames[b];b++){try{if(d=arguments.callee(c))return d}catch(e){}}}};var o=I(window);if(o){g=o.document;m=o.location;w+=',width=800,height=500,left=100,top=100'};u=/[a-z]/.test(g.documentElement.nodeName);var J='<!DOCTYPE html PUBLIC><html><head><title>Snapshot: '+((g.getElementsByTagName('title').length&&n(g.getElementsByTagName('title')[0].text))||(m.protocol+'//'+m.host+m.pathname))+'</title><style type=\'text/css\'>body{padding:0 5px;margin:0;font-family:sans-serif;font-size:.7em;background-color:#FFF;color:#000;}#content{white-space:pre-wrap}ol{color:#999;}span{color:#000}.tag{color:#05F}.attrTitle{color:#E00}.attrValue{color:#C0C}.attrDoc{color:#800080}.comment{color:#008000}.cdata{color:#63D}.line{margin:0;padding:0}.dark{background-color:#FAFAFA}</style></head><body><ol id=\'content\'>'+H(o)+'</ol></body></html>';var p=window.open('about:blank','_blank',w);p.document.write(J);p.document.onkeydown=function(a){if(a.keyCode==27)p.close()};p.document.close()}],
    ,
    ["Шахматы", function(){window.open('data:text/html;base64,PGh0bWw+PGhlYWQ+PHRpdGxlPkNoZXNzPC90aXRsZT48bWV0YSBuYW1lPSJhdXRob3IiIGNvbnRlbnQ9Ik9zY2FyIFRvbGVkbyBHLiI+PG1ldGEgbmFtZT0ic2l0ZSIgY29udGVudD0iaHR0cDovL25hbm9jaGVzcy4xMTBtYi5jb20vY2hlc3M0Lmh0bWwiPjwvaGVhZD48Ym9keT48c2NyaXB0PnZhciBCLGkseSx1LGIsST1bXSxHPTEyMCx4PTEwLHo9MTUsTT0xZTQsbD1bNSwzLDQsNiwyLDQsMyw1LDEsMSwxLDEsMSwxLDEsMSw5LDksOSw5LDksOSw5LDksMTMsMTEsMTIsMTQsMTAsMTIsMTEsMTMsMCw5OSwwLDMwNiwyOTcsNDk1LDg0NiwtMSwwLDEsMiwyLDEsMCwtMSwtMSwxLC0xMCwxMCwtMTEsLTksOSwxMSwxMCwyMCwtOSwtMTEsLTEwLC0yMCwtMjEsLTE5LC0xMiwtOCw4LDEyLDE5LDIxXTtmdW5jdGlvbiBYKHcsYyxoLGUsUyxzKXt2YXIgdCxvLEwsRSxkLE89ZSxOPS1NKk0sSz03OC1oPDx4LHAsZyxuLG0sQSxxLHIsQyxKLGE9eT8teDp4O3lePTg7RysrO2Q9d3x8cyYmcz49aCYmWCgwLDAsMCwyMSwwLDApPk07ZG97aWYobz1JW3A9T10pe3E9byZ6Xnk7aWYocTw3KXtBPXEtLSYyPzg6NDtDPW8tOSZ6P1s1Myw0Nyw2MSw1MSw0Nyw0N11bcV06NTc7ZG97cj1JW3ArPWxbQ11dO2lmKCF3fHA9PXcpe2c9cXxwK2EtUz8wOlM7aWYoIXImKCEhcXxBPDN8fCEhZyl8fChyKzEmel55KT45JiZxfEE+Mil7aWYobT0hKHItMiY3KSlyZXR1cm4geV49OCxJW0ctLV09TyxLO0o9bj1vJno7RT1JW3AtYV0mejt0PXF8RS03P246KG4rPTIsNl55KTt3aGlsZShuPD10KXtMPXI/bFtyJjd8MzJdLWgtcTowO2lmKHMpTCs9KDEtcT9sWyhwLXAleCkveCszN10tbFsoTy1PJXgpL3grMzddK2xbcCV4KzM4XSoocT8xOjIpLWxbTyV4KzM4XSsobyYxNikvMjohIW0qOSkrKCFxPyEoSVtwLTFdXm4pKyEoSVtwKzFdXm4pK2xbbiY3fDMyXS05OSshIWcqOTkrKEE8Mik6MCkrIShFXnleOSk7aWYocz5ofHwxPHMmcz09aCYmTD56fGQpe0lbcF09bixJW09dPW0/KElbZ109SVttXSxJW21dPTApOmc/SVtnXT0wOjA7TC09WChzPmh8ZD8wOnAsTC1OLGgrMSxJW0crMV0sSj1xfEE+MT8wOnAscyk7aWYoIShofHxzLTF8Qi1PfGktbnxwLWJ8TDwtTSkpcmV0dXJuIFcoKSxHLS0sdT1KO0o9cS0xfEE8N3x8bXx8IXN8ZHxyfG88enx8WCgwLDAsMCwyMSwwLDApPk07SVtPXT1vO0lbcF09cjttPyhJW21dPUlbZ10sSVtnXT0wKTpnP0lbZ109OV55OjB9aWYoTD5OfHxzPjEmJkw9PU4mJiFoJiZNYXRoLnJhbmRvbSgpPC41KXtJW0ddPU87aWYocz4xKXtpZihoJiZjLUw8MClyZXR1cm4geV49OCxHLS0sTDtpZighaClpPW4sQj1PLGI9cH1OPUx9bis9Snx8KGc9cCxtPXA8Tz9nLTM6ZysyLElbbV08enxJW20rTy1wXXx8SVtwKz1wLU9dKT8xOjB9fX19d2hpbGUoIXImcT4yfHwocD1PLHF8QT4yfG8+eiYhciYmKytDKi0tQSkpfX19d2hpbGUoKytPPjk4P089MjA6ZS1PKTtyZXR1cm4geV49OCxHLS0sTitNKk0mJk4+LUsrMTkyNHxkP046MH1CPWk9eT11PTA7d2hpbGUoQisrPDEyMClJW0ItMV09QiV4P0IveCV4PDJ8QiV4PDI/NzpCL3gmND8wOmxbaSsrXXwxNjo3O2ZvcihhPSI8dGFibGUgY2VsbHNwYWNpbmc9MCBhbGlnbj1jZW50ZXIgYm9yZGVyPTA+IixCPTA7Qjw4O0IrKylmb3IoYSs9Ijx0cj4iLGk9MjE7aTwyOTtpKyspYSs9Ijx0ZCB3aWR0aD02MCBoZWlnaHQ9NjAgb25jbGljaz1ZKCIrKEIqeCtpKSsiKSBpZD1vIisoQip4K2kpKyIgc3R5bGU9J2xpbmUtaGVpZ2h0OjUwcHg7Zm9udC1zaXplOjUwcHg7Ym9yZGVyOjJweCBzb2xpZCAiKyIjZTBlMGYwJyBiZ2NvbG9yPSMiKyhpK0ImMT8iZjBmIjoiYzBjIikrIjBmMCBhbGlnbj1jZW50ZXI+IjthKz0iPHRyPjx0ZCBjb2xzcGFuPTggYWxpZ249Y2VudGVyPjxzZWxlY3QgaWQ9dCBzdHlsZT0nZm9udC1zaXplOjIwcHgnPjxvcHRpb24+JiM5ODE5OzxvcHRpb24+Ijtkb2N1bWVudC53cml0ZShhKyImIzk4MjA7PG9wdGlvbj4mIzk4MjE7PG9wdGlvbj4mIzk4MjI7PC9zZWxlY3Q+PC90YWJsZT4iKTtmdW5jdGlvbiBXKCl7Qj1iO2ZvcihwPTIxO3A8OTk7cCs9cCV4LTg/MTozKXtkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgibyIrcCkuaW5uZXJIVE1MPSJceGEwXHUyNjVmXHUyNjVhXHUyNjVlXHUyNjVkXHUyNjVjXHUyNjViICBcdTI2NTlcdTI2NTRcdTI2NThcdTI2NTdcdTI2NTZcdTI2NTUiLmNoYXJBdChJW3BdJnopO2RvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJvIitwKS5zdHlsZS5ib3JkZXJDb2xvcj1wPT1CPyJyZWQiOiIjZTBlMGYwIn19VygpO2Z1bmN0aW9uIFkocyl7aT0oSVtzXV55KSZ6O2lmKGk+OCl7Yj1zO1coKX1lbHNlIGlmKEImJmk8OSl7Yj1zO2k9SVtCXSZ6O2lmKChpJjcpPT0xJihiPDI5fGI+OTApKWk9MTQtZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInQiKS5zZWxlY3RlZEluZGV4Xnk7WCgwLDAsMCwyMSx1LDEpO2lmKHkpd2luZG93LnNldFRpbWVvdXQoIlgoMCwwLDAsMjEsdSwyLypwbHkqLyksWCgwLDAsMCwyMSx1LDEpIiwyNTApfX08L3NjcmlwdD48L2JvZHk+PC9odG1sPgo=','_blank','width=600,height=550,left=200,top=100')}]
];
var contextMenu = document.getElementById("contentAreaContextMenu");
var nextEleMenu = contextMenu.children['context-inspect'];

var menuId = "context-ext-addon";
var menuItem, menuPopup, menu = document.getElementById(menuId);
if (menu) {
    contextMenu.removeChild(menu);
};
menuPopup = document.createElement("menupopup");
menu = document.createElement("menu");
menu.setAttribute("id", menuId);
menu.setAttribute("label", "Дополнительно");

for (var i = 0; i < itemsArr.length; i++) {
    if (itemsArr[i]) {
        menuItem = document.createElement("menuitem");
        menuItem.setAttribute("label", itemsArr[i][0]);
        menuItem.addEventListener("command", (function(f){return function(){content.location.href = "javascript:(" + encodeURI(f) + ")()"}})(itemsArr[i][1].toString()), false);
    } else {
        menuItem = document.createElement("menuseparator");
    };
    menuPopup.appendChild(menuItem);
};
menu.appendChild(menuPopup);
contextMenu.insertBefore(menu, nextEleMenu);

addDestructor(function(){contextMenu.removeChild(menu)});

Отредактировано Lex1 (09-07-2013 00:22:09)

Отсутствует

 

№215-12-2012 13:47:56

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 980
UA: Firefox 10.0

Re: [CB] Букмарклеты в контекстном меню

Lex1 пишет:

то сначала его нужно раскодировать на

Теоретический вопрос:
возможно ли этого избежать, если написать encodeURI(decodeURI(f))
В смысле поможет всегда/иногда/никогда.

Отсутствует

 

№315-12-2012 17:49:05

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4780
UA: Firefox 3.6

Re: [CB] Букмарклеты в контекстном меню

Шахматы выглядят не хорошо
http://img521.imageshack.us/img521/7939/screenshot20121215001.jpg

Отсутствует

 

№415-12-2012 18:01:48

Lex1
Участник
 
Группа: Members
Зарегистрирован: 07-07-2007
Сообщений: 260
UA: Firefox 16.0

Re: [CB] Букмарклеты в контекстном меню

Dumby
Если делать интерфейс - да, а так просто будет ошибка на каком-нибудь var%20=

bunda1
Просто нет подходящих юникодных шрифтов. В более новых системах они идут из коробки.

Отредактировано Lex1 (15-12-2012 18:51:16)

Отсутствует

 

№518-12-2012 16:51:15

lokiju
Участник
 
Группа: Members
Зарегистрирован: 30-01-2012
Сообщений: 208
UA: Firefox 17.0

Re: [CB] Букмарклеты в контекстном меню

Букмарклет "Исходный код (snapshot)" на этой странице работает некорректно. На внутренних страницах (about:* за исключением blank вообще не работает)

Отредактировано lokiju (18-12-2012 16:52:33)

Отсутствует

 

№618-12-2012 19:07:22

Lex1
Участник
 
Группа: Members
Зарегистрирован: 07-07-2007
Сообщений: 260
UA: Firefox 17.0

Re: [CB] Букмарклеты в контекстном меню

На about:rights работает нормально и для страницы и для выделения. На about:about не работает, как собственно и обычные букмарклеты.

работает некорректно

И в чём это проявляется?

Отсутствует

 

№718-12-2012 22:09:27

lokiju
Участник
 
Группа: Members
Зарегистрирован: 30-01-2012
Сообщений: 208
UA: Firefox 17.0

Re: [CB] Букмарклеты в контекстном меню

Lex1 пишет:

И в чём это проявляется?

Не могу повторить. Видать был единичный персональный глюк.

Отсутствует

 

№821-12-2012 06:40:26

bugmenot
Участник
 
Группа: Members
Зарегистрирован: 29-01-2012
Сообщений: 34
UA: Firefox 17.0

Re: [CB] Букмарклеты в контекстном меню

Возможно ли получить доступ к ссылке, на которой было вызвано контекстное меню?

Отсутствует

 

№921-12-2012 08:38:45

Dumby
Участник
 
Группа: Members
Зарегистрирован: 12-08-2012
Сообщений: 980
UA: Firefox 10.0

Re: [CB] Букмарклеты в контекстном меню

bugmenot

скрытый текст

Выделить код

Код:

var contextMenu = document.getElementById("contentAreaContextMenu");
function test(e) {
    if (e.target == contextMenu && gContextMenu.onLink) {
        var url = gContextMenu.linkURL;
        alert(url);
    }
}
contextMenu.addEventListener("popupshowing", test, false);
this.onDestroy = function() {
    contextMenu.removeEventListener("popupshowing", test, false);
}

Отсутствует

 

№1014-05-2013 15:41:06

Lex1
Участник
 
Группа: Members
Зарегистрирован: 07-07-2007
Сообщений: 260
UA: Firefox 20.0

Re: [CB] Букмарклеты в контекстном меню

FF21 поддерживает window.crypto.getRandomValues, так что можно использовать более качественный генератор паролей:

скрытый текст

Выделить код

Код:

["Сгенерировать/показать пароль", function(){var getRandomPass=function(d){var chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';var ret='',len=d>=3?d:3,buf=new Uint8Array(len);crypto.getRandomValues(buf);for(var i=0;i<len;i++)ret+=chars.charAt(buf[i]*chars.length>>8);return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).+$/.test(ret)?ret:getRandomPass(len)};var findPassEle=function(p){var c,s='',r=false,f=document.getElementsByTagName('form');for(var i=0;i<f.length;i++){c=f[i].elements;for(var j=0,e;e=c[j];j++){if(e.type=='password'){r=true;if(p){e.value=p;e.focus()}else if(e.value)s+='\n\n'+e.value}}};return r?s:null};var s=findPassEle();if(s){alert('На этой странице уже имеется пароль:'+s)}else{findPassEle(prompt('Пароль сгенерирован'+(s==null?':':'. Вставить?'),getRandomPass(12)))}}],

Отредактировано Lex1 (14-05-2013 19:05:25)

Отсутствует

 

№1110-06-2013 12:48:08

iDev.Pi
баг-репортёр
 
Группа: Extensions
Зарегистрирован: 31-01-2010
Сообщений: 2718
UA: Firefox 21.0

Re: [CB] Букмарклеты в контекстном меню

Lex1
у меня кнопка не работает. Пробовал прогонять её через Infocatcher'овский E4X конвертер - не помогло.


mzfx

Отсутствует

 

№1210-06-2013 19:09:05

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4780
UA: Firefox 3.6

Re: [CB] Букмарклеты в контекстном меню

iDev.Pi пишет:

у меня кнопка не работает.

Работает без конвертации даже на Nightly но не все пункты, надо просто обновить бумарклети в коде.

Отредактировано bunda1 (10-06-2013 19:09:22)

Отсутствует

 

№1311-06-2013 01:07:04

iDev.Pi
баг-репортёр
 
Группа: Extensions
Зарегистрирован: 31-01-2010
Сообщений: 2718
UA: Firefox 21.0

Re: [CB] Букмарклеты в контекстном меню

bunda1
а на что их обновить?


mzfx

Отсутствует

 

№1411-06-2013 18:20:49

bunda1
Moderator
 
Группа: Moderators
Откуда: Латвия
Зарегистрирован: 09-02-2010
Сообщений: 4780
UA: Firefox 3.6

Re: [CB] Букмарклеты в контекстном меню

iDev.Pi
Я имел виду что надо найти букмарклет который работает на твоей версии FF и заменить неработающий в коде от Lex1. Кстати у меня на Nighly все работает без конвертации кроме пункта Показать ссылки на Flash/Video

Отсутствует

 

№1511-06-2013 23:20:18

Lex1
Участник
 
Группа: Members
Зарегистрирован: 07-07-2007
Сообщений: 260
UA: Firefox 21.0

Re: [CB] Букмарклеты в контекстном меню

iDev.Pi

у меня кнопка не работает.

Создаваемый её пункт меню добавляется перед пунктом "Исследовать элемент" (context-inspect) Возможно он убран?
Хотя нет, пункт в этом случае добавится в конец. Ну тогда остаётся предположить, что в кнопку добавляется букмарклет с ошибками.

Отредактировано Lex1 (11-06-2013 23:50:11)

Отсутствует

 

№1612-06-2013 16:35:34

iDev.Pi
баг-репортёр
 
Группа: Extensions
Зарегистрирован: 31-01-2010
Сообщений: 2718
UA: Firefox 21.0

Re: [CB] Букмарклеты в контекстном меню

Lex1 пишет:

Создаваемый её пункт меню добавляется перед пунктом "Исследовать элемент" (context-inspect) Возможно он убран?

у меня тоже было такое подозрение, но пробовал отключать стили скрывающие элементы из контекстного меню - не помогло.

Lex1 пишет:

Хотя нет, пункт в этом случае добавится в конец. Ну тогда остаётся предположить, что в кнопку добавляется букмарклет с ошибками.

bunda1 пишет:

Я имел виду что надо найти букмарклет который работает на твоей версии FF и заменить неработающий в коде от Lex1.

гм, не думал, что невалидный код букмарка может влиять на работу всей CB (я думал, что выполнение кода самого букмарка происходит только если юзер кликнет на него).
Видимо, мой букмарк не правильно сконвертировался на http://www.codenet.ru/services/urlencode-urldecode/
помогите pwgen правильно сконвертировать:

скрытый текст

Выделить код

Код:

javascript:(function(){function%20b64_md5(p){p=utf8_en(p);return%20binl2b64(core_md5(str2binl(p),p.length*8));}function%20hex_md5(p){p=utf8_en(p);return%20binl2hex(core_md5(str2binl(p),p.length*8));}function%20binl2b64(binarray){var%20tab='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678998';var%20str='';for(var%20i=0;i%3Cbinarray.length*4;i+=3){var%20triplet=(((binarray[i%3E%3E2]%3E%3E8*(i%254))%260xFF)%3C%3C16)|(((binarray[i+1%3E%3E2]%3E%3E8*((i+1)%254))%260xFF)%3C%3C8)|((binarray[i+2%3E%3E2]%3E%3E8*((i+2)%254))%260xFF);for(var%20j=0;j%3C4;j++){str+=tab.charAt((triplet%3E%3E6*(3-j))%260x3F);}}return%20str;}function%20binl2hex(binarray){var%20hex_tab='0123456789abcdef';var%20str='';for(var%20i=0;i%3Cbinarray.length*4;i++){str+=hex_tab.charAt((binarray[i%3E%3E2]%3E%3E((i%254)*8+4))%260xF)+hex_tab.charAt((binarray[i%3E%3E2]%3E%3E((i%254)*8))%260xF);}return%20str;}function%20core_md5(x,len){x[len%3E%3E5]|=0x80%3C%3C((len)%2532);x[(((len+64)%3E%3E%3E9)%3C%3C4)+14]=len;var%20a=1732584193;var%20b=-271733879;var%20c=-1732584194;var%20d=271733878;for(var%20i=0;i%3Cx.length;i+=16){var%20olda=a;var%20oldb=b;var%20oldc=c;var%20oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd);}return[a,b,c,d];}function%20md5_cmn(q,a,b,x,s,t){return%20safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b);}function%20md5_ff(a,b,c,d,x,s,t){return%20md5_cmn((b%26c)|((~b)%26d),a,b,x,s,t);}function%20md5_gg(a,b,c,d,x,s,t){return%20md5_cmn((b%26d)|(c%26(~d)),a,b,x,s,t);}function%20md5_hh(a,b,c,d,x,s,t){return%20md5_cmn(b^c^d,a,b,x,s,t);}function%20md5_ii(a,b,c,d,x,s,t){return%20md5_cmn(c^(b|(~d)),a,b,x,s,t);}function%20bit_rol(num,cnt){return(num%3C%3Ccnt)|(num%3E%3E%3E(32-cnt));}function%20utf8_en(str){return%20unescape(encodeURIComponent(str));}function%20safe_add(x,y){var%20lsw=(x%260xFFFF)+(y%260xFFFF);var%20msw=(x%3E%3E16)+(y%3E%3E16)+(lsw%3E%3E16);return(msw%3C%3C16)|(lsw%260xFFFF);}function%20str2binl(str){var%20bin=[];var%20mask=(1%3C%3C8)-1;for(var%20i=0;i%3Cstr.length*8;i+=8){bin[i%3E%3E5]|=(str.charCodeAt(i/8)%26mask)%3C%3C(i%2532);}return%20bin;}function%20gp2_generate_passwd(Passwd,Len){var%20i=0;while(i%3C10||!(gp2_check_passwd(Passwd.substring(0,Len)))){Passwd=b64_md5(Passwd);i++;}return%20Passwd.substring(0,Len);}function%20gp2_check_passwd(Passwd){return(Passwd.search(/[a-z]/)===0%26%26Passwd.search(/[0-9]/)%3E0%26%26Passwd.search(/[A-Z]/)%3E0)%3Ftrue:false;}function%20gp2_generate_hash(HashSeed){for(var%20i=0;i%3C=4;i++){HashSeed=hex_md5(HashSeed);}return%20HashSeed;}function%20gp2_validate_length(Len){Len=(parseInt(Len))%3FparseInt(Len):10;if(Len%3C4){Len=4;}else%20if(Len%3E24){Len=24;}return%20Len;}function%20gp2_process_uri(URI,DisableTLD){URI=URI.toLowerCase();var%20HostNameIsolator=new%20RegExp('^(http|https|ftp|ftps|webdav|gopher|rtsp|irc|nntp|pop|imap|smtp)://([^/:]+)');var%20HostName=URI.match(HostNameIsolator);if(HostName%26%26HostName[2]!=null){HostName=HostName[2];}else{HostNameIsolator=new%20RegExp('^([^/:]+)');HostName=URI.match(HostNameIsolator);HostName=(HostName[1]!=null)%3FHostName[1]:URI;}HostNameIsolator=new%20RegExp('^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$');HostName=(HostName.match(HostNameIsolator))%3F[HostName]:HostName.split('.');if(HostName[2]==null||DisableTLD){URI=HostName.join('.');}else{URI=HostName[HostName.length-2]+'.'+HostName[HostName.length-1];var%20TLDList=['ac.ac','com.ac','edu.ac','gov.ac','net.ac','mil.ac','org.ac','com.ae','net.ae','org.ae','gov.ae','ac.ae','co.ae','sch.ae','pro.ae','com.ai','org.ai','edu.ai','gov.ai','com.ar','net.ar','org.ar','gov.ar','mil.ar','edu.ar','int.ar','co.at','ac.at','or.at','gv.at','priv.at','com.au','gov.au','org.au','edu.au','id.au','oz.au','info.au','net.au','asn.au','csiro.au','telememo.au','conf.au','otc.au','id.au','com.az','net.az','org.az','com.bb','net.bb','org.bb','ac.be','belgie.be','dns.be','fgov.be','com.bh','gov.bh','net.bh','edu.bh','org.bh','com.bm','edu.bm','gov.bm','org.bm','net.bm','adm.br','adv.br','agr.br','am.br','arq.br','art.br','ato.br','bio.br','bmd.br','cim.br','cng.br','cnt.br','com.br','coop.br','ecn.br','edu.br','eng.br','esp.br','etc.br','eti.br','far.br','fm.br','fnd.br','fot.br','fst.br','g12.br','ggf.br','gov.br','imb.br','ind.br','inf.br','jor.br','lel.br','mat.br','med.br','mil.br','mus.br','net.br','nom.br','not.br','ntr.br','odo.br','org.br','ppg.br','pro.br','psc.br','psi.br','qsl.br','rec.br','slg.br','srv.br','tmp.br','trd.br','tur.br','tv.br','vet.br','zlg.br','com.bs','net.bs','org.bs','ab.ca','bc.ca','mb.ca','nb.ca','nf.ca','nl.ca','ns.ca','nt.ca','nu.ca','on.ca','pe.ca','qc.ca','sk.ca','yk.ca','gc.ca','co.ck','net.ck','org.ck','edu.ck','gov.ck','com.cn','edu.cn','gov.cn','net.cn','org.cn','ac.cn','ah.cn','bj.cn','cq.cn','gd.cn','gs.cn','gx.cn','gz.cn','hb.cn','he.cn','hi.cn','hk.cn','hl.cn','hn.cn','jl.cn','js.cn','ln.cn','mo.cn','nm.cn','nx.cn','qh.cn','sc.cn','sn.cn','sh.cn','sx.cn','tj.cn','tw.cn','xj.cn','xz.cn','yn.cn','zj.cn','arts.co','com.co','edu.co','firm.co','gov.co','info.co','int.co','nom.co','mil.co','org.co','rec.co','store.co','web.co','ac.cr','co.cr','ed.cr','fi.cr','go.cr','or.cr','sa.cr','com.cu','net.cu','org.cu','ac.cy','com.cy','gov.cy','net.cy','org.cy','co.dk','art.do','com.do','edu.do','gov.do','gob.do','org.do','mil.do','net.do','sld.do','web.do','com.dz','org.dz','net.dz','gov.dz','edu.dz','ass.dz','pol.dz','art.dz','com.ec','k12.ec','edu.ec','fin.ec','med.ec','gov.ec','mil.ec','org.ec','net.ec','com.ee','pri.ee','fie.ee','org.ee','med.ee','com.eg','edu.eg','eun.eg','gov.eg','net.eg','org.eg','sci.eg','com.er','net.er','org.er','edu.er','mil.er','gov.er','ind.er','com.es','org.es','gob.es','edu.es','nom.es','com.et','gov.et','org.et','edu.et','net.et','biz.et','name.et','info.et','ac.fj','com.fj','gov.fj','id.fj','org.fj','school.fj','com.fk','ac.fk','gov.fk','net.fk','nom.fk','org.fk','asso.fr','nom.fr','barreau.fr','com.fr','prd.fr','presse.fr','tm.fr','aeroport.fr','assedic.fr','avocat.fr','avoues.fr','cci.fr','chambagri.fr','chirurgiens-dentistes.fr','experts-comptables.fr','geometre-expert.fr','gouv.fr','greta.fr','huissier-justice.fr','medecin.fr','notaires.fr','pharmacien.fr','port.fr','veterinaire.fr','com.ge','edu.ge','gov.ge','mil.ge','net.ge','org.ge','pvt.ge','co.gg','org.gg','sch.gg','ac.gg','gov.gg','ltd.gg','ind.gg','net.gg','alderney.gg','guernsey.gg','sark.gg','com.gr','edu.gr','gov.gr','net.gr','org.gr','com.gt','edu.gt','net.gt','gob.gt','org.gt','mil.gt','ind.gt','com.gu','edu.gu','net.gu','org.gu','gov.gu','mil.gu','com.hk','net.hk','org.hk','idv.hk','gov.hk','edu.hk','co.hu','2000.hu','erotika.hu','jogasz.hu','sex.hu','video.hu','info.hu','agrar.hu','film.hu','konyvelo.hu','shop.hu','org.hu','bolt.hu','forum.hu','lakas.hu','suli.hu','priv.hu','casino.hu','games.hu','media.hu','szex.hu','sport.hu','city.hu','hotel.hu','news.hu','tozsde.hu','tm.hu','erotica.hu','ingatlan.hu','reklam.hu','utazas.hu','ac.id','co.id','go.id','mil.id','net.id','or.id','co.il','net.il','org.il','ac.il','gov.il','k12.il','muni.il','idf.il','co.im','net.im','org.im','ac.im','lkd.co.im','gov.im','nic.im','plc.co.im','co.in','net.in','ac.in','ernet.in','gov.in','nic.in','res.in','gen.in','firm.in','mil.in','org.in','ind.in','ac.ir','co.ir','gov.ir','id.ir','net.ir','org.ir','sch.ir','ac.je','co.je','net.je','org.je','gov.je','ind.je','jersey.je','ltd.je','sch.je','com.jo','org.jo','net.jo','gov.jo','edu.jo','mil.jo','ad.jp','ac.jp','co.jp','go.jp','or.jp','ne.jp','gr.jp','ed.jp','lg.jp','net.jp','org.jp','gov.jp','hokkaido.jp','aomori.jp','iwate.jp','miyagi.jp','akita.jp','yamagata.jp','fukushima.jp','ibaraki.jp','tochigi.jp','gunma.jp','saitama.jp','chiba.jp','tokyo.jp','kanagawa.jp','niigata.jp','toyama.jp','ishikawa.jp','fukui.jp','yamanashi.jp','nagano.jp','gifu.jp','shizuoka.jp','aichi.jp','mie.jp','shiga.jp','kyoto.jp','osaka.jp','hyogo.jp','nara.jp','wakayama.jp','tottori.jp','shimane.jp','okayama.jp','hiroshima.jp','yamaguchi.jp','tokushima.jp','kagawa.jp','ehime.jp','kochi.jp','fukuoka.jp','saga.jp','nagasaki.jp','kumamoto.jp','oita.jp','miyazaki.jp','kagoshima.jp','okinawa.jp','sapporo.jp','sendai.jp','yokohama.jp','kawasaki.jp','nagoya.jp','kobe.jp','kitakyushu.jp','utsunomiya.jp','kanazawa.jp','takamatsu.jp','matsuyama.jp','com.kh','net.kh','org.kh','per.kh','edu.kh','gov.kh','mil.kh','ac.kr','co.kr','go.kr','ne.kr','or.kr','pe.kr','re.kr','seoul.kr','kyonggi.kr','com.kw','net.kw','org.kw','edu.kw','gov.kw','com.la','net.la','org.la','com.lb','org.lb','net.lb','edu.lb','gov.lb','mil.lb','com.lc','edu.lc','gov.lc','net.lc','org.lc','com.lv','net.lv','org.lv','edu.lv','gov.lv','mil.lv','id.lv','asn.lv','conf.lv','com.ly','net.ly','org.ly','co.ma','net.ma','org.ma','press.ma','ac.ma','com.mk','com.mm','net.mm','org.mm','edu.mm','gov.mm','com.mn','org.mn','edu.mn','gov.mn','museum.mn','com.mo','net.mo','org.mo','edu.mo','gov.mo','com.mt','net.mt','org.mt','edu.mt','tm.mt','uu.mt','com.mx','net.mx','org.mx','gob.mx','edu.mx','com.my','org.my','gov.my','edu.my','net.my','com.na','org.na','net.na','alt.na','edu.na','cul.na','unam.na','telecom.na','com.nc','net.nc','org.nc','ac.ng','edu.ng','sch.ng','com.ng','gov.ng','org.ng','net.ng','gob.ni','com.ni','net.ni','edu.ni','nom.ni','org.ni','com.np','net.np','org.np','gov.np','edu.np','ac.nz','co.nz','cri.nz','gen.nz','geek.nz','govt.nz','iwi.nz','maori.nz','mil.nz','net.nz','org.nz','school.nz','com.om','co.om','edu.om','ac.om','gov.om','net.om','org.om','mod.om','museum.om','biz.om','pro.om','med.om','com.pa','net.pa','org.pa','edu.pa','ac.pa','gob.pa','sld.pa','edu.pe','gob.pe','nom.pe','mil.pe','org.pe','com.pe','net.pe','com.pg','net.pg','ac.pg','com.ph','net.ph','org.ph','mil.ph','ngo.ph','aid.pl','agro.pl','atm.pl','auto.pl','biz.pl','com.pl','edu.pl','gmina.pl','gsm.pl','info.pl','mail.pl','miasta.pl','media.pl','mil.pl','net.pl','nieruchomosci.pl','nom.pl','org.pl','pc.pl','powiat.pl','priv.pl','realestate.pl','rel.pl','sex.pl','shop.pl','sklep.pl','sos.pl','szkola.pl','targi.pl','tm.pl','tourism.pl','travel.pl','turystyka.pl','com.pk','net.pk','edu.pk','org.pk','fam.pk','biz.pk','web.pk','gov.pk','gob.pk','gok.pk','gon.pk','gop.pk','gos.pk','edu.ps','gov.ps','plo.ps','sec.ps','com.pt','edu.pt','gov.pt','int.pt','net.pt','nome.pt','org.pt','publ.pt','com.py','net.py','org.py','edu.py','com.qa','net.qa','org.qa','edu.qa','gov.qa','asso.re','com.re','nom.re','com.ro','org.ro','tm.ro','nt.ro','nom.ro','info.ro','rec.ro','arts.ro','firm.ro','store.ro','www.ro','com.ru','net.ru','org.ru','gov.ru','pp.ru','com.sa','edu.sa','sch.sa','med.sa','gov.sa','net.sa','org.sa','pub.sa','com.sb','net.sb','org.sb','edu.sb','gov.sb','com.sd','net.sd','org.sd','edu.sd','sch.sd','med.sd','gov.sd','tm.se','press.se','parti.se','brand.se','fh.se','fhsk.se','fhv.se','komforb.se','kommunalforbund.se','komvux.se','lanarb.se','lanbib.se','naturbruksgymn.se','sshn.se','org.se','pp.se','com.sg','net.sg','org.sg','edu.sg','gov.sg','per.sg','com.sh','net.sh','org.sh','edu.sh','gov.sh','mil.sh','gov.st','saotome.st','principe.st','consulado.st','embaixada.st','org.st','edu.st','net.st','com.st','store.st','mil.st','co.st','com.sv','org.sv','edu.sv','gob.sv','red.sv','com.sy','net.sy','org.sy','gov.sy','ac.th','co.th','go.th','net.th','or.th','com.tn','net.tn','org.tn','edunet.tn','gov.tn','ens.tn','fin.tn','nat.tn','ind.tn','info.tn','intl.tn','rnrt.tn','rnu.tn','rns.tn','tourism.tn','com.tr','net.tr','org.tr','edu.tr','gov.tr','mil.tr','bbs.tr','k12.tr','gen.tr','co.tt','com.tt','org.tt','net.tt','biz.tt','info.tt','pro.tt','int.tt','coop.tt','jobs.tt','mobi.tt','travel.tt','museum.tt','aero.tt','name.tt','gov.tt','edu.tt','nic.tt','us.tt','uk.tt','ca.tt','eu.tt','es.tt','fr.tt','it.tt','se.tt','dk.tt','be.tt','de.tt','at.tt','au.tt','co.tv','com.tw','net.tw','org.tw','edu.tw','idv.tw','gov.tw','com.ua','net.ua','org.ua','edu.ua','gov.ua','ac.ug','co.ug','or.ug','go.ug','co.uk','me.uk','org.uk','edu.uk','ltd.uk','plc.uk','net.uk','sch.uk','nic.uk','ac.uk','gov.uk','nhs.uk','police.uk','mod.uk','dni.us','fed.us','com.uy','edu.uy','net.uy','org.uy','gub.uy','mil.uy','com.ve','net.ve','org.ve','co.ve','edu.ve','gov.ve','mil.ve','arts.ve','bib.ve','firm.ve','info.ve','int.ve','nom.ve','rec.ve','store.ve','tec.ve','web.ve','co.vi','net.vi','org.vi','com.vn','biz.vn','edu.vn','gov.vn','net.vn','org.vn','int.vn','ac.vn','pro.vn','info.vn','health.vn','name.vn','com.vu','edu.vu','net.vu','org.vu','de.vu','ch.vu','fr.vu','com.ws','net.ws','org.ws','gov.ws','edu.ws','ac.yu','co.yu','edu.yu','org.yu','com.ye','net.ye','org.ye','gov.ye','edu.ye','mil.ye','ac.za','alt.za','bourse.za','city.za','co.za','edu.za','gov.za','law.za','mil.za','net.za','ngo.za','nom.za','org.za','school.za','tm.za','web.za','co.zw','ac.zw','org.zw','gov.zw','eu.org','au.com','br.com','cn.com','de.com','de.net','eu.com','gb.com','gb.net','hu.com','no.com','qc.com','ru.com','sa.com','se.com','uk.com','uk.net','us.com','uy.com','za.com','dk.org','tel.no','fax.nr','mob.nr','mobil.nr','mobile.nr','tel.nr','tlf.nr','e164.arpa'];for(var%20i=0;i%3CTLDList.length;i++){if(URI==TLDList[i]){URI=HostName[HostName.length-3]+'.'+URI;break;}}}return%20URI;}function%20gp2_genpass(Passwd,Domain,LenL,HashL,SaltL,DisableTLDL){Passwd=(Passwd)%3Funescape(Passwd):0;Salt=(SaltL)%3Funescape(SaltL):'';Len=LenL;Hash=HashL;DisableTLD=DisableTLDL;var%20CurrentPosition=gp2_get_scroll_position();if(Target.getElementById('gp2_pass_box')){Target.getElementById('gp2_pass_box').style.right=(0-CurrentPosition[0])+'px';Target.getElementById('gp2_pass_box').style.top=CurrentPosition[1]+'px';alert(Snippets[0]);return%20false;}var%20ScrollX=(ScrollPosition)%3FCurrentPosition[0]-ScrollPosition[0]:CurrentPosition[0];var%20ScrollY=(ScrollPosition)%3FCurrentPosition[1]-ScrollPosition[1]:CurrentPosition[1];var%20ScreenSize=gp2_get_window_size();var%20PasswdFieldRelocate=(ScrollPosition)%3Ffalse:true;var%20PasswdFieldBlocked=false,RunAgain=false;HashVerified=false;PasswdFields=[];for(var%20i=0;i%3CFrames.length;i++){for(var%20j=0;j%3CFrames[i].forms.length;j++){for(var%20k=0;k%3CFrames[i].forms[j].elements.length;k++){if(Frames[i].forms[j].elements[k].type=='password'){var%20PasswdField=Frames[i].forms[j].elements[k];var%20Visible=(PasswdField.style.display.toLowerCase()=='none'||PasswdField.style.visibility.toLowerCase()=='hidden')%3Ffalse:true;if(Visible){var%20PasswdFieldParent=PasswdField.parentNode;while(Visible%26%26PasswdFieldParent%26%26PasswdFieldParent.nodeName.toLowerCase()!='html'%26%26PasswdFieldParent.nodeName.toLowerCase()!='%23document'){if(gp2_get_computed_style(PasswdFieldParent,'display').toLowerCase()=='none'||gp2_get_computed_style(PasswdFieldParent,'visibility').toLowerCase()=='hidden'){Visible=false;}else{PasswdFieldParent=PasswdFieldParent.parentNode;}}}if(Visible){var%20PasswdFieldType=0;var%20PasswdFieldPosition=(PasswdFieldBlocked)%3Ffalse:gp2_get_object_position(PasswdField);if(PasswdField.value!=''){if(!(PrevPasswd)%26%26gp2_get_computed_style(PasswdField,'background-image').replace(/\\/,'')=='url('+FieldPopData+')'){if(RunAgain||confirm(Snippets[1])){RunAgain=true;}else{return%20false;}PasswdFieldType=2;}else%20if(PrevPasswdPop%26%26PrevPasswdPop==PasswdField.value){PasswdFieldType=1;}else%20if(Passwd%26%26Passwd===PasswdField.value){PasswdFieldType=1;}else%20if(Passwd){PasswdFieldType=2;}else%20if(Hash%26%26Hash==gp2_generate_hash(PasswdField.value)){HashVerified=true;Passwd=PasswdField.value;PasswdFieldType=1;}else%20if(Hash){PasswdFieldType=2;}else{Passwd=PasswdField.value;PasswdFieldType=1;}}PasswdFields.push([PasswdField,PasswdFieldType]);PasswdField.style.background=FieldFoundStyle;PasswdFieldBlocked=(PasswdFieldRelocate%26%26(PasswdFieldBlocked||(ScreenSize[0]-PasswdFieldPosition[0]+ScrollX-150%3C225%26%26ScrollY%3CPasswdFieldPosition[1]+50)))%3Ftrue:false;gp2_detach_method(PasswdField,'keydown',gp2_react);gp2_detach_method(PasswdField,'change',gp2_react);gp2_detach_method(PasswdField,'dblclick',gp2_populate);gp2_detach_method(PasswdField,'dblclick',gp2_use_as_master);}}}}}var%20TitleBar=gp2_make('div',[],[['margin','0'],['padding','7px%205px%205px%207px'],['width','auto'],['background','%23333'],['color','%23fff'],FontStyle,['fontWeight','bold'],['cursor','move']],[['mousedown',gp2_drag_start]],[Target.createTextNode('SuperGenPass%202.01'+String.fromCharCode(160)+'%20'+String.fromCharCode(160)+'%20'),gp2_make('a',[['href','http://www.supergenpass.com/']],FontStyleToolbarLink,[],[Target.createTextNode(Snippets[14])]),Target.createTextNode(String.fromCharCode(160)+'%20'),gp2_make('a',[['href','%23']],FontStyleToolbarLink,[['click',gp2_close]],[Target.createTextNode(Snippets[15])])]);if(Passwd){Domain=(Domain)%3Fgp2_process_uri(Domain,DisableTLD):gp2_process_uri(Target.location.href,DisableTLD);Len=gp2_validate_length(Len);GenPasswd=gp2_generate_passwd(Passwd+Salt+':'+Domain,Len);if(Hash){HashVerified=(HashVerified||Hash==gp2_generate_hash(Passwd))%3F1:0;HashMessage=(HashVerified)%3FSnippets[5]:Snippets[6];HashMessage=gp2_make('span',[],[['color',HashStyle[HashVerified][0]],['background',HashStyle[HashVerified][1]],FontStyleSmall,['fontWeight','bold']],[],[Target.createTextNode(String.fromCharCode(160)+HashMessage+String.fromCharCode(160))]);}else{HashVerified=true;HashMessage=Target.createTextNode('');}Populated=0;Unpopulated=0;for(var%20i=0;i%3CPasswdFields.length;i++){var%20PasswdTarget=PasswdFields[i][0];if(PasswdFields[i][1]==2||(PasswdFields[i][1]==0%26%26PrevPasswd)||!(HashVerified)){gp2_attach_method(PasswdTarget,'dblclick',gp2_populate);Unpopulated++;}else{PasswdTarget.style.background=FieldPopStyle;PasswdTarget.value=GenPasswd;PasswdTarget.focus();gp2_attach_method(PasswdTarget,'keydown',gp2_react);gp2_attach_method(PasswdTarget,'change',gp2_react);Populated++;}}var%20GeneratedStyle=(Populated)%3FFieldPopStyle:'%23fff';var%20PopulateTextStyle=(Unpopulated)%3F'block':'none';var%20ChangeAlert=(PrevPasswd%26%26PrevPasswd!=GenPasswd)%3Ftrue:false;var%20PassMask='************************';DisableTLD=(DisableTLD)%3F'checked':'value';PrevPasswdPop=(Populated)%3FGenPasswd:PrevPasswd;PrevPasswd=GenPasswd;var%20Content=[TitleBar,gp2_make('div',[],[['margin','0'],['padding','8px%205px%2014px%208px'],['width','auto'],['color','%23000'],FontStyle],[],[gp2_make('div',[],[FontStyle,['fontWeight','bold']],[],[Target.createTextNode(Snippets[3])]),gp2_make('div',[['id','gp2_populate_text']],[['display',PopulateTextStyle],['margin','3px%200%200%200'],['color','%23666'],FontStyleSmall],[],[Target.createTextNode(Snippets[13])]),gp2_make('div',[['id','gp2_offer_pass']],RevealStyle.concat([['background',GeneratedStyle],['borderColor','%23666']]),[],[Target.createTextNode(PassMask.substring(0,Len))]),gp2_make('div',[['id','gp2_show_pass']],RevealStyle.concat([['display','none'],['background',GeneratedStyle],['borderColor','%23666']]),[],[Target.createTextNode(GenPasswd)]),gp2_make('a',[['href','%23']],FontStyleLink,[['click',gp2_reveal_pass]],[Target.createTextNode(Snippets[16])])]),gp2_make('div',[],[['margin','0'],['padding','0%205px%2010px%208px'],['width','auto'],['color','%23000'],FontStyle],[],[gp2_make('div',[],[FontStyle,['fontWeight','bold']],[],[Target.createTextNode(Snippets[4])]),gp2_make('div',[['id','gp2_offer_master_pass']],RevealStyle.concat([['background','%23fff'],['borderColor','%23666']]),[],[Target.createTextNode(PassMask.substring(0,Passwd.length))]),gp2_make('div',[['id','gp2_show_master_pass']],RevealStyle.concat([['display','none'],['background','%23fff'],['borderColor','%23666']]),[],[Target.createTextNode(Passwd)]),gp2_make('a',[['href','%23']],FontStyleLink,[['click',gp2_reveal_master_pass]],[Target.createTextNode(Snippets[16])]),Target.createTextNode(String.fromCharCode(160)+'%20'),HashMessage]),gp2_make('div',[],[['margin','0'],['padding','8px'],['width','auto'],['color','%23333'],['background','%23eee'],FontStyle,['fontWeight','bold']],[],[Target.createTextNode(Snippets[7]+'%20'+String.fromCharCode(160)),gp2_make('a',[['href','%23'],['id','gp2_expand_link']],FontStyleLink,[['click',gp2_expand]],[Target.createTextNode(Snippets[16])]),gp2_make('a',[['href','%23'],['id','gp2_contract_link']],FontStyleLink.concat([['display','none']]),[['click',gp2_contract]],[Target.createTextNode(Snippets[16])])]),gp2_make('div',[['id','gp2_advanced_box']],[['margin','0'],['padding','0%205px%205px%208px'],['width','auto'],['color','%23000'],FontStyle,['display','none'],['background','%23eee']],[],[gp2_make('form',[['name','gp2_advanced'],['method','post'],['action','http://localhost:9/'],['autocomplete','off']],[['margin','0'],['padding','0']],[['submit',gp2_retry_advanced]],[Target.createTextNode(Snippets[8]),Target.createElement('br'),gp2_make('input',[['type','password'],['id','gp2_advanced_master_passwd'],['value',Passwd]],[['margin','3px%200%2010px%200'],['width','150px'],FontStyleInput],[['keypress',gp2_retry_advanced_listen]],[]),Target.createElement('br'),Target.createTextNode(Snippets[9]),Target.createElement('br'),gp2_make('input',[['type','text'],['id','gp2_advanced_domain'],['size','15'],['value',Domain]],[['margin','3px%200%202px%200'],['width','150px'],FontStyleInput],[['keypress',gp2_retry_advanced_listen]],[]),Target.createElement('br'),gp2_make('input',[['type','checkbox'],['id','gp2_advanced_domain_isolator'],[DisableTLD,'checked']],[['margin','5px%200%2010px%200'],['padding','0']],[['keypress',gp2_retry_advanced_listen]],[]),gp2_make('label',[['for','gp2_advanced_domain_isolation']],[['margin','0'],['padding','0'],FontStyleSmall],[],[Target.createTextNode('%20'+Snippets[10])]),Target.createElement('br'),Target.createTextNode(Snippets[11]),Target.createElement('br'),gp2_make('input',[['type','text'],['id','gp2_advanced_len'],['size','4'],['value',Len]],[['margin','3px%200%2010px%200'],['width','40px'],FontStyleInput],[['keypress',gp2_retry_advanced_listen]],[]),Target.createElement('br'),gp2_make('input',[['type','button'],['value',Snippets[12]]],[['margin','0%200%205px%200']],[['click',gp2_retry_advanced]],[])])])];}else{for(var%20i=0;i%3CPasswdFields.length;i++){if(PasswdFields[i][1]==2){gp2_attach_method(PasswdFields[i][0],'dblclick',gp2_use_as_master);}}var%20Content=[TitleBar,gp2_make('div',[],[['margin','0'],['padding','8px'],['width','auto'],['color','%23000'],FontStyle],[],[gp2_make('form',[['name','gp2_retry'],['method','post'],['action','http://localhost:9/'],['autocomplete','off']],[['margin','0'],['padding','0']],[['submit',gp2_retry_passwd]],[Target.createTextNode(Snippets[2]),Target.createElement('br'),gp2_make('input',[['type','password'],['id','gp2_master'],['size','15'],['value','']],[['margin','8px%205px%200%200'],['width','125px'],FontStyleInput],[['keypress',gp2_retry_passwd_listen]],[]),gp2_make('input',[['type','button'],['value',Snippets[12]]],[],[['click',gp2_retry_passwd]],[])])])];gp2_attach_method(TargetWindow,'unload',gp2_close);}BoxPositionX=(PasswdFieldBlocked||BoxPosition[0]=='left')%3F['left','0px']:['right',(BoxPosition[0]-ScrollX)+'px'];var%20ParentDiv=gp2_make('div',[['id','gp2_pass_box']],[['zIndex','99999'],['position','absolute'],['top',(BoxPosition[1]+ScrollY)+'px'],BoxPositionX,['width','220px'],['margin','0'],['padding','0'],['background','%23fff'],['borderStyle','solid'],['borderColor','%23fff'],['borderWidth','8px'],['opacity','0.95'],['filter','alpha(opacity=95)']],[],[gp2_make('div',[],[['margin','0'],['padding','0'],['borderStyle','solid'],['borderColor','%23ccc'],['borderWidth','1px'],['textAlign','left']],[],Content)]);Target.body.appendChild(ParentDiv);if(Target.getElementById('gp2_master')){Target.getElementById('gp2_master').focus()};if(Target.getElementById('gp2_offer_pass')%26%26ChangeAlert){FlashTarget=Target.getElementById('gp2_offer_pass');FlashTarget.style.color='%23fff';setTimeout(%22FlashTarget.style.color='%23000'%22,100);setTimeout(%22FlashTarget.style.color='%23fff'%22,150);setTimeout(%22FlashTarget.style.color='%23000'%22,200);}}function%20gp2_close(e){if(Target.getElementById('gp2_pass_box')){ScrollPosition=gp2_get_scroll_position();BoxPosition=[0,parseInt(Target.getElementById('gp2_pass_box').style.top)];BoxPosition[0]=(Target.getElementById('gp2_pass_box').style.right)%3FparseInt(Target.getElementById('gp2_pass_box').style.right):'left';Target.body.removeChild(Target.getElementById('gp2_pass_box'));}if(typeof(PasswdFields)!='undefined'){for(var%20i=0;i%3C(PasswdFields.length);i++){gp2_detach_method(PasswdFields[i][0],'dblclick',gp2_populate);gp2_detach_method(PasswdFields[i][0],'dblclick',gp2_use_as_master);if(gp2_get_computed_style(PasswdFields[i][0],'background-image').replace(/\\/,'')=='url('+FieldFoundData+')'){PasswdFields[i][0].style.background='%23fff';}}}delete%20PasswdFields;delete%20GenPasswd;delete%20PrevPasswd;delete%20PrevPasswdPop;e.preventDefault();return%20false;}function%20gp2_expand(e){Target.getElementById('gp2_expand_link').style.display='none';Target.getElementById('gp2_contract_link').style.display='inline';Target.getElementById('gp2_advanced_box').style.display='block';e.preventDefault();return%20false;}function%20gp2_contract(e){Target.getElementById('gp2_expand_link').style.display='inline';Target.getElementById('gp2_contract_link').style.display='none';Target.getElementById('gp2_advanced_box').style.display='none';e.preventDefault();return%20false;}function%20gp2_retry_passwd(e){var%20Passwd=Target.getElementById('gp2_master').value;gp2_close(e);gp2_genpass(escape(Passwd),0,Len,Hash,Salt,DisableTLD);return%20false;}function%20gp2_retry_passwd_listen(e){if(e.keyCode==13||e.keyCode==3){gp2_retry_passwd(e);}e.stopPropagation();}function%20gp2_retry_advanced(e){var%20Passwd=Target.getElementById('gp2_advanced_master_passwd').value;var%20Domain=Target.getElementById('gp2_advanced_domain').value;var%20DisableTLD=(Target.getElementById('gp2_advanced_domain_isolator').checked)%3Ftrue:false;var%20Len=Target.getElementById('gp2_advanced_len').value;gp2_close(e);gp2_genpass(escape(Passwd),Domain,Len,Hash,Salt,DisableTLD);return%20false;}function%20gp2_retry_advanced_listen(e){if(e.keyCode==13||e.keyCode==3){gp2_retry_advanced(e);}e.stopPropagation();}function%20gp2_reveal_pass(e){if(Target.getElementById('gp2_offer_pass').style.display=='none'){Target.getElementById('gp2_show_pass').style.display='none';Target.getElementById('gp2_offer_pass').style.display='block';}else{Target.getElementById('gp2_offer_pass').style.display='none';Target.getElementById('gp2_show_pass').style.display='block';}e.preventDefault();return%20false;}function%20gp2_reveal_master_pass(e){if(Target.getElementById('gp2_offer_master_pass').style.display=='none'){Target.getElementById('gp2_show_master_pass').style.display='none';Target.getElementById('gp2_offer_master_pass').style.display='block';}else{Target.getElementById('gp2_offer_master_pass').style.display='none';Target.getElementById('gp2_show_master_pass').style.display='block';}e.preventDefault();return%20false;}function%20gp2_populate(e){if(GenPasswd%26%26Target.getElementById('gp2_pass_box')){Populated++;Unpopulated--;this.value=GenPasswd;this.style.background=FieldPopStyle;gp2_attach_method(this,'keydown',gp2_react);gp2_attach_method(this,'change',gp2_react);gp2_detach_method(this,'dblclick',gp2_populate);Target.getElementById('gp2_show_pass').style.background=FieldPopStyle;Target.getElementById('gp2_offer_pass').style.background=FieldPopStyle;if(Unpopulated===0%26%26Target.getElementById('gp2_populate_text')){Target.getElementById('gp2_populate_text').style.display='none';}}e.preventDefault();return%20false;}function%20gp2_use_as_master(e){if(Target.getElementById('gp2_pass_box')){gp2_detach_method(this,'dblclick',gp2_use_as_master);gp2_close(e);gp2_genpass(this.value,0,Len,Hash,Salt,DisableTLD);}e.preventDefault();return%20false;}function%20gp2_react(e){if(e.keyCode==8||e.keyCode==32||(e.keyCode%3E45%26%26e.keyCode%3C91)||(e.keyCode%3E95%26%26e.keyCode%3C112)||(e.keyCode%3E185%26%26e.keyCode%3C223)){gp2_detach_method(this,'keydown',gp2_react);gp2_detach_method(this,'change',gp2_react);Populated--;Unpopulated++;if(GenPasswd%26%26Target.getElementById('gp2_pass_box')){if(Populated%3C1){Target.getElementById('gp2_show_pass').style.background='%23fff';Target.getElementById('gp2_offer_pass').style.background='%23fff';}if(Unpopulated%26%26Target.getElementById('gp2_populate_text')){Target.getElementById('gp2_populate_text').style.display='block';}gp2_attach_method(this,'dblclick',gp2_populate);this.style.background=FieldFoundStyle;}else{this.style.background='%23fff';}}return%20true;}function%20gp2_make(Name,Attributes,Styles,Methods,Children){var%20Element=Target.createElement(Name);for(var%20i=0;i%3CAttributes.length;i++){Element.setAttribute(Attributes[i][0],Attributes[i][1]);}for(var%20i=0;i%3CStyles.length;i++){eval('Element.style.'+Styles[i][0]+%22='%22+Styles[i][1]+%22'%22);}for(var%20i=0;i%3CMethods.length;i++){gp2_attach_method(Element,Methods[i][0],Methods[i][1]);}for(var%20i=0;i%3CChildren.length;i++){Element.appendChild(Children[i]);}return%20Element;}function%20gp2_attach_method(obj,type,fn){var%20handler=function(e){e=e||window.event;if(!e.stopPropagation){e.stopPropagation=function(){this.cancelBubble=true;}}if(!e.preventDefault){e.preventDefault=function(){this.returnValue=false;}}if(!e.stopEvent){e.stopEvent=function(){this.stopPropagation();this.preventDefault();}}return%20fn.apply(obj,[e]);};handler.obj=obj;handler.type=type;handler.fn=fn;gp2_detach_method.handlers.push(handler);if(window.addEventListener){obj.addEventListener(type,handler,false);}else%20if(window.attachEvent){obj.attachEvent('on'+type,handler);}return%20handler;}function%20gp2_detach_method(obj,type,fn){for(var%20i=0;i%3Cgp2_detach_method.handlers.length;i++){var%20h=gp2_detach_method.handlers[i];if(h.obj==obj%26%26h.type==type%26%26h.fn==fn){if(obj.removeEventListener){obj.removeEventListener(h.type,h,false);}if(obj.detachEvent){obj.detachEvent('on'+h.type,h);}gp2_detach_method.handlers.splice(i,1);return%20h;}}}gp2_detach_method.handlers=[];function%20gp2_drag_start(e){DragBox=new%20Object();var%20Cursor=gp2_get_cursor(e);DragBox.Node=Target.getElementById('gp2_pass_box');if(!(DragBox.Node.style.right)){DragBox.Node.style.left='auto';DragBox.Node.style.right=gp2_get_computed_style(DragBox.Node,'right');}DragBox.StartX=parseInt(DragBox.Node.style.right,10);DragBox.StartY=parseInt(DragBox.Node.style.top,10);DragBox.CursorX=Cursor[0];DragBox.CursorY=Cursor[1];gp2_attach_method(Target,'mousemove',gp2_drag_go);gp2_attach_method(Target,'mouseup',gp2_drag_stop);e.preventDefault();e.stopPropagation();return%20false;}function%20gp2_drag_go(e){var%20CursorMove=gp2_get_cursor(e);DragBox.Node.style.right=(DragBox.StartX+(DragBox.CursorX-CursorMove[0]))+'px';DragBox.Node.style.top=(DragBox.StartY+(CursorMove[1]-DragBox.CursorY))+'px';e.preventDefault();return%20false;}function%20gp2_drag_stop(e){gp2_detach_method(Target,'mousemove',gp2_drag_go);gp2_detach_method(Target,'mouseup',gp2_drag_stop);e.preventDefault();return%20false;}function%20gp2_get_cursor(e){var%20x=0;var%20y=0;if(e.pageX||e.pageY){x=e.pageX;y=e.pageY;}else%20if(e.clientX||e.clientY){x=e.clientX+document.body.scrollLeft;y=e.clientY+document.body.scrollTop;}return[x,y];}function%20gp2_get_window_size(){var%20x=0;var%20y=0;if(typeof(TargetWindow.innerWidth!='undefined')){x=TargetWindow.innerWidth;y=TargetWindow.innerHeight;}else%20if(typeof(Target.documentElement!='undefined')%26%26typeof(Target.documentElement.clientWidth!='undefined')%26%26Target.documentElement.clientWidth!=0){x=Target.documentElement.clientWidth;y=Target.documentElement.clientHeight;}else{x=Target.getElementsByTagName('body')[0].clientWidth;y=Target.getElementsByTagName('body')[0].clientHeight;}return[x,y];}function%20gp2_get_scroll_position(){var%20x=0;var%20y=0;if(typeof(TargetWindow.pageXOffset)=='number'||typeof(TargetWindow.pageYOffset)=='number'){x=TargetWindow.pageXOffset;y=TargetWindow.pageYOffset;}else%20if(Target.body%26%26(Target.body.scrollLeft||Target.body.scrollTop)){x=Target.body.scrollLeft;y=Target.body.scrollTop;}else%20if(Target.documentElement%26%26(Target.documentElement.scrollLeft||Target.documentElement.scrollTop)){x=Target.documentElement.scrollLeft;y=Target.documentElement.scrollTop;}return[x,y];}function%20gp2_get_object_position(obj){var%20x=0;var%20y=0;if(obj.offsetParent){while(1){x+=obj.offsetLeft;y+=obj.offsetTop;if(!obj.offsetParent){break;}obj=obj.offsetParent;}}else%20if(obj.x%26%26obj.y){x+=obj.x;y+=obj.y;}return[x,y];}function%20gp2_get_computed_style(obj,style){var%20styleVal='';if(document.defaultView%26%26document.defaultView.getComputedStyle){styleVal=document.defaultView.getComputedStyle(obj,'').getPropertyValue(style);}else%20if(obj.currentStyle){style=style.replace(/\-(\w)/g,function(strMatch,p1){return%20p1.toUpperCase();});styleVal=obj.currentStyle[style];}return%20styleVal;}var%20DragBox;var%20Target=(document)%3Fdocument:false;var%20TargetWindow=(window)%3Fwindow:false;var%20FrameCount=window.frames.length-document.getElementsByTagName('iframe').length;var%20Frames=(FrameCount)%3F[]:[Target];var%20Debug=[];var%20MaxArea=0;for(var%20i=0;i%3Cwindow.frames.length;i++){try{var%20FrameTest=window.frames[i].src;if(FrameCount){var%20Area=(window.frames[i].innerHeight)%3Fwindow.frames[i].innerHeight*window.frames[i].innerWidth:window.frames[i].document.body.clientHeight*window.frames[i].document.body.clientWidth;if(Area%3EMaxArea){Target=window.frames[i].document;TargetWindow=window.frames[i];MaxArea=Area;}}Frames.push(window.frames[i].document);}catch(err){Debug.push('EXT_FRAME');}}var%20FontStyle=['font','13px%20Trebuchet%20MS,%20Helvetica,sans-serif'];var%20FontStyleSmall=['font','11px%20Trebuchet%20MS,%20Helvetica,sans-serif'];var%20FontStyleInput=['font','14px%20monospace'];var%20HashStyle=[['%23f00','%23fcc'],['%23060','%23cfc']];var%20FontStyleLink=[FontStyleSmall,['color','%23666'],['fontWeight','normal'],['textDecoration','underline'],['borderWidth','0'],['cursor','pointer']];var%20FontStyleToolbarLink=[FontStyleSmall,['color','%23ccc'],['fontWeight','normal'],['textDecoration','underline'],['borderWidth','0'],['cursor','pointer']];var%20RevealStyle=[['margin','8px%205px%202px%200'],['padding','5px%205px%203px%205px'],['width','auto'],['borderStyle','solid'],['borderWidth','1px'],FontStyleInput];var%20MessageStyle=[['margin','0%200%208px%200'],['padding','0'],FontStyle];var%20FieldPopData='data:image/gif;base64,R0lGODlhDQAOAJEAAAjOCPn%252B%252Bd343f%252F%252F%252FyH5BAEAAAMALAAAAAANAA4AAAIlhI83CRKhFoKAjouE0eBi81CdJ3ERWSWkx6ws4r5GLNOvzeJeAQA7';var%20FieldFoundData='data:image/gif;base64,R0lGODlhDQAOAIABAMzMzAAAACH5BAEAAAEALAAAAAANAA4AAAIchI8XyRDb1IvmzWgvyxrxXn2QJHqidlphurBWAQA7';var%20TestImage=new%20Image;TestImage.src=FieldPopData;var%20FieldFoundStyle=(TestImage.complete)%3F'%23fff%20url('+FieldFoundData+')%20no-repeat%20top%20right':'%23fff%20url(http://files.supergenpass.com/img/sgp0.gif)%20no-repeat%20top%20right';var%20FieldPopStyle=(TestImage.complete)%3F'%23fff%20url('+FieldPopData+')%20no-repeat%20top%20right':'%23fff%20url(http://files.supergenpass.com/img/sgp1.gif)%20no-repeat%20top%20right';delete%20TestImage;var%20Len=false,Hash=false,Salt=false,DisableTLD=false,GenPasswd=false,PrevPasswd=false,PrevPasswdPop=false,Populated=false,Unpopulated=false,ScrollPosition=false;var%20BoxPosition=[0,0];var%20Snippets=['You%20already%20have%20a%20SuperGenPass%20window%20open.','Are%20you%20sure%20you%20want%20to%20run%20SuperGenPass%20again?','Enter%20your%20master%20password.','Your%20generated%20password','Your%20master%20password','VERIFIED','INVALID','Regenerate%20password','Master%20password','Domain%20/%20URL','Disable%20subdomain%20removal','Password%20length','Submit','Double-click%20to%20populate','help','close','show/hide'];if(Target%26%26TargetWindow){gp2_genpass(0,0,0,0,0,0);}else{if(confirm(Messages[3])){window.location='http://www.supergenpass.com/mobile/';}}})();


mzfx

Отсутствует

 

№1712-06-2013 19:35:43

Lex1
Участник
 
Группа: Members
Зарегистрирован: 07-07-2007
Сообщений: 260
UA: Firefox 21.0

Re: [CB] Букмарклеты в контекстном меню

Да вроде правильно конвертит. Убедитесь, что в конце предыдущей строки есть запятая.

скрытый текст

Выделить код

Код:

["SuperGenPass", function(){function b64_md5(p){p=utf8_en(p);return binl2b64(core_md5(str2binl(p),p.length*8));}function hex_md5(p){p=utf8_en(p);return binl2hex(core_md5(str2binl(p),p.length*8));}function binl2b64(binarray){var tab='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678998';var str='';for(var i=0;i<binarray.length*4;i+=3){var triplet=(((binarray[i>>2]>>8*(i%4))&0xFF)<<16)|(((binarray[i+1>>2]>>8*((i+1)%4))&0xFF)<<8)|((binarray[i+2>>2]>>8*((i+2)%4))&0xFF);for(var j=0;j<4;j++){str+=tab.charAt((triplet>>6*(3-j))&0x3F);}}return str;}function binl2hex(binarray){var hex_tab='0123456789abcdef';var str='';for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF);}return str;}function core_md5(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd);}return[a,b,c,d];}function md5_cmn(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b);}function md5_ff(a,b,c,d,x,s,t){return md5_cmn((b&c)|((~b)&d),a,b,x,s,t);}function md5_gg(a,b,c,d,x,s,t){return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t);}function md5_hh(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t);}function md5_ii(a,b,c,d,x,s,t){return md5_cmn(c^(b|(~d)),a,b,x,s,t);}function bit_rol(num,cnt){return(num<<cnt)|(num>>>(32-cnt));}function utf8_en(str){return unescape(encodeURIComponent(str));}function safe_add(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);}function str2binl(str){var bin=[];var mask=(1<<8)-1;for(var i=0;i<str.length*8;i+=8){bin[i>>5]|=(str.charCodeAt(i/8)&mask)<<(i%32);}return bin;}function gp2_generate_passwd(Passwd,Len){var i=0;while(i<10||!(gp2_check_passwd(Passwd.substring(0,Len)))){Passwd=b64_md5(Passwd);i++;}return Passwd.substring(0,Len);}function gp2_check_passwd(Passwd){return(Passwd.search(/[a-z]/)===0&&Passwd.search(/[0-9]/)>0&&Passwd.search(/[A-Z]/)>0)?true:false;}function gp2_generate_hash(HashSeed){for(var i=0;i<=4;i++){HashSeed=hex_md5(HashSeed);}return HashSeed;}function gp2_validate_length(Len){Len=(parseInt(Len))?parseInt(Len):10;if(Len<4){Len=4;}else if(Len>24){Len=24;}return Len;}function gp2_process_uri(URI,DisableTLD){URI=URI.toLowerCase();var HostNameIsolator=new RegExp('^(http|https|ftp|ftps|webdav|gopher|rtsp|irc|nntp|pop|imap|smtp)://([^/:]+)');var HostName=URI.match(HostNameIsolator);if(HostName&&HostName[2]!=null){HostName=HostName[2];}else{HostNameIsolator=new RegExp('^([^/:]+)');HostName=URI.match(HostNameIsolator);HostName=(HostName[1]!=null)?HostName[1]:URI;}HostNameIsolator=new RegExp('^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$');HostName=(HostName.match(HostNameIsolator))?[HostName]:HostName.split('.');if(HostName[2]==null||DisableTLD){URI=HostName.join('.');}else{URI=HostName[HostName.length-2]+'.'+HostName[HostName.length-1];var TLDList=['ac.ac','com.ac','edu.ac','gov.ac','net.ac','mil.ac','org.ac','com.ae','net.ae','org.ae','gov.ae','ac.ae','co.ae','sch.ae','pro.ae','com.ai','org.ai','edu.ai','gov.ai','com.ar','net.ar','org.ar','gov.ar','mil.ar','edu.ar','int.ar','co.at','ac.at','or.at','gv.at','priv.at','com.au','gov.au','org.au','edu.au','id.au','oz.au','info.au','net.au','asn.au','csiro.au','telememo.au','conf.au','otc.au','id.au','com.az','net.az','org.az','com.bb','net.bb','org.bb','ac.be','belgie.be','dns.be','fgov.be','com.bh','gov.bh','net.bh','edu.bh','org.bh','com.bm','edu.bm','gov.bm','org.bm','net.bm','adm.br','adv.br','agr.br','am.br','arq.br','art.br','ato.br','bio.br','bmd.br','cim.br','cng.br','cnt.br','com.br','coop.br','ecn.br','edu.br','eng.br','esp.br','etc.br','eti.br','far.br','fm.br','fnd.br','fot.br','fst.br','g12.br','ggf.br','gov.br','imb.br','ind.br','inf.br','jor.br','lel.br','mat.br','med.br','mil.br','mus.br','net.br','nom.br','not.br','ntr.br','odo.br','org.br','ppg.br','pro.br','psc.br','psi.br','qsl.br','rec.br','slg.br','srv.br','tmp.br','trd.br','tur.br','tv.br','vet.br','zlg.br','com.bs','net.bs','org.bs','ab.ca','bc.ca','mb.ca','nb.ca','nf.ca','nl.ca','ns.ca','nt.ca','nu.ca','on.ca','pe.ca','qc.ca','sk.ca','yk.ca','gc.ca','co.ck','net.ck','org.ck','edu.ck','gov.ck','com.cn','edu.cn','gov.cn','net.cn','org.cn','ac.cn','ah.cn','bj.cn','cq.cn','gd.cn','gs.cn','gx.cn','gz.cn','hb.cn','he.cn','hi.cn','hk.cn','hl.cn','hn.cn','jl.cn','js.cn','ln.cn','mo.cn','nm.cn','nx.cn','qh.cn','sc.cn','sn.cn','sh.cn','sx.cn','tj.cn','tw.cn','xj.cn','xz.cn','yn.cn','zj.cn','arts.co','com.co','edu.co','firm.co','gov.co','info.co','int.co','nom.co','mil.co','org.co','rec.co','store.co','web.co','ac.cr','co.cr','ed.cr','fi.cr','go.cr','or.cr','sa.cr','com.cu','net.cu','org.cu','ac.cy','com.cy','gov.cy','net.cy','org.cy','co.dk','art.do','com.do','edu.do','gov.do','gob.do','org.do','mil.do','net.do','sld.do','web.do','com.dz','org.dz','net.dz','gov.dz','edu.dz','ass.dz','pol.dz','art.dz','com.ec','k12.ec','edu.ec','fin.ec','med.ec','gov.ec','mil.ec','org.ec','net.ec','com.ee','pri.ee','fie.ee','org.ee','med.ee','com.eg','edu.eg','eun.eg','gov.eg','net.eg','org.eg','sci.eg','com.er','net.er','org.er','edu.er','mil.er','gov.er','ind.er','com.es','org.es','gob.es','edu.es','nom.es','com.et','gov.et','org.et','edu.et','net.et','biz.et','name.et','info.et','ac.fj','com.fj','gov.fj','id.fj','org.fj','school.fj','com.fk','ac.fk','gov.fk','net.fk','nom.fk','org.fk','asso.fr','nom.fr','barreau.fr','com.fr','prd.fr','presse.fr','tm.fr','aeroport.fr','assedic.fr','avocat.fr','avoues.fr','cci.fr','chambagri.fr','chirurgiens-dentistes.fr','experts-comptables.fr','geometre-expert.fr','gouv.fr','greta.fr','huissier-justice.fr','medecin.fr','notaires.fr','pharmacien.fr','port.fr','veterinaire.fr','com.ge','edu.ge','gov.ge','mil.ge','net.ge','org.ge','pvt.ge','co.gg','org.gg','sch.gg','ac.gg','gov.gg','ltd.gg','ind.gg','net.gg','alderney.gg','guernsey.gg','sark.gg','com.gr','edu.gr','gov.gr','net.gr','org.gr','com.gt','edu.gt','net.gt','gob.gt','org.gt','mil.gt','ind.gt','com.gu','edu.gu','net.gu','org.gu','gov.gu','mil.gu','com.hk','net.hk','org.hk','idv.hk','gov.hk','edu.hk','co.hu','2000.hu','erotika.hu','jogasz.hu','sex.hu','video.hu','info.hu','agrar.hu','film.hu','konyvelo.hu','shop.hu','org.hu','bolt.hu','forum.hu','lakas.hu','suli.hu','priv.hu','casino.hu','games.hu','media.hu','szex.hu','sport.hu','city.hu','hotel.hu','news.hu','tozsde.hu','tm.hu','erotica.hu','ingatlan.hu','reklam.hu','utazas.hu','ac.id','co.id','go.id','mil.id','net.id','or.id','co.il','net.il','org.il','ac.il','gov.il','k12.il','muni.il','idf.il','co.im','net.im','org.im','ac.im','lkd.co.im','gov.im','nic.im','plc.co.im','co.in','net.in','ac.in','ernet.in','gov.in','nic.in','res.in','gen.in','firm.in','mil.in','org.in','ind.in','ac.ir','co.ir','gov.ir','id.ir','net.ir','org.ir','sch.ir','ac.je','co.je','net.je','org.je','gov.je','ind.je','jersey.je','ltd.je','sch.je','com.jo','org.jo','net.jo','gov.jo','edu.jo','mil.jo','ad.jp','ac.jp','co.jp','go.jp','or.jp','ne.jp','gr.jp','ed.jp','lg.jp','net.jp','org.jp','gov.jp','hokkaido.jp','aomori.jp','iwate.jp','miyagi.jp','akita.jp','yamagata.jp','fukushima.jp','ibaraki.jp','tochigi.jp','gunma.jp','saitama.jp','chiba.jp','tokyo.jp','kanagawa.jp','niigata.jp','toyama.jp','ishikawa.jp','fukui.jp','yamanashi.jp','nagano.jp','gifu.jp','shizuoka.jp','aichi.jp','mie.jp','shiga.jp','kyoto.jp','osaka.jp','hyogo.jp','nara.jp','wakayama.jp','tottori.jp','shimane.jp','okayama.jp','hiroshima.jp','yamaguchi.jp','tokushima.jp','kagawa.jp','ehime.jp','kochi.jp','fukuoka.jp','saga.jp','nagasaki.jp','kumamoto.jp','oita.jp','miyazaki.jp','kagoshima.jp','okinawa.jp','sapporo.jp','sendai.jp','yokohama.jp','kawasaki.jp','nagoya.jp','kobe.jp','kitakyushu.jp','utsunomiya.jp','kanazawa.jp','takamatsu.jp','matsuyama.jp','com.kh','net.kh','org.kh','per.kh','edu.kh','gov.kh','mil.kh','ac.kr','co.kr','go.kr','ne.kr','or.kr','pe.kr','re.kr','seoul.kr','kyonggi.kr','com.kw','net.kw','org.kw','edu.kw','gov.kw','com.la','net.la','org.la','com.lb','org.lb','net.lb','edu.lb','gov.lb','mil.lb','com.lc','edu.lc','gov.lc','net.lc','org.lc','com.lv','net.lv','org.lv','edu.lv','gov.lv','mil.lv','id.lv','asn.lv','conf.lv','com.ly','net.ly','org.ly','co.ma','net.ma','org.ma','press.ma','ac.ma','com.mk','com.mm','net.mm','org.mm','edu.mm','gov.mm','com.mn','org.mn','edu.mn','gov.mn','museum.mn','com.mo','net.mo','org.mo','edu.mo','gov.mo','com.mt','net.mt','org.mt','edu.mt','tm.mt','uu.mt','com.mx','net.mx','org.mx','gob.mx','edu.mx','com.my','org.my','gov.my','edu.my','net.my','com.na','org.na','net.na','alt.na','edu.na','cul.na','unam.na','telecom.na','com.nc','net.nc','org.nc','ac.ng','edu.ng','sch.ng','com.ng','gov.ng','org.ng','net.ng','gob.ni','com.ni','net.ni','edu.ni','nom.ni','org.ni','com.np','net.np','org.np','gov.np','edu.np','ac.nz','co.nz','cri.nz','gen.nz','geek.nz','govt.nz','iwi.nz','maori.nz','mil.nz','net.nz','org.nz','school.nz','com.om','co.om','edu.om','ac.om','gov.om','net.om','org.om','mod.om','museum.om','biz.om','pro.om','med.om','com.pa','net.pa','org.pa','edu.pa','ac.pa','gob.pa','sld.pa','edu.pe','gob.pe','nom.pe','mil.pe','org.pe','com.pe','net.pe','com.pg','net.pg','ac.pg','com.ph','net.ph','org.ph','mil.ph','ngo.ph','aid.pl','agro.pl','atm.pl','auto.pl','biz.pl','com.pl','edu.pl','gmina.pl','gsm.pl','info.pl','mail.pl','miasta.pl','media.pl','mil.pl','net.pl','nieruchomosci.pl','nom.pl','org.pl','pc.pl','powiat.pl','priv.pl','realestate.pl','rel.pl','sex.pl','shop.pl','sklep.pl','sos.pl','szkola.pl','targi.pl','tm.pl','tourism.pl','travel.pl','turystyka.pl','com.pk','net.pk','edu.pk','org.pk','fam.pk','biz.pk','web.pk','gov.pk','gob.pk','gok.pk','gon.pk','gop.pk','gos.pk','edu.ps','gov.ps','plo.ps','sec.ps','com.pt','edu.pt','gov.pt','int.pt','net.pt','nome.pt','org.pt','publ.pt','com.py','net.py','org.py','edu.py','com.qa','net.qa','org.qa','edu.qa','gov.qa','asso.re','com.re','nom.re','com.ro','org.ro','tm.ro','nt.ro','nom.ro','info.ro','rec.ro','arts.ro','firm.ro','store.ro','www.ro','com.ru','net.ru','org.ru','gov.ru','pp.ru','com.sa','edu.sa','sch.sa','med.sa','gov.sa','net.sa','org.sa','pub.sa','com.sb','net.sb','org.sb','edu.sb','gov.sb','com.sd','net.sd','org.sd','edu.sd','sch.sd','med.sd','gov.sd','tm.se','press.se','parti.se','brand.se','fh.se','fhsk.se','fhv.se','komforb.se','kommunalforbund.se','komvux.se','lanarb.se','lanbib.se','naturbruksgymn.se','sshn.se','org.se','pp.se','com.sg','net.sg','org.sg','edu.sg','gov.sg','per.sg','com.sh','net.sh','org.sh','edu.sh','gov.sh','mil.sh','gov.st','saotome.st','principe.st','consulado.st','embaixada.st','org.st','edu.st','net.st','com.st','store.st','mil.st','co.st','com.sv','org.sv','edu.sv','gob.sv','red.sv','com.sy','net.sy','org.sy','gov.sy','ac.th','co.th','go.th','net.th','or.th','com.tn','net.tn','org.tn','edunet.tn','gov.tn','ens.tn','fin.tn','nat.tn','ind.tn','info.tn','intl.tn','rnrt.tn','rnu.tn','rns.tn','tourism.tn','com.tr','net.tr','org.tr','edu.tr','gov.tr','mil.tr','bbs.tr','k12.tr','gen.tr','co.tt','com.tt','org.tt','net.tt','biz.tt','info.tt','pro.tt','int.tt','coop.tt','jobs.tt','mobi.tt','travel.tt','museum.tt','aero.tt','name.tt','gov.tt','edu.tt','nic.tt','us.tt','uk.tt','ca.tt','eu.tt','es.tt','fr.tt','it.tt','se.tt','dk.tt','be.tt','de.tt','at.tt','au.tt','co.tv','com.tw','net.tw','org.tw','edu.tw','idv.tw','gov.tw','com.ua','net.ua','org.ua','edu.ua','gov.ua','ac.ug','co.ug','or.ug','go.ug','co.uk','me.uk','org.uk','edu.uk','ltd.uk','plc.uk','net.uk','sch.uk','nic.uk','ac.uk','gov.uk','nhs.uk','police.uk','mod.uk','dni.us','fed.us','com.uy','edu.uy','net.uy','org.uy','gub.uy','mil.uy','com.ve','net.ve','org.ve','co.ve','edu.ve','gov.ve','mil.ve','arts.ve','bib.ve','firm.ve','info.ve','int.ve','nom.ve','rec.ve','store.ve','tec.ve','web.ve','co.vi','net.vi','org.vi','com.vn','biz.vn','edu.vn','gov.vn','net.vn','org.vn','int.vn','ac.vn','pro.vn','info.vn','health.vn','name.vn','com.vu','edu.vu','net.vu','org.vu','de.vu','ch.vu','fr.vu','com.ws','net.ws','org.ws','gov.ws','edu.ws','ac.yu','co.yu','edu.yu','org.yu','com.ye','net.ye','org.ye','gov.ye','edu.ye','mil.ye','ac.za','alt.za','bourse.za','city.za','co.za','edu.za','gov.za','law.za','mil.za','net.za','ngo.za','nom.za','org.za','school.za','tm.za','web.za','co.zw','ac.zw','org.zw','gov.zw','eu.org','au.com','br.com','cn.com','de.com','de.net','eu.com','gb.com','gb.net','hu.com','no.com','qc.com','ru.com','sa.com','se.com','uk.com','uk.net','us.com','uy.com','za.com','dk.org','tel.no','fax.nr','mob.nr','mobil.nr','mobile.nr','tel.nr','tlf.nr','e164.arpa'];for(var i=0;i<TLDList.length;i++){if(URI==TLDList[i]){URI=HostName[HostName.length-3]+'.'+URI;break;}}}return URI;}function gp2_genpass(Passwd,Domain,LenL,HashL,SaltL,DisableTLDL){Passwd=(Passwd)?unescape(Passwd):0;Salt=(SaltL)?unescape(SaltL):'';Len=LenL;Hash=HashL;DisableTLD=DisableTLDL;var CurrentPosition=gp2_get_scroll_position();if(Target.getElementById('gp2_pass_box')){Target.getElementById('gp2_pass_box').style.right=(0-CurrentPosition[0])+'px';Target.getElementById('gp2_pass_box').style.top=CurrentPosition[1]+'px';alert(Snippets[0]);return false;}var ScrollX=(ScrollPosition)?CurrentPosition[0]-ScrollPosition[0]:CurrentPosition[0];var ScrollY=(ScrollPosition)?CurrentPosition[1]-ScrollPosition[1]:CurrentPosition[1];var ScreenSize=gp2_get_window_size();var PasswdFieldRelocate=(ScrollPosition)?false:true;var PasswdFieldBlocked=false,RunAgain=false;HashVerified=false;PasswdFields=[];for(var i=0;i<Frames.length;i++){for(var j=0;j<Frames[i].forms.length;j++){for(var k=0;k<Frames[i].forms[j].elements.length;k++){if(Frames[i].forms[j].elements[k].type=='password'){var PasswdField=Frames[i].forms[j].elements[k];var Visible=(PasswdField.style.display.toLowerCase()=='none'||PasswdField.style.visibility.toLowerCase()=='hidden')?false:true;if(Visible){var PasswdFieldParent=PasswdField.parentNode;while(Visible&&PasswdFieldParent&&PasswdFieldParent.nodeName.toLowerCase()!='html'&&PasswdFieldParent.nodeName.toLowerCase()!='#document'){if(gp2_get_computed_style(PasswdFieldParent,'display').toLowerCase()=='none'||gp2_get_computed_style(PasswdFieldParent,'visibility').toLowerCase()=='hidden'){Visible=false;}else{PasswdFieldParent=PasswdFieldParent.parentNode;}}}if(Visible){var PasswdFieldType=0;var PasswdFieldPosition=(PasswdFieldBlocked)?false:gp2_get_object_position(PasswdField);if(PasswdField.value!=''){if(!(PrevPasswd)&&gp2_get_computed_style(PasswdField,'background-image').replace(/\\/,'')=='url('+FieldPopData+')'){if(RunAgain||confirm(Snippets[1])){RunAgain=true;}else{return false;}PasswdFieldType=2;}else if(PrevPasswdPop&&PrevPasswdPop==PasswdField.value){PasswdFieldType=1;}else if(Passwd&&Passwd===PasswdField.value){PasswdFieldType=1;}else if(Passwd){PasswdFieldType=2;}else if(Hash&&Hash==gp2_generate_hash(PasswdField.value)){HashVerified=true;Passwd=PasswdField.value;PasswdFieldType=1;}else if(Hash){PasswdFieldType=2;}else{Passwd=PasswdField.value;PasswdFieldType=1;}}PasswdFields.push([PasswdField,PasswdFieldType]);PasswdField.style.background=FieldFoundStyle;PasswdFieldBlocked=(PasswdFieldRelocate&&(PasswdFieldBlocked||(ScreenSize[0]-PasswdFieldPosition[0]+ScrollX-150<225&&ScrollY<PasswdFieldPosition[1]+50)))?true:false;gp2_detach_method(PasswdField,'keydown',gp2_react);gp2_detach_method(PasswdField,'change',gp2_react);gp2_detach_method(PasswdField,'dblclick',gp2_populate);gp2_detach_method(PasswdField,'dblclick',gp2_use_as_master);}}}}}var TitleBar=gp2_make('div',[],[['margin','0'],['padding','7px 5px 5px 7px'],['width','auto'],['background','#333'],['color','#fff'],FontStyle,['fontWeight','bold'],['cursor','move']],[['mousedown',gp2_drag_start]],[Target.createTextNode('SuperGenPass 2.01'+String.fromCharCode(160)+' '+String.fromCharCode(160)+' '),gp2_make('a',[['href','http://www.supergenpass.com/']],FontStyleToolbarLink,[],[Target.createTextNode(Snippets[14])]),Target.createTextNode(String.fromCharCode(160)+' '),gp2_make('a',[['href','#']],FontStyleToolbarLink,[['click',gp2_close]],[Target.createTextNode(Snippets[15])])]);if(Passwd){Domain=(Domain)?gp2_process_uri(Domain,DisableTLD):gp2_process_uri(Target.location.href,DisableTLD);Len=gp2_validate_length(Len);GenPasswd=gp2_generate_passwd(Passwd+Salt+':'+Domain,Len);if(Hash){HashVerified=(HashVerified||Hash==gp2_generate_hash(Passwd))?1:0;HashMessage=(HashVerified)?Snippets[5]:Snippets[6];HashMessage=gp2_make('span',[],[['color',HashStyle[HashVerified][0]],['background',HashStyle[HashVerified][1]],FontStyleSmall,['fontWeight','bold']],[],[Target.createTextNode(String.fromCharCode(160)+HashMessage+String.fromCharCode(160))]);}else{HashVerified=true;HashMessage=Target.createTextNode('');}Populated=0;Unpopulated=0;for(var i=0;i<PasswdFields.length;i++){var PasswdTarget=PasswdFields[i][0];if(PasswdFields[i][1]==2||(PasswdFields[i][1]==0&&PrevPasswd)||!(HashVerified)){gp2_attach_method(PasswdTarget,'dblclick',gp2_populate);Unpopulated++;}else{PasswdTarget.style.background=FieldPopStyle;PasswdTarget.value=GenPasswd;PasswdTarget.focus();gp2_attach_method(PasswdTarget,'keydown',gp2_react);gp2_attach_method(PasswdTarget,'change',gp2_react);Populated++;}}var GeneratedStyle=(Populated)?FieldPopStyle:'#fff';var PopulateTextStyle=(Unpopulated)?'block':'none';var ChangeAlert=(PrevPasswd&&PrevPasswd!=GenPasswd)?true:false;var PassMask='************************';DisableTLD=(DisableTLD)?'checked':'value';PrevPasswdPop=(Populated)?GenPasswd:PrevPasswd;PrevPasswd=GenPasswd;var Content=[TitleBar,gp2_make('div',[],[['margin','0'],['padding','8px 5px 14px 8px'],['width','auto'],['color','#000'],FontStyle],[],[gp2_make('div',[],[FontStyle,['fontWeight','bold']],[],[Target.createTextNode(Snippets[3])]),gp2_make('div',[['id','gp2_populate_text']],[['display',PopulateTextStyle],['margin','3px 0 0 0'],['color','#666'],FontStyleSmall],[],[Target.createTextNode(Snippets[13])]),gp2_make('div',[['id','gp2_offer_pass']],RevealStyle.concat([['background',GeneratedStyle],['borderColor','#666']]),[],[Target.createTextNode(PassMask.substring(0,Len))]),gp2_make('div',[['id','gp2_show_pass']],RevealStyle.concat([['display','none'],['background',GeneratedStyle],['borderColor','#666']]),[],[Target.createTextNode(GenPasswd)]),gp2_make('a',[['href','#']],FontStyleLink,[['click',gp2_reveal_pass]],[Target.createTextNode(Snippets[16])])]),gp2_make('div',[],[['margin','0'],['padding','0 5px 10px 8px'],['width','auto'],['color','#000'],FontStyle],[],[gp2_make('div',[],[FontStyle,['fontWeight','bold']],[],[Target.createTextNode(Snippets[4])]),gp2_make('div',[['id','gp2_offer_master_pass']],RevealStyle.concat([['background','#fff'],['borderColor','#666']]),[],[Target.createTextNode(PassMask.substring(0,Passwd.length))]),gp2_make('div',[['id','gp2_show_master_pass']],RevealStyle.concat([['display','none'],['background','#fff'],['borderColor','#666']]),[],[Target.createTextNode(Passwd)]),gp2_make('a',[['href','#']],FontStyleLink,[['click',gp2_reveal_master_pass]],[Target.createTextNode(Snippets[16])]),Target.createTextNode(String.fromCharCode(160)+' '),HashMessage]),gp2_make('div',[],[['margin','0'],['padding','8px'],['width','auto'],['color','#333'],['background','#eee'],FontStyle,['fontWeight','bold']],[],[Target.createTextNode(Snippets[7]+' '+String.fromCharCode(160)),gp2_make('a',[['href','#'],['id','gp2_expand_link']],FontStyleLink,[['click',gp2_expand]],[Target.createTextNode(Snippets[16])]),gp2_make('a',[['href','#'],['id','gp2_contract_link']],FontStyleLink.concat([['display','none']]),[['click',gp2_contract]],[Target.createTextNode(Snippets[16])])]),gp2_make('div',[['id','gp2_advanced_box']],[['margin','0'],['padding','0 5px 5px 8px'],['width','auto'],['color','#000'],FontStyle,['display','none'],['background','#eee']],[],[gp2_make('form',[['name','gp2_advanced'],['method','post'],['action','http://localhost:9/'],['autocomplete','off']],[['margin','0'],['padding','0']],[['submit',gp2_retry_advanced]],[Target.createTextNode(Snippets[8]),Target.createElement('br'),gp2_make('input',[['type','password'],['id','gp2_advanced_master_passwd'],['value',Passwd]],[['margin','3px 0 10px 0'],['width','150px'],FontStyleInput],[['keypress',gp2_retry_advanced_listen]],[]),Target.createElement('br'),Target.createTextNode(Snippets[9]),Target.createElement('br'),gp2_make('input',[['type','text'],['id','gp2_advanced_domain'],['size','15'],['value',Domain]],[['margin','3px 0 2px 0'],['width','150px'],FontStyleInput],[['keypress',gp2_retry_advanced_listen]],[]),Target.createElement('br'),gp2_make('input',[['type','checkbox'],['id','gp2_advanced_domain_isolator'],[DisableTLD,'checked']],[['margin','5px 0 10px 0'],['padding','0']],[['keypress',gp2_retry_advanced_listen]],[]),gp2_make('label',[['for','gp2_advanced_domain_isolation']],[['margin','0'],['padding','0'],FontStyleSmall],[],[Target.createTextNode(' '+Snippets[10])]),Target.createElement('br'),Target.createTextNode(Snippets[11]),Target.createElement('br'),gp2_make('input',[['type','text'],['id','gp2_advanced_len'],['size','4'],['value',Len]],[['margin','3px 0 10px 0'],['width','40px'],FontStyleInput],[['keypress',gp2_retry_advanced_listen]],[]),Target.createElement('br'),gp2_make('input',[['type','button'],['value',Snippets[12]]],[['margin','0 0 5px 0']],[['click',gp2_retry_advanced]],[])])])];}else{for(var i=0;i<PasswdFields.length;i++){if(PasswdFields[i][1]==2){gp2_attach_method(PasswdFields[i][0],'dblclick',gp2_use_as_master);}}var Content=[TitleBar,gp2_make('div',[],[['margin','0'],['padding','8px'],['width','auto'],['color','#000'],FontStyle],[],[gp2_make('form',[['name','gp2_retry'],['method','post'],['action','http://localhost:9/'],['autocomplete','off']],[['margin','0'],['padding','0']],[['submit',gp2_retry_passwd]],[Target.createTextNode(Snippets[2]),Target.createElement('br'),gp2_make('input',[['type','password'],['id','gp2_master'],['size','15'],['value','']],[['margin','8px 5px 0 0'],['width','125px'],FontStyleInput],[['keypress',gp2_retry_passwd_listen]],[]),gp2_make('input',[['type','button'],['value',Snippets[12]]],[],[['click',gp2_retry_passwd]],[])])])];gp2_attach_method(TargetWindow,'unload',gp2_close);}BoxPositionX=(PasswdFieldBlocked||BoxPosition[0]=='left')?['left','0px']:['right',(BoxPosition[0]-ScrollX)+'px'];var ParentDiv=gp2_make('div',[['id','gp2_pass_box']],[['zIndex','99999'],['position','absolute'],['top',(BoxPosition[1]+ScrollY)+'px'],BoxPositionX,['width','220px'],['margin','0'],['padding','0'],['background','#fff'],['borderStyle','solid'],['borderColor','#fff'],['borderWidth','8px'],['opacity','0.95'],['filter','alpha(opacity=95)']],[],[gp2_make('div',[],[['margin','0'],['padding','0'],['borderStyle','solid'],['borderColor','#ccc'],['borderWidth','1px'],['textAlign','left']],[],Content)]);Target.body.appendChild(ParentDiv);if(Target.getElementById('gp2_master')){Target.getElementById('gp2_master').focus()};if(Target.getElementById('gp2_offer_pass')&&ChangeAlert){FlashTarget=Target.getElementById('gp2_offer_pass');FlashTarget.style.color='#fff';setTimeout("FlashTarget.style.color='#000'",100);setTimeout("FlashTarget.style.color='#fff'",150);setTimeout("FlashTarget.style.color='#000'",200);}}function gp2_close(e){if(Target.getElementById('gp2_pass_box')){ScrollPosition=gp2_get_scroll_position();BoxPosition=[0,parseInt(Target.getElementById('gp2_pass_box').style.top)];BoxPosition[0]=(Target.getElementById('gp2_pass_box').style.right)?parseInt(Target.getElementById('gp2_pass_box').style.right):'left';Target.body.removeChild(Target.getElementById('gp2_pass_box'));}if(typeof(PasswdFields)!='undefined'){for(var i=0;i<(PasswdFields.length);i++){gp2_detach_method(PasswdFields[i][0],'dblclick',gp2_populate);gp2_detach_method(PasswdFields[i][0],'dblclick',gp2_use_as_master);if(gp2_get_computed_style(PasswdFields[i][0],'background-image').replace(/\\/,'')=='url('+FieldFoundData+')'){PasswdFields[i][0].style.background='#fff';}}}delete PasswdFields;delete GenPasswd;delete PrevPasswd;delete PrevPasswdPop;e.preventDefault();return false;}function gp2_expand(e){Target.getElementById('gp2_expand_link').style.display='none';Target.getElementById('gp2_contract_link').style.display='inline';Target.getElementById('gp2_advanced_box').style.display='block';e.preventDefault();return false;}function gp2_contract(e){Target.getElementById('gp2_expand_link').style.display='inline';Target.getElementById('gp2_contract_link').style.display='none';Target.getElementById('gp2_advanced_box').style.display='none';e.preventDefault();return false;}function gp2_retry_passwd(e){var Passwd=Target.getElementById('gp2_master').value;gp2_close(e);gp2_genpass(escape(Passwd),0,Len,Hash,Salt,DisableTLD);return false;}function gp2_retry_passwd_listen(e){if(e.keyCode==13||e.keyCode==3){gp2_retry_passwd(e);}e.stopPropagation();}function gp2_retry_advanced(e){var Passwd=Target.getElementById('gp2_advanced_master_passwd').value;var Domain=Target.getElementById('gp2_advanced_domain').value;var DisableTLD=(Target.getElementById('gp2_advanced_domain_isolator').checked)?true:false;var Len=Target.getElementById('gp2_advanced_len').value;gp2_close(e);gp2_genpass(escape(Passwd),Domain,Len,Hash,Salt,DisableTLD);return false;}function gp2_retry_advanced_listen(e){if(e.keyCode==13||e.keyCode==3){gp2_retry_advanced(e);}e.stopPropagation();}function gp2_reveal_pass(e){if(Target.getElementById('gp2_offer_pass').style.display=='none'){Target.getElementById('gp2_show_pass').style.display='none';Target.getElementById('gp2_offer_pass').style.display='block';}else{Target.getElementById('gp2_offer_pass').style.display='none';Target.getElementById('gp2_show_pass').style.display='block';}e.preventDefault();return false;}function gp2_reveal_master_pass(e){if(Target.getElementById('gp2_offer_master_pass').style.display=='none'){Target.getElementById('gp2_show_master_pass').style.display='none';Target.getElementById('gp2_offer_master_pass').style.display='block';}else{Target.getElementById('gp2_offer_master_pass').style.display='none';Target.getElementById('gp2_show_master_pass').style.display='block';}e.preventDefault();return false;}function gp2_populate(e){if(GenPasswd&&Target.getElementById('gp2_pass_box')){Populated++;Unpopulated--;this.value=GenPasswd;this.style.background=FieldPopStyle;gp2_attach_method(this,'keydown',gp2_react);gp2_attach_method(this,'change',gp2_react);gp2_detach_method(this,'dblclick',gp2_populate);Target.getElementById('gp2_show_pass').style.background=FieldPopStyle;Target.getElementById('gp2_offer_pass').style.background=FieldPopStyle;if(Unpopulated===0&&Target.getElementById('gp2_populate_text')){Target.getElementById('gp2_populate_text').style.display='none';}}e.preventDefault();return false;}function gp2_use_as_master(e){if(Target.getElementById('gp2_pass_box')){gp2_detach_method(this,'dblclick',gp2_use_as_master);gp2_close(e);gp2_genpass(this.value,0,Len,Hash,Salt,DisableTLD);}e.preventDefault();return false;}function gp2_react(e){if(e.keyCode==8||e.keyCode==32||(e.keyCode>45&&e.keyCode<91)||(e.keyCode>95&&e.keyCode<112)||(e.keyCode>185&&e.keyCode<223)){gp2_detach_method(this,'keydown',gp2_react);gp2_detach_method(this,'change',gp2_react);Populated--;Unpopulated++;if(GenPasswd&&Target.getElementById('gp2_pass_box')){if(Populated<1){Target.getElementById('gp2_show_pass').style.background='#fff';Target.getElementById('gp2_offer_pass').style.background='#fff';}if(Unpopulated&&Target.getElementById('gp2_populate_text')){Target.getElementById('gp2_populate_text').style.display='block';}gp2_attach_method(this,'dblclick',gp2_populate);this.style.background=FieldFoundStyle;}else{this.style.background='#fff';}}return true;}function gp2_make(Name,Attributes,Styles,Methods,Children){var Element=Target.createElement(Name);for(var i=0;i<Attributes.length;i++){Element.setAttribute(Attributes[i][0],Attributes[i][1]);}for(var i=0;i<Styles.length;i++){eval('Element.style.'+Styles[i][0]+"='"+Styles[i][1]+"'");}for(var i=0;i<Methods.length;i++){gp2_attach_method(Element,Methods[i][0],Methods[i][1]);}for(var i=0;i<Children.length;i++){Element.appendChild(Children[i]);}return Element;}function gp2_attach_method(obj,type,fn){var handler=function(e){e=e||window.event;if(!e.stopPropagation){e.stopPropagation=function(){this.cancelBubble=true;}}if(!e.preventDefault){e.preventDefault=function(){this.returnValue=false;}}if(!e.stopEvent){e.stopEvent=function(){this.stopPropagation();this.preventDefault();}}return fn.apply(obj,[e]);};handler.obj=obj;handler.type=type;handler.fn=fn;gp2_detach_method.handlers.push(handler);if(window.addEventListener){obj.addEventListener(type,handler,false);}else if(window.attachEvent){obj.attachEvent('on'+type,handler);}return handler;}function gp2_detach_method(obj,type,fn){for(var i=0;i<gp2_detach_method.handlers.length;i++){var h=gp2_detach_method.handlers[i];if(h.obj==obj&&h.type==type&&h.fn==fn){if(obj.removeEventListener){obj.removeEventListener(h.type,h,false);}if(obj.detachEvent){obj.detachEvent('on'+h.type,h);}gp2_detach_method.handlers.splice(i,1);return h;}}}gp2_detach_method.handlers=[];function gp2_drag_start(e){DragBox=new Object();var Cursor=gp2_get_cursor(e);DragBox.Node=Target.getElementById('gp2_pass_box');if(!(DragBox.Node.style.right)){DragBox.Node.style.left='auto';DragBox.Node.style.right=gp2_get_computed_style(DragBox.Node,'right');}DragBox.StartX=parseInt(DragBox.Node.style.right,10);DragBox.StartY=parseInt(DragBox.Node.style.top,10);DragBox.CursorX=Cursor[0];DragBox.CursorY=Cursor[1];gp2_attach_method(Target,'mousemove',gp2_drag_go);gp2_attach_method(Target,'mouseup',gp2_drag_stop);e.preventDefault();e.stopPropagation();return false;}function gp2_drag_go(e){var CursorMove=gp2_get_cursor(e);DragBox.Node.style.right=(DragBox.StartX+(DragBox.CursorX-CursorMove[0]))+'px';DragBox.Node.style.top=(DragBox.StartY+(CursorMove[1]-DragBox.CursorY))+'px';e.preventDefault();return false;}function gp2_drag_stop(e){gp2_detach_method(Target,'mousemove',gp2_drag_go);gp2_detach_method(Target,'mouseup',gp2_drag_stop);e.preventDefault();return false;}function gp2_get_cursor(e){var x=0;var y=0;if(e.pageX||e.pageY){x=e.pageX;y=e.pageY;}else if(e.clientX||e.clientY){x=e.clientX+document.body.scrollLeft;y=e.clientY+document.body.scrollTop;}return[x,y];}function gp2_get_window_size(){var x=0;var y=0;if(typeof(TargetWindow.innerWidth!='undefined')){x=TargetWindow.innerWidth;y=TargetWindow.innerHeight;}else if(typeof(Target.documentElement!='undefined')&&typeof(Target.documentElement.clientWidth!='undefined')&&Target.documentElement.clientWidth!=0){x=Target.documentElement.clientWidth;y=Target.documentElement.clientHeight;}else{x=Target.getElementsByTagName('body')[0].clientWidth;y=Target.getElementsByTagName('body')[0].clientHeight;}return[x,y];}function gp2_get_scroll_position(){var x=0;var y=0;if(typeof(TargetWindow.pageXOffset)=='number'||typeof(TargetWindow.pageYOffset)=='number'){x=TargetWindow.pageXOffset;y=TargetWindow.pageYOffset;}else if(Target.body&&(Target.body.scrollLeft||Target.body.scrollTop)){x=Target.body.scrollLeft;y=Target.body.scrollTop;}else if(Target.documentElement&&(Target.documentElement.scrollLeft||Target.documentElement.scrollTop)){x=Target.documentElement.scrollLeft;y=Target.documentElement.scrollTop;}return[x,y];}function gp2_get_object_position(obj){var x=0;var y=0;if(obj.offsetParent){while(1){x+=obj.offsetLeft;y+=obj.offsetTop;if(!obj.offsetParent){break;}obj=obj.offsetParent;}}else if(obj.x&&obj.y){x+=obj.x;y+=obj.y;}return[x,y];}function gp2_get_computed_style(obj,style){var styleVal='';if(document.defaultView&&document.defaultView.getComputedStyle){styleVal=document.defaultView.getComputedStyle(obj,'').getPropertyValue(style);}else if(obj.currentStyle){style=style.replace(/\-(\w)/g,function(strMatch,p1){return p1.toUpperCase();});styleVal=obj.currentStyle[style];}return styleVal;}var DragBox;var Target=(document)?document:false;var TargetWindow=(window)?window:false;var FrameCount=window.frames.length-document.getElementsByTagName('iframe').length;var Frames=(FrameCount)?[]:[Target];var Debug=[];var MaxArea=0;for(var i=0;i<window.frames.length;i++){try{var FrameTest=window.frames[i].src;if(FrameCount){var Area=(window.frames[i].innerHeight)?window.frames[i].innerHeight*window.frames[i].innerWidth:window.frames[i].document.body.clientHeight*window.frames[i].document.body.clientWidth;if(Area>MaxArea){Target=window.frames[i].document;TargetWindow=window.frames[i];MaxArea=Area;}}Frames.push(window.frames[i].document);}catch(err){Debug.push('EXT_FRAME');}}var FontStyle=['font','13px Trebuchet MS, Helvetica,sans-serif'];var FontStyleSmall=['font','11px Trebuchet MS, Helvetica,sans-serif'];var FontStyleInput=['font','14px monospace'];var HashStyle=[['#f00','#fcc'],['#060','#cfc']];var FontStyleLink=[FontStyleSmall,['color','#666'],['fontWeight','normal'],['textDecoration','underline'],['borderWidth','0'],['cursor','pointer']];var FontStyleToolbarLink=[FontStyleSmall,['color','#ccc'],['fontWeight','normal'],['textDecoration','underline'],['borderWidth','0'],['cursor','pointer']];var RevealStyle=[['margin','8px 5px 2px 0'],['padding','5px 5px 3px 5px'],['width','auto'],['borderStyle','solid'],['borderWidth','1px'],FontStyleInput];var MessageStyle=[['margin','0 0 8px 0'],['padding','0'],FontStyle];var FieldPopData='data:image/gif;base64,R0lGODlhDQAOAJEAAAjOCPn%2B%2Bd343f%2F%2F%2FyH5BAEAAAMALAAAAAANAA4AAAIlhI83CRKhFoKAjouE0eBi81CdJ3ERWSWkx6ws4r5GLNOvzeJeAQA7';var FieldFoundData='data:image/gif;base64,R0lGODlhDQAOAIABAMzMzAAAACH5BAEAAAEALAAAAAANAA4AAAIchI8XyRDb1IvmzWgvyxrxXn2QJHqidlphurBWAQA7';var TestImage=new Image;TestImage.src=FieldPopData;var FieldFoundStyle=(TestImage.complete)?'#fff url('+FieldFoundData+') no-repeat top right':'#fff url(http://files.supergenpass.com/img/sgp0.gif) no-repeat top right';var FieldPopStyle=(TestImage.complete)?'#fff url('+FieldPopData+') no-repeat top right':'#fff url(http://files.supergenpass.com/img/sgp1.gif) no-repeat top right';delete TestImage;var Len=false,Hash=false,Salt=false,DisableTLD=false,GenPasswd=false,PrevPasswd=false,PrevPasswdPop=false,Populated=false,Unpopulated=false,ScrollPosition=false;var BoxPosition=[0,0];var Snippets=['You already have a SuperGenPass window open.','Are you sure you want to run SuperGenPass again?','Enter your master password.','Your generated password','Your master password','VERIFIED','INVALID','Regenerate password','Master password','Domain / URL','Disable subdomain removal','Password length','Submit','Double-click to populate','help','close','show/hide'];if(Target&&TargetWindow){gp2_genpass(0,0,0,0,0,0);}else{if(confirm(Messages[3])){window.location='http://www.supergenpass.com/mobile/';}}}]

Отсутствует

 

№1814-06-2013 19:39:23

iDev.Pi
баг-репортёр
 
Группа: Extensions
Зарегистрирован: 31-01-2010
Сообщений: 2718
UA: Firefox 21.0

Re: [CB] Букмарклеты в контекстном меню

Lex1
спасибо, теперь всё ок.


mzfx

Отсутствует

 

№1901-10-2013 16:37:15

iDev.Pi
баг-репортёр
 
Группа: Extensions
Зарегистрирован: 31-01-2010
Сообщений: 2718
UA: Firefox 24.0

Re: [CB] Букмарклеты в контекстном меню

А помогите AntiZalgo скрипт сконвертировать для инъекции в кнопку: в нём присутствуют нестандартные символы и как я ни пытался - в контекстное меню его добавить не получается.

Выделить код

Код:

javascript:(function(e)%7Bvar%20f%3Darguments.callee%3Be%7C%7Cdocument.addEventListener('DOMNodeInserted'%2Cf%2C0)%3Bif(!f.p)f.p%3DsetTimeout(function()%7Bf.p%3D0%3Bvar%20s%3Ddocument.evaluate('%2F%2Ftext()'%2Cdocument.body%2Cnull%2CXPathResult.ORDERED_NODE_SNAPSHOT_TYPE%2Cnull)%2Cj%2Cn%2Cr%3D%2F%5B%CC%80-%CC%94%CC%96-%CC%9A%CC%9C-%CC%A0%CC%A3-%CC%A6%CC%A9-%CC%B3%CC%B9-%CD%8E%CD%90-%CD%97%CD%99-%CD%9B%CD%A3-%CD%AF%D2%83-%D2%86%D8%90-%D8%9A%D9%8B-%D9%9E%D9%B0%DB%96-%DB%9C%DB%9F-%DB%A4%DB%A7-%DB%A8%DB%AA-%DB%AD%DC%91%DC%B0-%DC%B1%DC%B3-%DC%BF%DD%83-%DD%8A%E0%B8%B1%E0%B8%B4-%E0%B8%B9%E0%B9%87-%E0%B9%8E%E0%BB%89%E0%BD%B2%E0%BD%BA-%E0%BD%BD%E0%BE%80%E0%BE%90-%E0%BE%97%E0%BE%99-%E0%BE%BC%E1%B7%80-%E1%B7%8A%E1%B7%BE-%E1%B7%BF%E2%83%92%5D%2B%2Fg%3Bfor(j%3Ds.snapshotLength%3Bj--%3E0%3B)if(r.test(c%3D(n%3Ds.snapshotItem(j)).nodeValue))n.nodeValue%3Dc.replace(r%2C'%3AP')%7D%2C10)%3B%7D)()

Добавлено 01-10-2013 16:41:36
И с AutoCompleteOn проблемы:

Выделить код

Код:

javascript:(function(){var%20ca,cea,cs,df,dfe,i,j,x,y;function%20n(i,what){return%20i+"%20"+what+((i==1)?"":"s")}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed%20autocomplete=off%20from%20"+n(ca,"form")+"%20and%20from%20"+n(cea,"form%20element")+",%20and%20removed%20onsubmit%20from%20"+n(cs,"form")+".%20After%20you%20type%20your%20password%20and%20submit%20the%20form,%20the%20browser%20will%20offer%20to%20remember%20your%20password.")})();

сконвертировал в

Выделить код

Код:

["AutoCompleteOn", function(){function(){var ca,cea,cs,df,dfe,i,j,x,y;function n(i,what){return i+" "+what+((i==1)?"":"s")}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed autocomplete=off from "+n(ca,"form")+" and from "+n(cea,"form element")+", and removed onsubmit from "+n(cs,"form")+". After you type your password and submit the form, the browser will offer to remember your password.")})}],

а контекстное меню - не появляется

Отредактировано iDev.Pi (01-10-2013 16:41:36)


mzfx

Отсутствует

 

№2001-10-2013 19:44:03

Ferguss114
Участник
 
Группа: Members
Зарегистрирован: 31-03-2012
Сообщений: 200
UA: Firefox 22.0

Re: [CB] Букмарклеты в контекстном меню

iDev.Pi пишет:

И с AutoCompleteOn проблемы:

А что конкретно делает этот букмарклет?

Отсутствует

 

№2101-10-2013 19:57:32

Infocatcher
Not found
 
Группа: Extensions
Зарегистрирован: 24-05-2007
Сообщений: 4291
UA: Firefox 24.0

Re: [CB] Букмарклеты в контекстном меню

iDev.Pi

Выделить код

Код:

    ["AntiZalgo", function(e){var f=arguments.callee;e||document.addEventListener('DOMNodeInserted',f,0);if(!f.p)f.p=setTimeout(function(){f.p=0;var s=document.evaluate('//text()',document.body,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),j,n,r=/[̀-̖̔-̜̚-̠̣-̦̩-̳̹-͎͐-͙͗-͛ͣ-ͯ҃-҆ؐ-ًؚ-ٰٞۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-ܱܳ-ܿ݃-݊ัิ-ู็-๎້ིེ-ཽྀྐ-ྗྙ-ྼ᷀-᷊᷾-⃒᷿]+/g;for(j=s.snapshotLength;j-->0;)if(r.test(c=(n=s.snapshotItem(j)).nodeValue))n.nodeValue=c.replace(r,':P')},10);}],
    ["AutoCompleteOn", function(){var ca,cea,cs,df,dfe,i,j,x,y;function n(i,what){return i+" "+what+((i==1)?"":"s")}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed autocomplete=off from "+n(ca,"form")+" and from "+n(cea,"form element")+", and removed onsubmit from "+n(cs,"form")+". After you type your password and submit the form, the browser will offer to remember your password.")}]

Или какие там проблемы?

Декодировать можно в консоли ошибок через decodeURIComponent("тут закодированная строка"):

Выделить код

Код:

decodeURIComponent("javascript:(function(e)%7Bvar%20f%3Darguments.callee%3Be%7C%7Cdocument.addEventListener('DOMNodeInserted'%2Cf%2C0)%3Bif(!f.p)f.p%3DsetTimeout(function()%7Bf.p%3D0%3Bvar%20s%3Ddocument.evaluate('%2F%2Ftext()'%2Cdocument.body%2Cnull%2CXPathResult.ORDERED_NODE_SNAPSHOT_TYPE%2Cnull)%2Cj%2Cn%2Cr%3D%2F%5B%CC%80-%CC%94%CC%96-%CC%9A%CC%9C-%CC%A0%CC%A3-%CC%A6%CC%A9-%CC%B3%CC%B9-%CD%8E%CD%90-%CD%97%CD%99-%CD%9B%CD%A3-%CD%AF%D2%83-%D2%86%D8%90-%D8%9A%D9%8B-%D9%9E%D9%B0%DB%96-%DB%9C%DB%9F-%DB%A4%DB%A7-%DB%A8%DB%AA-%DB%AD%DC%91%DC%B0-%DC%B1%DC%B3-%DC%BF%DD%83-%DD%8A%E0%B8%B1%E0%B8%B4-%E0%B8%B9%E0%B9%87-%E0%B9%8E%E0%BB%89%E0%BD%B2%E0%BD%BA-%E0%BD%BD%E0%BE%80%E0%BE%90-%E0%BE%97%E0%BE%99-%E0%BE%BC%E1%B7%80-%E1%B7%8A%E1%B7%BE-%E1%B7%BF%E2%83%92%5D%2B%2Fg%3Bfor(j%3Ds.snapshotLength%3Bj--%3E0%3B)if(r.test(c%3D(n%3Ds.snapshotItem(j)).nodeValue))n.nodeValue%3Dc.replace(r%2C'%3AP')%7D%2C10)%3B%7D)()")

Прошлое – это локомотив, который тянет за собой будущее. Бывает, что это прошлое вдобавок чужое. Ты едешь спиной вперед и видишь только то, что уже исчезло. А чтобы сойти с поезда, нужен билет. Ты держишь его в руках. Но кому ты его предъявишь?
Виктор Пелевин. Желтая стрела

Отсутствует

 

№2201-10-2013 20:04:06

iDev.Pi
баг-репортёр
 
Группа: Extensions
Зарегистрирован: 31-01-2010
Сообщений: 2718
UA: Firefox 24.0

Re: [CB] Букмарклеты в контекстном меню

Ferguss114
меняет у форм на странице значение атрибута autocomplete с off на on.

Infocatcher
спасибо, видимо я запутался в скобках.


mzfx

Отсутствует

 

Board footer

Powered by PunBB
Modified by Mozilla Russia
Copyright © 2004–2011 Mozilla Russia
Язык отображения форума: [Русский] [English]