Content-Length: 303269 | pFad | http://github.com/jeffjose/redditp/commit/2c6f62ee418a171712a292663c94bddf8b70a3b5

E3 hotkey 'd' takes you to duplicates · jeffjose/redditp@2c6f62e · GitHub
Skip to content

Commit

Permalink
hotkey 'd' takes you to duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjose committed May 24, 2016
1 parent 990bd54 commit 2c6f62e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Hotkeys
-------

* a - toggles auto-next (play/pause)
* d - open duplicates in a new tab
* t - collapse/uncollapse title
* c - collapse/uncollapse controls
* i - open image in a new tab
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
<li>
<a id='navboxCommentsLink' href='#' title='Comments on reddit'>comments</a>
</li>
<li style="display:none">
<a id='navboxDuplicatesLink' href='#' title='Duplicates on reddit'>duplicates</a>
</li>
<li>
<a id='navboxLink' href='#' title='placeholder'>image</a>
</li>
Expand Down
8 changes: 7 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ $(function () {
var ENTER = 13;
var A_KEY = 65;
var C_KEY = 67;
var D_KEY = 68;
var F_KEY = 70;
var I_KEY = 73;
var R_KEY = 82;
Expand Down Expand Up @@ -406,6 +407,9 @@ $(function () {
$("#autoNextSlide").prop("checked", !$("#autoNextSlide").is(':checked'));
updateAutoNext();
break;
case D_KEY:
open_in_background("#navboxDuplicatesLink");
break;
case I_KEY:
open_in_background("#navboxLink");
break;
Expand Down Expand Up @@ -514,6 +518,7 @@ $(function () {
$('#navboxSubreddit').attr('href', rp.redditBaseUrl + subreddit).html(subreddit);
$('#navboxLink').attr('href', photo.url).attr('title', photo.title);
$('#navboxCommentsLink').attr('href', photo.commentsLink).attr('title', "Comments on reddit");
$('#navboxDuplicatesLink').attr('href', photo.duplicatesLink).attr('title', "Duplicates on reddit");

toggleNumberButton(rp.session.activeIndex, false);
toggleNumberButton(imageIndex, true);
Expand Down Expand Up @@ -722,7 +727,8 @@ $(function () {
title: item.data.title,
over18: item.data.over_18,
subreddit: item.data.subreddit,
commentsLink: rp.redditBaseUrl + item.data.permalink
commentsLink: rp.redditBaseUrl + item.data.permalink,
duplicatesLink: rp.redditBaseUrl + item.data.permalink.replace('/comments/', '/duplicates/')
});
});

Expand Down

0 comments on commit 2c6f62e

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jeffjose/redditp/commit/2c6f62ee418a171712a292663c94bddf8b70a3b5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy