Skip to content

Commit

Permalink
Cancel if there is no thread
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjrw committed Mar 22, 2022
1 parent 86911e5 commit 9b60218
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scpwiki-staff-id",
"version": "2.2.0",
"version": "2.2.1",
"description": "A [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) userscript that adds a line of text to forum posts by staff members to show you what position they hold.",
"main": "scpwiki-staff-ids.user.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion scpwiki-staff-ids.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ select "SCP-Wiki Staff Identification", and click Uninstall.
// ==UserScript==
// @name SCP-Wiki Staff Identification 2
// @description Shows who's staff and what position they hold
// @version v2.2.0
// @version v2.2.1
// @updateURL https://github.com/scpwiki/SCP-Wiki-Staff-Identification/raw/master/scpwiki-staff-ids.user.js
// @downloadURL https://github.com/scpwiki/SCP-Wiki-Staff-Identification/raw/master/scpwiki-staff-ids.user.js
// @include http://scpwiki.com/forum*
Expand Down Expand Up @@ -172,6 +172,7 @@ function setStaffIds() {
} else {
container = document.getElementsByClassName("thread-container")[0];
}
if (!container) return;

var infoSpans = container.getElementsByClassName("info");
var userName = "";
Expand Down

0 comments on commit 9b60218

Please sign in to comment.