Bypass GitHub Ajax

Helps avoid Ajax-based loading of stuff on github with the side effect of bypassing some webcomponents

// ==UserScript==
// @name        Bypass GitHub Ajax
// @namespace   binoc.projects.userscript.github.ajax
// @description Helps avoid Ajax-based loading of stuff on github with the side effect of bypassing some webcomponents
// @include     https://github.com/*
// @version     1.0.0a1
// @grant       none
// ==/UserScript==

function removePjaxAttr() {
  document.querySelectorAll('*').forEach(function(node) {
    if (node.hasAttribute("data-pjax")) {
      node.removeAttribute("data-pjax");
    }
  });
}

window.onload = removePjaxAttr;