Skip to content

Commit 689b37d

Browse files
committed
Update pvcep_rules.js
1 parent e20c266 commit 689b37d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Picviewer CE+/pvcep_rules.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,10 @@ var siteInfo = [
799799
{
800800
name: "Reddit",
801801
url: /\breddit\.com|redd\.it/,
802-
getImage: function() {
803-
if (this.srcset) {
802+
getImage: function(a, p) {
803+
if (a && /review\.redd\.it/.test(a.href)) {
804+
return a.href;
805+
} else if (this.srcset) {
804806
let srcs = this.srcset.split(/[xw],\s*/i);
805807
let maxSize = 0;
806808
let result = "";

0 commit comments

Comments
 (0)