Greasy Fork 还支持 简体中文。

inoreader mark read when press [n]

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

  1. // ==UserScript==
  2. // @name inoreader mark read when press [n]
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  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. let current = document.querySelector('div.article_current')
  20. if(current.classList.contains('article_unreaded')){
  21. mark_read(current.getAttribute('data-aid'))
  22. }
  23. break
  24. }
  25. })
  26. })();