Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,8 @@
]
},
{
"title": "Highlight Unanswered Forum Topics",
"description": "Adds a blue highlight to topics in the forums that have no replies.",
"credits": ["rgantzos"],
"urls": ["https://scratch.mit.edu/users/rgantzos/"],
"file": "highlight-unanswered",
"type": ["Website"],
"tags": ["New", "Recommended"],
"dynamic": true
"id": "highlight-unanswered",
"version": 2
},
{
"title": "Hide Project Tags",
Expand Down
10 changes: 10 additions & 0 deletions features/highlight-unanswered/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "Highlight Unanswered Forum Topics",
"description": "Adds a blue highlight to topics in the forums that have no replies.",
"credits": [
{ "username": "rgantzos", "url": "https://scratch.mit.edu/users/rgantzos/" }
],
"type": ["Website"],
"tags": ["New", "Recommended"],
"scripts": [{ "file": "script.js", "runOn": "/discuss/*" }]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ if (
}
});
}

ScratchTools.setDisable("highlight-unanswered", function () {
document.querySelectorAll("tbody > tr").forEach(function (el) {
el.style.backgroundColor = null;
});
});
});