Skip to content

Commit

Permalink
fixgallerylinks
Browse files Browse the repository at this point in the history
  • Loading branch information
avadhesh18 committed May 15, 2024
1 parent 82bca60 commit 5257479
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion public/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ var replacedText = replaceRedditLinks(post["selftext_html"]);
returnfpost += '<div class="postc selftext">'+htmlDecode(replacedText)+'</div>';
}
urli = post['url_overridden_by_dest'];

if (post['url'] && post['url'].includes('reddit.com/gallery')) {
urli = post['url'];
}

if((post['crosspost_parent_list'] != null && post['crosspost_parent_list'].length > 0) || (typeof post['crosspost_parent_list'] !== 'undefined' && post['crosspost_parent_list'].length > 0)){
returnfpost += postbuilder(post['crosspost_parent_list'][0]);
Expand Down
2 changes: 2 additions & 0 deletions public/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
</div>
</header>
<div id="body">
<b>15 May 2024</b>
<li>UPDATE: New gallery links fixed and SOMETHING SPECIAL IS COMING.</li>
<b>6 Feb 2023</b>
<li>UPDATE: Comments link is now clickable and fixed imgur gifs issue.</li>

Expand Down
2 changes: 1 addition & 1 deletion run.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
$data = str_replace('<!--headhtml-->',$headhtml,$data);


$data = str_replace('</body>','<div class="footer"><a rel="nofollow" href="https://www.buymeacoffee.com/overdevsapps" class="bmac"><img src="bmac.png" width="150" alt="donate"></a><br>If you use rdx for Reddit&reg; please provide <a href="contact.html">Feedback</a> and <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a>.<br><br><small><a href="new.html">What\'s new?</a> | <a href="settings.html">Settings</a> | <a href="https://github.com/avadhesh18/rdx/">Star on Github</a> | <a href="https://apps.apple.com/us/app/miai-create-your-ai-friend/id6475200501">Try My AI Chat app </a></small></div> <div id="popitup" style="display:none;">
$data = str_replace('</body>','<div class="footer"><a rel="nofollow" href="https://www.buymeacoffee.com/overdevsapps" class="bmac"><img src="bmac.png" width="150" alt="donate"></a><br>If you use rdx for Reddit&reg; please provide <a href="contact.html">Feedback</a> and <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a>.<br><br><small><a href="new.html"> What\'s new?</a> | <a href="settings.html">Settings</a> | <a href="https://github.com/avadhesh18/rdx/">Star on Github</a> | <a href="https://apps.apple.com/us/app/miai-create-your-ai-friend/id6475200501">Try My AI Chat app </a></small></div> <div id="popitup" style="display:none;">
<span onclick="document.getElementById(\'popitup\').style.display=\'none\'">Cancel</span>
<div id="helptext"></div><textarea class="cmntarea" id="commentText" placeholder="Write a reply!" required></textarea>
<input id="cmtid" value="" type="hidden"/> <input id="actype" value="" type="hidden"/> <button id="cmntbtn" onclick="apiAction();">Submit</button>
Expand Down

0 comments on commit 5257479

Please sign in to comment.