tabs-moz-repl.js 581 B

12345678910111213
  1. //
  2. // copyleft 2013 jeff cliff
  3. //
  4. // This code is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or (at
  7. // your option) any later version.
  8. // See COPYING.GPL / https://www.gnu.org/licenses/
  9. //
  10. // prints and closes all tab URLs that are currently open in a firefox session
  11. // assumes you have MOZ REPL installed and working
  12. var l=window.length; for (i=0; i<l; i++) { repl.print(window.gURLBar.textValue) ; gBrowser.removeCurrentTab();}