Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <bindings id="generalBindings"
- xmlns="http://www.mozilla.org/xbl"
- xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:xbl="http://www.mozilla.org/xbl">
- <binding id="ucjs">
- <implementation>
- <constructor><![CDATA[
- (function(e){
- if(document.getElementById("statechecker-"+e.id)){return}
- let checkbox = document.createElement("input");
- checkbox.setAttribute("type","checkbox");
- checkbox.addEventListener("click",function(){
- if(this.hasAttribute("checked")){
- this.removeAttribute("checked",true);
- }else{
- this.setAttribute("checked",true);
- }
- });
- checkbox.id="statechecker-" + e.id;
- checkbox.className = "statecheck-check";
- e.insertBefore(checkbox,e.firstChild);
- TabsInTitlebar.update();
- })(this);
- document.getElementById("appMenu-popup").setAttribute("position","bottomcenter topleft");
- ]]></constructor>
- </implementation>
- </binding>
- </bindings>
Add Comment
Please, Sign In to add comment