Skip to content

Commit 5a7b5ad

Browse files
committed
Fixed const's being edited
1 parent 83208f1 commit 5a7b5ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Spectacles/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function getUnspoileredSrc(blurredSrc, link) {
99
}
1010

1111
// Getting source from external page
12-
GM.xmlHttpRequest({
12+
GM_xmlhttpRequest({
1313
method: 'GET',
1414
url: link,
1515
responseType: 'document',
@@ -62,7 +62,7 @@ function removePostSpoiler(element, postLink) {
6262
case 'gif':
6363
case 'mp4': {
6464
// Creating video
65-
const video = document.createElement("video");
65+
let video = document.createElement("video");
6666
video.className = "media-element";
6767
video.height = 360;
6868
video.width = 640;
@@ -145,7 +145,7 @@ function getImageFromPost(post) {
145145
if (window.location.href.split('/')[5] !== 'comments') {
146146
// Attempting to dynamically grab the root
147147
let depth = 0;
148-
const rootNode = document.getElementsByClassName('scrollerItem Post')[0].parentNode.parentNode.parentNode;
148+
let rootNode = document.getElementsByClassName('scrollerItem Post')[0].parentNode.parentNode.parentNode;
149149
while (rootNode.childNodes.length <= 5 && depth < 10) {
150150
rootNode = rootNode.parentNode;
151151
depth++;

0 commit comments

Comments
 (0)