File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name Unedit and Undelete for Reddit
3
3
// @namespace http://tampermonkey.net/
4
- // @version 3.16.3
4
+ // @version 3.16.4
5
5
// @description Creates the option next to edited and deleted Reddit comments/posts to show the original comment from before it was edited
6
6
// @author Jonah Lawrence (DenverCoder1)
7
7
// @grant none
590
590
logging . warn ( "No matching post:" , out ) ;
591
591
} else {
592
592
// other issue occurred with displaying comment
593
+ if ( loading . innerText === "fetch failed" && loading . parentElement . querySelector ( ".pushshift-link" ) === null ) {
594
+ const linkToPushshift = document . createElement ( "a" ) ;
595
+ linkToPushshift . target = "_blank" ;
596
+ linkToPushshift . style = "text-decoration: underline; cursor: pointer; margin-left: 6px; font-style: normal; font-weight: bold; color: #e5766e;" ;
597
+ linkToPushshift . className = loading . className ;
598
+ linkToPushshift . classList . add ( "pushshift-link" ) ;
599
+ linkToPushshift . href = "https://www.reddit.com/r/pushshift/comments/13508r9/pushshift_no_longer_has_access_to_the_reddit_api/" ;
600
+ linkToPushshift . innerText = "CHECK r/PUSHSHIFT FOR MORE INFO" ;
601
+ loading . parentElement . appendChild ( linkToPushshift ) ;
602
+ }
593
603
loading . innerText = "fetch failed" ;
594
- loading . title = "This is likely due to a Pushshift API issue. Please try again later ." ;
604
+ loading . title = "This is likely due to a Pushshift API issue. Please check r/pushshift for updates ." ;
595
605
logging . error ( "Fetch failed:" , out ) ;
596
606
}
597
607
} ) ;
You can’t perform that action at this time.
0 commit comments