Skip to content

Commit

Permalink
appishere
Browse files Browse the repository at this point in the history
  • Loading branch information
avadhesh18 committed Jun 2, 2024
1 parent cd8d3d1 commit 4f2c639
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 8 deletions.
3 changes: 2 additions & 1 deletion public/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash('5122.png', '#4e2a72');</script>
Expand Down
13 changes: 13 additions & 0 deletions public/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ nexturl = url.split('&after')[0]+"&after="+jsonResponse['data']['after'];
}
fill += '</div>';
document.getElementById('body').innerHTML = fill;
document.getElementById('body').insertAdjacentHTML("afterbegin",'<div id="rdxapp" style="display:none;">rdx iPhone app is here <a class="dlbtnapp" href="https://apps.apple.com/us/app/rdx-for-reddit/id6503479190">Install</a> <span class="axeit" onclick="exit();">X</span></div>');
runhsl();
if(curinfi == "true") {
observe();
}

};
req.onerror = function () {
document.getElementById('body').innerHTML = '<center style="padding:15px;">Can\'t load content!<br><b>I know about the error of home feed and user feed not working(individual subreddits are working). Reddit is making it hard to fix but I am trying. Meanwhile I have made an iOS App(free,ad-free, fast) to get around this and will launch it in 2-3 days. You can subscribe using your email below and I will send you an email when the app is ready.</b><iframe width="340" height="305" src="https://7a945f05.sibforms.com/serve/MUIFALUnKUyQYm475r-rbc10FSp870Ra3M3xoAR8XhhH5n1peSVzsoaHNqfh1r8UUqRbVjg_fljGuixCyVnGnCo3dQDsIrAat_5vYvjlI25DzLl6VEwr2SCM9GzniHmLjV7VpsHzaO0F26IGQPRIThB4OimW0sdaN9Eq8cTYV79Abo2j1HHLb-77KQkDzWtHHMdmSKbUXcOEd9Pa" frameborder="0" scrolling="auto" allowfullscreen style="display: block;margin-left: auto;margin-right: auto;max-width: 100%;"></iframe><small>There can be multiple reasons for this, your browser\'s aggresive privacy settings may be blocking the one call to reddit.com RDX makes. This happens usually when you use a VPM/Proxy and/or a privacy focused browser like Firefox.<br> Play around with privacy/tracking options or change your browser. If it still doesn\'t work click the feedback link and send me some info.</small></center>';
Expand Down Expand Up @@ -147,6 +149,8 @@ async function makereq(url) {
if (curinfi == "true") {
observe();
}


} catch (error) {
document.getElementById('body').innerHTML = `<center style="padding:15px;">Can't load content!<br><b>I know about the error of home feed and user feed not working(individual subreddits are working). Reddit is making it hard to fix but I am trying. Meanwhile I have made an iOS App(free,ad-free, fast) to get around this and will launch it in 2-3 days. You can subscribe using your email below and I will send you an email when the app is ready.</b><iframe width="340" height="305" src="https://7a945f05.sibforms.com/serve/MUIFALUnKUyQYm475r-rbc10FSp870Ra3M3xoAR8XhhH5n1peSVzsoaHNqfh1r8UUqRbVjg_fljGuixCyVnGnCo3dQDsIrAat_5vYvjlI25DzLl6VEwr2SCM9GzniHmLjV7VpsHzaO0F26IGQPRIThB4OimW0sdaN9Eq8cTYV79Abo2j1HHLb-77KQkDzWtHHMdmSKbUXcOEd9Pa" frameborder="0" scrolling="auto" allowfullscreen style="display: block;margin-left: auto;margin-right: auto;max-width: 100%;"></iframe><small>There can be multiple reasons for this, your browser's aggressive privacy settings may be blocking the one call to reddit.com RDX makes. This happens usually when you use a VPN/Proxy and/or a privacy focused browser like Firefox.<br> Play around with privacy/tracking options or change your browser. If it still doesn't work click the feedback link and send me some info.</small></center>`;
}
Expand Down Expand Up @@ -187,8 +191,17 @@ nexturl = '';
};
req.send(null);
}
function axit(){
localStorage.setItem('appshown', 'yes');
document.getElementById('rdxapp').style.display = 'none';
}


function observe() {
if (localStorage.getItem('appshown') !== 'yes') {

document.getElementById('body').insertAdjacentHTML("afterbegin",'<div id="rdxapp" >rdx iPhone app is here <a class="dlbtnapp" href="https://apps.apple.com/us/app/rdx-for-reddit/id6503479190">Install</a> <span class="axeit" onclick="axit();">X</span></div>');
}
const options = {
root: null,
threshold: 1.0
Expand Down
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash('5122.png', '#4e2a72');</script>
Expand Down
3 changes: 2 additions & 1 deletion public/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash('5122.png', '#4e2a72');</script>
Expand Down
22 changes: 22 additions & 0 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -874,4 +874,26 @@ div#body {
margin-top: 43px;
}

}
div#rdxapp {
display: flex;
justify-content: space-between;
padding: 10px 15px;
border-bottom: 1px solid var(--greyc);
align-items: center;
}

div#rdxapp {}

a.dlbtnapp {
border: 1px solid var(--linkc);
padding: 5px 10px;
border-radius: 5px;
text-decoration: none;
}

span.axeit {
font-family: monospace;
padding: 0px 5px;
color: var(--linkc);
}
3 changes: 2 additions & 1 deletion public/subreddit.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash('5122.png', '#4e2a72');</script>
Expand Down
3 changes: 2 additions & 1 deletion public/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash('5122.png', '#4e2a72');</script>
Expand Down
3 changes: 2 additions & 1 deletion public/userc.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash('5122.png', '#4e2a72');</script>
Expand Down
5 changes: 3 additions & 2 deletions run.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@
<div class="list">
<a href="index.html" class="homelinks halfit">Home</a><a onClick="window.location.reload()" class="homelinks halfit">Refresh</a><a href="saved.html" class="homelinks halfit">Saved</a><a href="subreddit.html?r=popular" class="homelinks halfit">Popular</a>
<div id="subscribed">Subscribe to subreddits to view them here.</div> <div id="cthemew"><a href="themes.html" id="themebtn">Themes</a> <a href="settings.html">Settings</a> <a href="https://www.buymeacoffee.com/overdevsapps" rel="nofollow">Donate</a> <a href="new.html" rel="nofollow">New</a> <a href="contact.html" >Feedback</a> <br>
<small><span style="color:var(--lightc);">*</span> New settings: Infinite Scrolling and Compact Mode.</small>
<small><span style="color:var(--lightc);">*</span> rdx iPhone App is here : <a href="https://apps.apple.com/us/app/rdx-for-reddit/id6503479190">Download</a></small>
</div></div>
</div>
<div id="rightbar" class="hidden"></div>
</div>
</header>
<div id="body"></div>
<div id="body">
</div>
<script src="functions.js"></script><!-- Web Analytics --><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon=\'{"token": "5ce6e4ad5599462c8e3c36f2223a7184"}\'></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script>iosPWASplash(\'5122.png\', \'#4e2a72\');</script> ';
Expand Down

0 comments on commit 4f2c639

Please sign in to comment.