-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
post to reddit #12
base: master
Are you sure you want to change the base?
post to reddit #12
Conversation
background.js
Outdated
@@ -144,4 +144,66 @@ function setBadge(title, text, badgeColor, alienIcon, tab) { | |||
}) | |||
} | |||
|
|||
function getSnoowrap(interactive, callback) { | |||
'use strict'; | |||
var clientId = 'JM8JSElud0Rm1g'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The client ID value here has to be replaced with your own client ID. To get this value, go in to the preferences section of your Reddit account and click apps. Create an installed app and set its redirect url to https://<CHROME_EXTENSION_ID>.chromiumapp.org/provider_cb
. After creating the app you should see a client ID which you can copy-paste into this line
c516932
to
7dab255
Compare
WIP #11
@hsbakshi just wanted to get your feedback on the direction so far. Feel free to criticise code quality, clarity, etc. since I'm quite new to frontend development and would appreciate the tips. Thanks!
NOTE 1: the
clientId
value inbackground.js
needs to be replaced with your own. See the comments below for instructions on how to do that.