Brainly Bypass

Remove paywall from Brainly!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Brainly Bypass
// @namespace    http://tampermonkey.net/
// @version      1.0.2
// @description  Remove paywall from Brainly!
// @author       DeathlyBower959
// @license      MIT
// @match        https://brainly.com/*
// @icon         https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant        none
// ==/UserScript==

(function() {
    "use strict";

    function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

    function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

    function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

    var reloadAnswers = function reloadAnswers(answerBlockers) {
        if (answerBlockers > 0) {
            /* var currentData = JSON.parse(localStorage.getItem('flexible-funnel-cycle-data') || {});
            if (!currentData) return;
            var newTiers = {};
            Object.keys(currentData.tiers).forEach(function (key) {
                newTiers[key] = 0;
            });
            localStorage.setItem('flexible-funnel-cycle-data', JSON.stringify(_objectSpread(_objectSpread({}, currentData), {}, {
                tiers: newTiers
            }))); */

            localStorage.removeItem('social-qa/telemetry')
            window.location.reload();
        }
    };

    var statusCheck = function statusCheck() {
        var answerBlockers = document.querySelectorAll('[data-testid="answer_blockade_adapter"]').length;
        if (answerBlockers <= 0) setTimeout(statusCheck, 1000); else reloadAnswers(answerBlockers);
    };


    statusCheck();
})();