Bypass GitHub Ajax

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

  1. // ==UserScript==
  2. // @name Bypass GitHub Ajax
  3. // @namespace binoc.projects.userscript.github.ajax
  4. // @description Helps avoid Ajax-based loading of stuff on github with the side effect of bypassing some webcomponents
  5. // @include https://github.com/*
  6. // @version 1.0.0a1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. function removePjaxAttr() {
  11. document.querySelectorAll('*').forEach(function(node) {
  12. if (node.hasAttribute("data-pjax")) {
  13. node.removeAttribute("data-pjax");
  14. }
  15. });
  16. }
  17.  
  18. window.onload = removePjaxAttr;