Ceci est une ancienne révision du document !


Firefox

Utiliser l'extension Envify : https://addons.mozilla.org/fr/firefox/addon/envify/

Changer le comportement de window.open : ouvre un onglet au lieu d'ouvrir une popup.

Dans about:config :

browser.link.open_newwindow = 3
browser.link.open_newwindow.restriction = 0

Pour ne plus fermer les onglets accidentellement…

Ce paramètre n'existe plus…

Dans about:config :

browser.tabs.closeButtons = 2

Change le comportement du clic milieu sur les barres de défilement : saute directement à ce niveau vertical de la page.

Dans about:config :

middlemouse.scrollbarPosition = true

<html> <a href='javascript:(function(){ var e,s; IB=1; function isDigit© { return (“0” ⇐ c &amp;&amp; c ⇐ “9”) } L = location.href; LL = L.length; for (e=LL-1; e>=0; –e) if (isDigit(L.charAt(e))) { for(s=e-1; s>=0; –s) if (!isDigit(L.charAt(s))) break; break; } ++s; if (e<0) return; oldNum = L.substring(s,e+1); newNum = “” + (parseInt(oldNum,10) + IB); while (newNum.length < oldNum.length) newNum = “0” + newNum; location.href = L.substring(0,s) + newNum + L.slice(e+1); })();'>Incrémenter l'URL courante</a> </html>

<html> <a href='javascript:(function(){ var e,s; IB=-1; function isDigit© { return (“0” ⇐ c &amp;&amp; c ⇐ “9”) } L = location.href; LL = L.length; for (e=LL-1; e>=0; –e) if (isDigit(L.charAt(e))) { for(s=e-1; s>=0; –s) if (!isDigit(L.charAt(s))) break; break; } ++s; if (e<0) return; oldNum = L.substring(s,e+1); newNum = “” + (parseInt(oldNum,10) + IB); while (newNum.length < oldNum.length) newNum = “0” + newNum; location.href = L.substring(0,s) + newNum + L.slice(e+1); })();'>Décrémenter l'URL courante</a> </html>

<html> <a href=“javascript:(function(y,p,o){p=y.body.appendChild(y.createElement('iframe'));p.id='YSLOW-bookmarklet';p.style.cssText='display:none';o=p.contentWindow.document;o.open().write('<head><body onload=&quot;YUI_config={win:window.parent,doc:window.parent.document};var d=document;d.getElementsByTagName(\'head\')[0].appendChild(d.createElement(\'script\')).src=\'http://yslow.org/yslow-bookmarklet.js\'&quot;>');o.close()}(document))”>YSlow</a> </html>

<html> <a href=“javascript:(function(){function%20checkFrames(w)%20{try%20{var%20inputs%20=%20w.document.getElementsByTagName('input');for%20(var%20i=0;%20i%20<%20inputs.length;%20i++)%20{if%20(inputs[i].type%20&&%20inputs[i].type%20==%20'checkbox'){inputs[i].checked%20=%20!inputs[i].checked;}}}%20catch%20(e){}if(w.frames%20&&%20w.frames.length>0){for(var%20i=0;i<w%20.frames.length;i++){var%20fr=w.frames[i];checkFrames(fr);}}}checkFrames(window);})()”>Tout cocher / décocher</a> </html>

<html> <a href=“javascript:var%20fullTOCText%20=%20%22Table%20of%20Contents%22;%20var%20hideBtnText%20=%20%22\u00a0X\u00a0%22;%20var%20RXmatch%20=%20/^h[1-4]$/i;%20var%20XPmatch%20=%20%22h1|h2|h3|h4%22;%20var%20resetSelect%20=%20true;%20var%20showHide%20=%20true;%20var%20useCookie%20=%20false;%20var%20addMenuItem%20=%20true;%20function%20f()%20{%20if%20(document.getElementsByTagName(%22html%22).length%20&&%20(%20document.getElementsByTagName('h1').length%20||%20document.getElementsByTagName('h2').length%20||%20document.getElementsByTagName('h3').length%20||%20document.getElementsByTagName('h4').length%20)%20&&%20(!useCookie%20||%20(useCookie%20&&%20getCookie('autotoc_hide')!='true')))%20{%20var%20aHs%20=%20getHTMLHeadings();%20if%20(aHs.length%3E1)%20{%20var%20body%20=%20document.getElementsByTagName('body')[0];%20body.style.marginBottom%20=%20%2224px%20!important%22;%20addCSS(%20'#js-toc%20{position:%20fixed;%20left:%200;%20right:%200;%20top:%20auto;%20bottom:%200;%20width:%20100%;%20display:%20block;%20border-top:%201px%20solid%20#777;%20background:%20#ddd;%20margin:%200;%20padding:%203px;%20z-index:%209999;%20}\n'+%20'#js-toc%20select%20{%20font:%208pt%20verdana,%20sans-serif;%20margin:%200;%20margin-left:5px;%20background:%20#fff;%20color:%20#000;%20float:%20left;%20padding:%200;%20vertical-align:%20bottom;}\n'+%20'#js-toc%20option%20{%20font:%208pt%20verdana,%20sans-serif;%20color:%20#000;%20}\n'+%20'#js-toc%20.hideBtn%20{%20font:%20bold%208pt%20verdana,%20sans-serif%20!important;%20float:%20left;%20margin-left:%202px;%20margin-right:%202px;%20padding:%201px;%20border:%201px%20solid%20#999;%20background:%20#e7e7e7;%20}\n'+%20'#js-toc%20.hideBtn%20a%20{%20color:%20#333;%20text-decoration:%20none;%20background:%20transparent;}%20#js-toc%20.hideBtn%20a:hover%20{%20color:%20#333;%20text-decoration:%20none;%20background:%20transparent;}'%20);%20var%20toc%20=%20document.createElement(window.opera||showHide?'tocdiv':'div');%20toc.id%20=%20'js-toc';%20if%20(showHide)%20{%20var%20hideDiv%20=%20document.createElement('div');%20hideDiv.setAttribute('class','hideBtn');%20var%20hideLink%20=%20document.createElement('a');%20hideLink.setAttribute(%22href%22,%22#%22);%20hideLink.setAttribute(%22onclick%22,useCookie?%22document.getElementById('js-toc').style.display%20=%20'none';%20document.cookie%20=%20'autotoc_hide=true;%20path=/';%20return%20false;%22:%22document.getElementById('js-toc').style.display%20=%20'none';%22);%20hideLink.appendChild(document.createTextNode(hideBtnText));%20hideDiv.appendChild(hideLink);%20toc.appendChild(hideDiv);%20}%20tocSelect%20=%20document.createElement('select');%20tocSelect.setAttribute(%22onchange%22,%20%22if(this.value){function%20flash(rep,delay)%20{%20for%20(var%20i=rep;i%3E0;i–)%20{window.setTimeout('el.style.background=\%22#ff7\%22;',delay*i*2);window.setTimeout('el.style.background=elbg',delay*1);};};%20elid%20=%20this.value;%20el=document.getElementById(elid);%20elbg=el.style.background;%20location.href='#'+elid;%20flash(5,100);%22+(resetSelect?%22this.selectedIndex=0;}%22:%22}%22));%20tocSelect.id%20=%20'toc-select';%20tocEmptyOption%20=%20document.createElement('option');%20tocEmptyOption.setAttribute('value',);%20tocEmptyOption.appendChild(document.createTextNode(fullTOCText));%20tocSelect.appendChild(tocEmptyOption);%20toc.appendChild(tocSelect);%20document.body.appendChild(toc);%20for%20(var%20i=0,aH;aH=aHs[i];i++)%20{%20if%20(aH.offsetWidth)%20{%20op%20=%20document.createElement(%22option%22);%20op.appendChild(document.createTextNode(gs(aH.tagName)+getInnerText(aH).substring(0,100)));%20var%20refID%20=%20aH.id%20?%20aH.id%20:%20aH.tagName+'-'+(i*1+1);%20op.setAttribute(%22value%22,%20refID);%20document.getElementById(%22toc-select%22).appendChild(op);%20aH.id%20=%20refID;%20}%20}%20}%20}%20};%20function%20autoTOC_toggleDisplay()%20{%20if%20(document.getElementById('js-toc'))%20{%20if%20(document.getElementById('js-toc').style.display%20==%20'none')%20{%20document.getElementById('js-toc').style.display%20=%20'block';%20if%20(useCookie)%20{document.cookie%20=%20'autotoc_hide=;%20path=/';}%20}%20else%20{%20document.getElementById('js-toc').style.display%20=%20'none';%20if%20(useCookie)%20{document.cookie%20=%20'autotoc_hide=true;%20path=/';}%20};%20}%20else%20{%20if%20(useCookie)%20{document.cookie%20=%20'autotoc_hide=;%20path=/';}%20f();%20}%20}%20function%20getHTMLHeadings()%20{%20function%20acceptNode(node)%20{%20if%20(node.tagName.match(RXmatch))%20{%20if%20(node.value+!=)%20{%20return%20NodeFilter.FILTER_ACCEPT;%20}%20}%20return%20NodeFilter.FILTER_SKIP;%20}%20outArray%20=%20new%20Array();%20if%20(document.evaluate)%20{%20var%20nodes%20=%20document.evaluate(XPmatch,%20document,%20null,%20XPathResult.ANY_TYPE,%20null);%20var%20thisHeading%20=%20nodes.iterateNext();%20var%20j%20=%200;%20while%20(thisHeading)%20{%20if%20(thisHeading.textContent+!=)%20{%20outArray[j++]%20=%20thisHeading;%20}%20thisHeading%20=%20nodes.iterateNext();%20}%20}%20else%20{%20var%20els%20=%20document.getElementsByTagName(%22*%22);%20var%20j%20=%200;%20for%20(var%20i=0,el;el=els[i];i++)%20{%20if%20(el.tagName.match(RXmatch))%20outArray[j++]%20=%20el;%20}%20}%20return%20outArray;%20}%20function%20addCSS(css)%20{%20var%20head,%20styleLink;%20head%20=%20document.getElementsByTagName('head')[0];%20if%20(!head)%20{%20return;%20}%20styleLink%20=%20document.createElement('link');%20styleLink.setAttribute('rel','stylesheet');%20styleLink.setAttribute('type','text/css');%20styleLink.setAttribute('href','data:text/css,'+escape(css));%20head.appendChild(styleLink);%20}%20function%20gs(s){%20s%20=%20s.toLowerCase();%20var%20ret%20=%20%22%22;%20for%20(var%20i=1;%20i%3C(s.substring(1)*1);i++)%20{%20ret%20=%20ret%20+%20%22\u00a0%20\u00a0%20%22;%20}%20return%20ret;%20}%20function%20getInnerText(el)%20{%20var%20s=;%20for%20(var%20i=0,node;%20node=el.childNodes[i];%20i++)%20{%20if%20(node.nodeType%20==%201)%20s%20+=%20getInnerText(node);%20else%20if%20(node.nodeType%20==%203)%20s%20+=%20node.nodeValue;%20}%20return%20s;%20}%20function%20getCookie(cname)%20{%20var%20namesep%20=%20cname%20+%20%22=%22;%20var%20ca%20=%20document.cookie.split(';');%20for(var%20i=0,%20c;%20c=ca[i];%20i++)%20{%20c%20=%20c.replace(/^\s*|\s*$/g,%22%22);%20if%20(c.indexOf(namesep)%20==%200)%20{%20return%20c.substring(namesep.length,c.length);%20}%20}%20return%20null;%20}%20f();”>Menu de navigation dans le sommaire de la page</a> </html>

<html> <a href=“javascript:(function()%7Bif%20(window.location.href.indexOf(%22watch%3Fv%3D%22)%20%3E%20-1%20%26%26%20window.location.href.indexOf(%22%26list%3D%22)%20%3C%200)%20%7Bwindow.location%20%2B%3D%20%22%26list%3D%22%20%2B%20%22UU%22%20%2B%20document.documentElement.innerHTML.match('channelId%22%20content%3D%22(.*%3F)%22')%5B1%5D.substr(2)%3B%7D%7D)()”>Youtube : sur la dernière vidéo d'un utilisateur, charger tous ses uploads</a> </html>


1)
i*2)+1
  • memo/firefox.1557775994.txt.gz
  • Dernière modification : il y a 7 ans
  • de Arnaud Jacquemin