Skip to content

Commit

Permalink
Merge pull request #56 from alerque/hotfix-linkids
Browse files Browse the repository at this point in the history
Hotfix for DOM change in SE sites, fixes #55.
  • Loading branch information
alerque committed Jul 26, 2014
2 parents f8a6a77 + b18b545 commit 4c045eb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ For more information about user scripts, check out the [tag:script] tag wiki [he

(See comments and answers below for details)

**V1.3.3.3** - Hotfix release to adjust for change in Stack Exchange site code that broke this script.

**V1.3.3.2** - Google Chrome Store realease bumped version number in 'official' release to be newer than the version under the user-contributed account.

**V1.3.3.1** - First fully reviewed and approved Mozilla Add-Ons release.

**V1.3.3** - 'Service' release to correct the auto-update script (which was 'broken' by having changed script location). Also now supports updating the minified version of the script.

**V1.3.2** - New $MYUSERID$ placeholder from [Izzy][51], will be replaced with your user id for the current site. Also, under the covers this version contains all the scaffolding necessary for building browser extensions (hat-tip to Caleb and Oliver Salzburg who did all the heavy lifting)
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@ant-name@=AutoReviewComments
@ant-description@=No more re-typing the same comments over and over!
@ant-version@=1.3.3
@ant-version@=1.3.3.3
@ant-homepage@=https://github.com/Benjol/SE-AutoReviewComments
@ant-author@=Benjol
6 changes: 3 additions & 3 deletions dist/autoreviewcomments.min.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/autoreviewcomments.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ==UserScript==
// @name AutoReviewComments
// @namespace benjol
// @version 1.3.3
// @version 1.3.3.3
// @description No more re-typing the same comments over and over!
// @homepage https://github.com/Benjol/SE-AutoReviewComments
// @grant none
Expand Down Expand Up @@ -56,7 +56,7 @@ with_jquery(function ($) {
StackExchange.ready(function () {
//// Self Updating Userscript, see https://gist.github.com/Benjol/874058
// (the first line of this template _must_ be a comment!)
var VERSION = '1.3.3';
var VERSION = '1.3.3.3';
var URL = "https://raw.github.com/Benjol/SE-AutoReviewComments/master/dist/autoreviewcomments.user.js";

// This hack is necessary to bring people up from the last working auto-uptate gist
Expand Down Expand Up @@ -552,7 +552,7 @@ function CheckForNewVersion(popup) {
//This is where the real work starts - add the 'auto' link next to each comment 'help' link
//use most local root-nodes possible (have to exist on page load) - #questions is for review pages
$("#content").delegate(".comments-link", "click", function () {
var divid = $(this).attr('id').replace('-link', '');
var divid = $(this).parent().attr('id').replace('-link', '');
var posttype = $(this).parents(".question, .answer").attr("class").split(' ')[0]; //slightly fragile

if($('#' + divid).find('.comment-auto-link').length > 0) return; //don't create auto link if already there
Expand Down
2 changes: 1 addition & 1 deletion src/autoreviewcomments.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ with_jquery(function ($) {
//This is where the real work starts - add the 'auto' link next to each comment 'help' link
//use most local root-nodes possible (have to exist on page load) - #questions is for review pages
$("#content").delegate(".comments-link", "click", function () {
var divid = $(this).attr('id').replace('-link', '');
var divid = $(this).parent().attr('id').replace('-link', '');
var posttype = $(this).parents(".question, .answer").attr("class").split(' ')[0]; //slightly fragile

if($('#' + divid).find('.comment-auto-link').length > 0) return; //don't create auto link if already there
Expand Down

0 comments on commit 4c045eb

Please sign in to comment.