-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreaderView.js
More file actions
27 lines (23 loc) · 743 Bytes
/
readerView.js
File metadata and controls
27 lines (23 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name ReaderView
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Allows you to view the text while answering questions on Sparx Reader.
// @author YourName
// @match *://app.sparxreader.com*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function viewSparxReader() {
const contentDivs = document.querySelectorAll('.content');
contentDivs.forEach(div => {
div.classList.forEach(className => {
if (className.startsWith('_ReadingContent')) {
div.classList.remove(className);
}
});
});
}
setInterval(viewSparxReader, 200);
})();