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) {
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) {
145145if ( 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 ++ ;
You can’t perform that action at this time.
0 commit comments