Skip to content

Commit

Permalink
release: zotero-better-bibtex-1.6.29.xpi
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jan 9, 2016
1 parent ca805d9 commit 7c7ff36
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
41 changes: 30 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ what is called "connector mode", which is currently [not
supported](https://github.com/ZotPlus/zotero-better-bibtex/issues/143). Or, to be fully exact, you can have it installed
in both, but running both at the same time will have BBT break at indeterminate occasions. Recoverable, but not fun.

Start by downloading the [latest version](https://github.com/ZotPlus/zotero-better-bibtex/releases/download/1.6.28/zotero-better-bibtex-1.6.28.xpi) (**1.6.28**), and then
Start by downloading the <a href="" class="version">latest version</a> (**<span class="version"/>**), and then

## BBT for Zotero Firefox

Expand Down Expand Up @@ -74,14 +74,33 @@ or there are problems preventing me from implementing a fix.
utf-8 format before importing.

<script type="text/javascript">

switch (window.location.hash.trim()) {
case '#xpi':
window.location = 'https://github.com/ZotPlus/zotero-better-bibtex/releases/download/1.6.28/zotero-better-bibtex-1.6.28.xpi';
break;
case '#debug':
window.location = 'https://drive.google.com/a/iris-advies.com/folderview?id=0B8tW4NMPfEosfkFETUV0V2l0N3NHZHEyQk5SUm03TjZmS1RoVmlBTmdHclUtcTRzZ2VHclU&usp=drive_web#list';
break;
}

var xmlhttp = new XMLHttpRequest();
xmlhttp.overrideMimeType('text/xml');
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var version = xmlhttp.responseXML.getElementsByTagNameNS('http://www.mozilla.org/2004/em-rdf#', 'version');
if (version.length === 0) { return; }
version = version[0].textContent;

var download = 'https://github.com/ZotPlus/zotero-better-bibtex/releases/download/' + version + '/zotero-better-bibtex-' + version + '.xpi';
if (window.location.hash.trim() == '#xpi') {
window.location = download;
return;
}

[].forEach.call(document.getElementsByClassName('version'), function(element) {
switch (element.nodeName.toLowerCase()) {
case 'a':
element.setAttribute('href', download);
break;
case 'span':
element.textContent = version;
break;
}
});
}
};
// xmlhttp.open('GET', 'https://github.com/ZotPlus/zotero-better-bibtex/releases/download/update.rdf/update.rdf' , true);
xmlhttp.open('GET', 'https://crossorigin.me/https://github.com/ZotPlus/zotero-better-bibtex/releases/download/update.rdf/update.rdf' , true);
xmlhttp.send();
</script>
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:name>Zotero Better Bib(La)Tex</em:name>
<em:version>1.6.28</em:version>
<em:version>1.6.29</em:version>
<em:description>Make Zotero useful for us LaTeX holdouts.</em:description>
<em:homepageURL>https://zotplus.github.io/better-bibtex/</em:homepageURL>
<em:creator>Emiliano Heyns</em:creator>
Expand Down

0 comments on commit 7c7ff36

Please sign in to comment.