diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index 145a4bf..7e4d8a7 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -25,9 +25,9 @@ } var isWipTag = false; - $container.find('#discussion_bucket .labels .label').each(function(i, elem) { - isWipTag = isWipTag || $(elem).text().match(wipTagRegex); - }); + for (const label of container.querySelectorAll('.js-issue-labels .IssueLabel')) { + isWipTag = isWipTag || label.textContent.match(wipTagRegex); + } disabled = (isWipTitle || isWipTaskList || isSquashCommits || isWipTag);