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

Please put the queue URL on the page #7

Open
ga2k opened this issue May 18, 2023 · 1 comment
Open

Please put the queue URL on the page #7

ga2k opened this issue May 18, 2023 · 1 comment

Comments

@ga2k
Copy link

ga2k commented May 18, 2023

Is your feature request related to a problem? Please describe.
It would be good if you could put the URL of the queue on the page if the logged-in user is a tutor.

Describe the solution you'd like
It would be great beside the course name at the top left of the page. Like -
CSSE2002 - Access this page at https://q.uqcloud.net/csse2002

Describe alternatives you've considered
I've overlaid an instance of notepad with the URL in it on top of the q page, but of course every time I click on the q page, the notepad window goes behind it.

Additional context
Thanks!

@bradleysigma
Copy link

bradleysigma commented Aug 24, 2023

As a quick fix, running this in your browser's console will add the URL for CSSE2010, though easily modifiable for other courses:

document.getElementsByClassName("chakra-text css-1j0gm30")[0].innerHTML = 'CSSE2010 - <a href="https://q.uqcloud.net/CSSE2010" style="text-decoration: underline; color: '+(document.body.className == "chakra-ui-light" ? "darkblue" : "lightblue")+'">q.uqcloud.net/CSSE2010</a>';

I've only just written this, and haven't tested it in a classroom yet. The class name seems fairly constant, though it looks like a random string. It also requires rerunning if you switch between light and dark mode.
You could also add it as a bookmarklet, though I haven't tested this either, and I don't know if UQ will save your bookmarks.

javascript: (()=>{document.getElementsByClassName("chakra-text css-1j0gm30")[0].innerHTML = 'CSSE2010 - <a href="https://q.uqcloud.net/CSSE2010" style="text-decoration: underline; color: '+(document.body.className == "chakra-ui-light" ? "darkblue" : "lightblue")+'">q.uqcloud.net/CSSE2010</a>';})();

Here's how it looks (in dark mode):
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants