Greasy Fork is available in English.

Quora Unblocker

Append ?share=1 automatically so that Quora won't annoy with blockers

  1. // ==UserScript==
  2. // @name Quora Unblocker
  3. // @version 12jan2021-stable
  4. // @description Append ?share=1 automatically so that Quora won't annoy with blockers
  5. // @author OrderedChaos
  6. // @match *://*.quora.com/*
  7. // @run-at document-start
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/726625
  10. // ==/UserScript==
  11.  
  12. var oldUrlPath = window.location.pathname;
  13. var oldSearch = window.location.search;
  14.  
  15. // Test that "?share=1" does not exist in URL
  16. if ( ! /\?share=1/.test (oldSearch) ) {
  17.  
  18. var newURL = window.location.protocol + "//"
  19. + window.location.host
  20. + window.location.pathname
  21. + window.location.search + "?share=1"
  22. + window.location.hash;
  23. // replace() puts the good page in the history
  24. window.location.replace (newURL);
  25. }