File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function getUnspoileredSrc(blurredSrc, link) {
9
9
}
10
10
11
11
// Getting source from external page
12
- GM . xmlHttpRequest ( {
12
+ GM_xmlhttpRequest ( {
13
13
method : 'GET' ,
14
14
url : link ,
15
15
responseType : 'document' ,
@@ -62,7 +62,7 @@ function removePostSpoiler(element, postLink) {
62
62
case 'gif' :
63
63
case 'mp4' : {
64
64
// Creating video
65
- const video = document . createElement ( "video" ) ;
65
+ let video = document . createElement ( "video" ) ;
66
66
video . className = "media-element" ;
67
67
video . height = 360 ;
68
68
video . width = 640 ;
@@ -145,7 +145,7 @@ function getImageFromPost(post) {
145
145
if ( window . location . href . split ( '/' ) [ 5 ] !== 'comments' ) {
146
146
// Attempting to dynamically grab the root
147
147
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 ;
149
149
while ( rootNode . childNodes . length <= 5 && depth < 10 ) {
150
150
rootNode = rootNode . parentNode ;
151
151
depth ++ ;
You can’t perform that action at this time.
0 commit comments