annnoyboy / Quora Sign-up Bypass

// ==UserScript==
// @name         Quora Sign-up Bypass
// @version      0.1 (beta)
// @description  Bypasses the sign-up form in Quora.  (inform at github if performance issues)
// @author       RangeError68
// @match        https://*.quora.com/*
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Constants to work with
    var BODY_PREV_CL = 'signup_wall_prevent_scroll',
        SIGNUP_WALL_ID = '._DialogSignupForm, .BaseSignupForm, .vertical_alignment_wrapper';

    // References to elements to modify
    var body = window.document.body,
        signup_p = window.document.querySelector(SIGNUP_WALL_ID);

    // When 'onload' event fires then remove it!
    window.onload = function() {
        if(body.classList.contains(BODY_PREV_CL) && signup_p)
            body.classList.remove(BODY_PREV_CL);
            signup_p.remove();
    };
})();