How to find the function executed at pressing a link in this Discourse

Viewed 10

I am using freecodecamp discourse forum.

I was trying to write a script to reorganize the list of posts at page load (basically pressing "Views" tab twice.)

For example, if I click "Views" the posts are sorted, but I can't find the function that is being executed (such that I can write a script calling it.) Is it possible to find the function that a script is running (it is attached in the HTML element) such that I can call it as well ?

I'd like to know 2 basic questions:

  • How do you find the function ?
  • Can I write a JS script that firefox would always execute at that particular website?
0 Answers
Related