Guest User

Untitled

a guest
Jul 30th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <bindings id="generalBindings"
  3. xmlns="http://www.mozilla.org/xbl"
  4. xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  5. xmlns:xbl="http://www.mozilla.org/xbl">
  6. <binding id="ucjs">
  7. <implementation>
  8. <constructor><![CDATA[
  9. (function(e){
  10. if(document.getElementById("statechecker-"+e.id)){return}
  11. let checkbox = document.createElement("input");
  12. checkbox.setAttribute("type","checkbox");
  13. checkbox.addEventListener("click",function(){
  14. if(this.hasAttribute("checked")){
  15. this.removeAttribute("checked",true);
  16. }else{
  17. this.setAttribute("checked",true);
  18. }
  19. });
  20. checkbox.id="statechecker-" + e.id;
  21. checkbox.className = "statecheck-check";
  22. e.insertBefore(checkbox,e.firstChild);
  23. TabsInTitlebar.update();
  24. })(this);
  25. document.getElementById("appMenu-popup").setAttribute("position","bottomcenter topleft");
  26. ]]></constructor>
  27. </implementation>
  28. </binding>
  29. </bindings>
Add Comment
Please, Sign In to add comment