inoreader mark read when press [n]

当按下 n 定位到下一条时,将它设为已读

当前为 2022-06-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name inoreader mark read when press [n]
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description 当按下 n 定位到下一条时,将它设为已读
  6. // @author wanglongbiao
  7. // @match https://www.inoreader.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=inoreader.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. window.addEventListener('keydown', function(event){
  16. switch(event.code){
  17. case 'KeyN':
  18. console.log(event.keyCode)
  19. mark_read(document.querySelector('div.article_current').getAttribute('data-aid'))
  20. break
  21. }
  22. }, true)
  23. })();