Skip to content

Commit

Permalink
add support for all redgifs links (#1221)
Browse files Browse the repository at this point in the history
Co-authored-by: yadue <[email protected]>
  • Loading branch information
yadue and yadue authored Aug 24, 2023
1 parent d6f5f47 commit 834f5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/redgifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hoverZoomPlugins.push({

$('a[href*="redgifs.com/"]').one('mouseenter', function () {
const link = $(this);
const gfyId = this.href.replace(/.*redgifs.com\/(..\/)?(watch\/|i\/)?(\w+)(?:\.\w+)?/, '$3');
const gfyId = this.href.replace(/.*redgifs.com\/(..\/)?(\w+\/)?(\w+)(?:\.\w+)?/, '$3');

chrome.runtime.sendMessage({
action: 'ajaxGet',
Expand Down

0 comments on commit 834f5dd

Please sign in to comment.