OpenReview Helper

try to take over the world!

  1. // ==UserScript==
  2. // @name OpenReview Helper
  3. // @name:en OpenReview Helper
  4. // @name:zh-CN OpenReview Helper
  5. // @namespace http://tampermonkey.net/
  6. // @version 0.1.2
  7. // @description try to take over the world!
  8. // @description:zh-CN try to take over the world!
  9. // @author Han Yang
  10. // @match https://openreview.net/group?id=*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. !function(){"use strict";function e(e){console.log(e);let o=e.getAttribute("data-id"),t=`notes?forum=${o}&details=replyCount`;console.log(t),fetch(t).then(async t=>{let n=(await t.json()).count-1;console.log(o,n,e),document.querySelector(`li[data-id='${o}']`).append(`reply count: ${n}`)})}function o(){let o=document.querySelector("#all-submissions").querySelectorAll("li.note");console.log(o);for(let t=0;t<o.length;++t)console.log(t),e(o[t])}document.getElementById("notes").onchange=function(){setTimeout(o,1e3)}}();