Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
avadhesh18 committed Feb 5, 2024
1 parent 032eebb commit 9341391
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ returnfpost += pollbuilder(post);
}


returnfpost += '<div class="post_meta">'+post['score']+' votes &bull; '+post['num_comments']+' comments';
returnfpost += '<div class="post_meta">'+post['score']+' votes &bull; <a href="comments.html?url=https://www.reddit.com'+ post['permalink']+'" >'+post['num_comments']+' comments</a>';
if (localStorage.getItem('refreshToken') !== null && window.location.href.includes('comments.html')) {
returnfpost += ' &bull; <span onclick="replyto(\'t3_' + post['id'] + '\')">Reply</span>';
}
Expand Down Expand Up @@ -353,7 +353,7 @@ returnpost = '';
{
returnpost += '<div class="postc singleimage"><img src="'+ urli +'"/></div>';
}
else if (urli.match(/.(gif|gifv)$/i)){
else if (urli.match(/.(gif)$/i)){
const x = postjson?.preview?.images?.[0]?.variants?.mp4?.source?.url || "none";
if(x == "none") {
returnpost += '<div class="postc singleimage"><img src="'+ urli +'"/></div>';
Expand Down
3 changes: 3 additions & 0 deletions public/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
</div>
</header>
<div id="body">
<b>6 Feb 2023</b>
<li>UPDATE: Comments link is now clickable and fixed imgur gifs issue.</li>

<b>31 Jan 2023</b>
<li>NEW: Compact mode (smaller thumbnails, faster loading) is here, enable it from the <a href="settings.html">settings</a> page.</li>
<li>NEW: Infinite Scrolling is here. If that's your thing enable it from the <a href="settings.html">settings</a> page.</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="140" 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></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></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 9341391

Please sign in to comment.