Skip to content

Commit

Permalink
updated to 2020.12.23.1. new toolbar view!
Browse files Browse the repository at this point in the history
  • Loading branch information
avigloz committed Dec 23, 2020
1 parent 50a41c7 commit 9bee078
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
8 changes: 6 additions & 2 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ var isFirefox = typeof InstallTrigger !== 'undefined';

if (!isFirefox) {
chrome.omnibox.onInputEntered.addListener(function (text) {
window.open("https://reddit.com/r/" + text);
chrome.tabs.create({
url: "https://reddit.com/r/" + text
})
});

chrome.omnibox.onInputChanged.addListener(function (text, suggest) {
Expand All @@ -19,7 +21,9 @@ if (!isFirefox) {
}
else {
browser.omnibox.onInputEntered.addListener(function (text) {
window.open("https://reddit.com/r/" + text);
browser.tabs.create({
url: "https://reddit.com/r/" + text
})
});

browser.omnibox.onInputChanged.addListener(function (text, suggest) {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "rslash",
"description": "Seamlessly integrating Reddit straight into the URL bar",
"version": "2020.12.22f",
"version": "2020.12.23.1",
"omnibox": { "keyword" : "r\\"},
"icons": {
"16": "icon16.png"
Expand Down
11 changes: 6 additions & 5 deletions src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
<body>
<div id="main">
To use, just type r\ with a space afterwards,
then simply name a subreddit to navigate to.

Places to send loose pocket change:
<b><a href="paypal.me/avigloz">PayPal</a></b>
<b>₿ 1NpQyfiWnEAfmwfGcvyyqm7NbmY2exSeRX</b>
then simply name a subreddit to navigate to.<br><br>
Places to send loose pocket change:<br>
<div id="donbox">
<b><a href="https://paypal.me/avigloz">PayPal</a></b><br>
<b><i>BTC:</i> 1NpQyfiWnEAfmwfGcvyyqm7NbmY2exSeRX</b><br>
</div>
<i>Thanks for installing and enjoy!</i>
</div>
</body>
Expand Down
12 changes: 10 additions & 2 deletions src/stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
body {
font-family: "Oxygen Mono";
background-color: #363533;
color: white;
font-size: 75%;
}
#main {
/* avoid an excessively wide status text */
white-space: pre;
text-overflow: ellipsis;
overflow: hidden;
max-width: 400px;
max-width: 375px;
max-height: 600px;
}
#donbox {
border: 2px solid #ff500f;
padding: 2px;
}
a {
color: orange;
}

0 comments on commit 9bee078

Please sign in to comment.