Browse files

Use canonical www.reddit.com URLs when linking to reddit.

  • Loading branch information...
1 parent 4072bab commit 83b2d81e2bdcdcbb7368ebe23f31bded4cae8649 @chromakode chromakode committed Aug 8, 2011
Showing with 8 additions and 5 deletions.
  1. +3 −0 NEWS
  2. +3 −3 src/bar.js
  3. +1 −1 src/manifest.json
  4. +1 −1 src/submit.js
View
3 NEWS
@@ -1,3 +1,6 @@
+== Version 1.1.1 ==
+* Use canonical www. prefix when linking to reddit.com. [chromakode]
+
== Version 1.1.0 ==
* Add option to enable/disable bar auto-show. [chromakode]
* Add option to enable/disable mail notifications. [chromakode]
View
6 src/bar.js
@@ -41,7 +41,7 @@ function update() {
fitHeight()
if (info.permalink) {
- $('#title').attr('href', 'http://reddit.com'+info.permalink)
+ $('#title').attr('href', 'http://www.reddit.com'+info.permalink)
}
if (info.likes == true) {
@@ -75,7 +75,7 @@ function update() {
function initButtons() {
if (buttonsReady || info._fake) { return }
- $('#comments').attr('href', 'http://reddit.com'+info.permalink)
+ $('#comments').attr('href', 'http://www.reddit.com'+info.permalink)
$('#upvote').click(function() {
vote(info.likes == true ? null : true)
@@ -90,7 +90,7 @@ function initButtons() {
})
$('#login').click(function () {
- window.open('http://reddit.com/login/')
+ window.open('http://www.reddit.com/login/')
})
$('#close').click(function() {
View
2 src/manifest.json
@@ -1,6 +1,6 @@
{
"name": "reddit companion",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "Turn your browser into a redditor's best friend.",
"options_page": "options.html",
"permissions": [
View
2 src/submit.js
@@ -1,6 +1,6 @@
function updateTarget() {
var target =
- 'http://reddit.com/submit/?resubmit=true'+
+ 'http://www.reddit.com/submit/?resubmit=true'+
'&url='+window.location.hash.substr(1)+
'&title='+encodeURIComponent($('#title-input').val())
$('#submit').attr('href', target)

0 comments on commit 83b2d81

Please sign in to comment.