Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Highlight Unanswered" update to feature version 2 #488

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
21 changes: 5 additions & 16 deletions features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,9 @@
{ "id": "Studio ID", "name": "Studio ID", "default": "27205657" }
]
},
{
"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
{
"version": 2,
"id": "highlight-unanswered"
},
{
"title": "Hide Project Tags",
Expand Down Expand Up @@ -764,13 +758,8 @@
"type": ["Website"]
},
{
"title": "Go to Parent Button",
"description": "In the editor for any project that is a remix, you can click a button to go to the editor in the parent project.",
"credits": ["rgantzos"],
"urls": ["https://scratch.mit.edu/users/rgantzos/"],
"file": "go-to-parent",
"tags": [],
"type": ["Editor"]
"version": 2,
"id": "go-to-parent"
},
{
"title": "Most Popular Project",
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;
});
});
});