diff --git a/rildrize.user.js b/rildrize.user.js index 2c97da1..b2e018a 100644 --- a/rildrize.user.js +++ b/rildrize.user.js @@ -15,6 +15,7 @@ const KEY_NEXT = 's'; const KEY_PREV = 'a'; const KEY_REMOVE = 'x'; + const KEY_VIEW = 'v'; // class names const CLASS_CURRENT = 'rildrize-current'; @@ -57,6 +58,7 @@ case KEY_OPEN: open(); break; case KEY_NEXT: next(+1); break; case KEY_PREV: next(-1); break; + case KEY_VIEW: view(); break; case KEY_RELOAD: reload(); break; case KEY_REMOVE: remove(); break; } @@ -113,6 +115,14 @@ } } + function view() { + var currentItem = entryList[currentPos]; + var w = currentItem.getElementsByClassName('item').item(0); + + window.open(w.href, w.textContent); + } + function open() { var currentItem = entryList[currentPos]; setClassName(currentItem, CLASS_CURRENT);
https://github.com/kiririmode/rildrize
はい。