Full Reddit Comments

Refresh to dedicated comment page

当前为 2018-09-05 提交的版本,查看 最新版本

// ==UserScript==
// @name            Full Reddit Comments
// @version         0.2
// @description     Refresh to dedicated comment page
// @author          Drazen Bjelovuk
// @match           *://www.reddit.com/*
// @grant           none
// @run-at          document-start
// @namespace       https://greasyfork.org/users/11679
// @contributionURL https://goo.gl/dYIygm
// ==/UserScript==

(function() {
  'use strict';

  document.onclick = (e) => {
    if (e.metaKey) return;
    var clickId = e.target.parentElement.dataset.clickId;
    if (clickId && clickId === 'comments') {
      location.reload();
    }
  };
})();