-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBrainlier.user.js
More file actions
22 lines (21 loc) · 1.38 KB
/
Copy pathBrainlier.user.js
File metadata and controls
22 lines (21 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// ==UserScript==
// @name Brainlier
// @namespace discord.gg/8sKGWD7BTc
// @version 2.3
// @description Unlocks Brainly's questions and textbook answers.
// @author Databones
// @icon https://raw.githubusercontent.com/Databones/Brainlier/main/IER.png
// @match *://brainly.in/*
// @match *://brainly.com/*
// @match *://brainly.ro/*
// @match *://brainly.pl/*
// @match *://brainly.ph/*
// @match *://brainly.lat/*
// @match *://brainly.com.br/*
// @match *://brainly.co.id/*
// @match *://brainly.ro/*
// @match *://nosdevoirs.fr/*
// @match *://znanija.com/*
// @run-at document-start
// ==/UserScript==
"use strict";localStorage.setItem("textbookMetering/unlogged/answerViews","-9999");var itemsToRemove=["social-qa/telemetry","simple-funnel-name","flexible-funnel-cycle-data"];itemsToRemove.forEach((function(e){localStorage.getItem(e)&&localStorage.removeItem(e)}));var versionFileURL="https://raw.githubusercontent.com/Databones/Brainlier/main/version",redirectURL="https://github.com/Databones/Brainlier/raw/main/Brainlier.user.js";function fetchRemoteVersion(){fetch(versionFileURL).then((function(e){return e.text()})).then((function(e){var t=GM_info.script.version;e.trim()!==t.trim()&&(window.location.href=redirectURL)}))}"undefined"!=typeof GM_info&&GM_info.script&&fetchRemoteVersion();