From a637fefe5b089e2648841b1c41a6d76d10b1fd1a Mon Sep 17 00:00:00 2001 From: Alain Borel Date: Mon, 12 Jun 2023 15:02:09 +0200 Subject: [PATCH] ready for v1.1 --- README.md | 1 + zenodo_greasemonkey.user.js | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 41e4307..6780bb7 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,4 @@ ## Use cases - Zenodo EPFL community curation zenodo_checklist.html +- Zenodo EPFL community curation within the Zenodo record: zenodo_greasemonkey.user.js (Greasemonkey/Tampermonkey user script, install the browser plugin first, then copy the code into a new user script) diff --git a/zenodo_greasemonkey.user.js b/zenodo_greasemonkey.user.js index bb46a89..e4f69e0 100644 --- a/zenodo_greasemonkey.user.js +++ b/zenodo_greasemonkey.user.js @@ -10,7 +10,7 @@ // @include https://zenodo.org/record/* // @include https://sandbox.zenodo.org/record/* // @grant none -// @version 1 +// @version 1.1 // ==/UserScript== // TODO use https://stackoverflow.com/questions/18231259/how-to-take-screen-shot-of-current-webpage-using-javascript-jquery @@ -231,9 +231,7 @@ function addButtons() { }) .catch(err => console.error(err)); - }); - - + }); var menu = document.getElementsByClassName("col-sm-4 col-md-4 col-right")[0]; var metadata = document.getElementsByClassName("well metadata")[0]; @@ -392,9 +390,10 @@ function addButtons() { } contentElement.prepend(contentChecks); - + } + function openMailEditor(url) { location.href = url; }