Created
December 6, 2020 03:45
-
-
Save soroushmehr/32eea5ba9626b59ab39ae38ac7c0b892 to your computer and use it in GitHub Desktop.
NeurIPS (nips.cc) Open Link in New Tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Tested on Chrome (December 2020) and macOS Catalina | |
| // Install "Run Javascript" Chrome extension | |
| // Go to nips.cc e.g. https://nips.cc/Conferences/2020/Schedule | |
| // Change the `year` variable accordingly | |
| // Select "Run Javascript" icon from top-right | |
| // Paste the following script into it, select "Save & Run" and "Enable on nips.cc" | |
| // In Chrome settings for nips.cc change the pop-up behavior to "Allow" | |
| // Now everytime you visit NeurIPS schedules and a list of "cards," | |
| // you will see "[open tab!]" next to them that you can select "Open link in new tab" | |
| // from right-click menu | |
| // Unfortunately, "command+left-click" does not work well yet | |
| var year = "2020"; | |
| $("[onclick^='showDetail']").each(function(i, obj) { | |
| var te_id = obj.getAttribute("onclick").match(/\((.*)\)/).pop(); | |
| var div = document.createElement('div'); | |
| div.class = 'pull-right maincardHeader maincardType'; | |
| div.innerHTML = '<a href="https://nips.cc/Conferences/'+year+'/Schedule?showEvent='+te_id +'">[open tab!]</a>'; | |
| obj.children[0].appendChild(div); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment