Last active
November 23, 2022 11:49
-
-
Save avipars/36621afc7a9d6cb705bcb0295ee84d79 to your computer and use it in GitHub Desktop.
show hidden items on nagwa.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Nagwa Locked Content Shower | |
// @namespace http://aviparshan.com/ | |
// @version 1.0.1.3 | |
// @description Shows the locked content on Nagwa (math and science content) | |
// @author avipars | |
// @include *://nagwa.com/* | |
// @include *://*.nagwa.com/* | |
// @grant none | |
// @license MIT | |
// ==/UserScript== | |
var collection = document.querySelector('div[class*="not-available"]'); //match any class that is locked | |
for (let i = collection.classList.length - 1; i >= 0; i--) { //iteratre through results | |
const className = collection.classList[i]; //save current element in variable | |
if (className.startsWith('not-available')) { //verify if it is a match | |
collection.classList.remove(className); //remove the lock | |
collection.classList.add("theorem"); //add the theorem div class | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hosted here https://greasyfork.org/en/scripts/455289-nagwa-locked-content-shower