Random item

Would it be possible to introduce a function that could show random library items to users? This could be useful for cleaning up and reviewing the library. It could produce reactions like "Wow I forgot about that article" or "that one is useless". Especially when the library grows.
  • We wouldn't add that as a built-in feature, but it could easily be done as a plugin.

    You can run this in Tools → Developer → Run JavaScript to select a random item in the current view:

    var iv = ZoteroPane.itemsView; await iv.selectItem(iv.getRow(Zotero.Utilities.rand(0, iv.rowCount - 1)).id)
  • Ok, cool. This works fine. But a plugin would also be cool.
    Best
  • Should be `Zotero.getActiveZoteroPane().itemsView;` for Zotero 7.

    You can run Javascript by debug-bridge.
  • That will work for 6 and 7 in fact.
Sign In or Register to comment.