I therefore request to some provide me with js selectors to know which pages user currently is visiting...
1] User profile Pages
Code: Select all
if (document.URL.indexOf('/u') != -1) {....}
2] Topic pages (no need default functionality provided by FM)
3] PM pages
Code: Select all
if (document.URL.indexOf('/privmsg') != -1) {....}
4] New Topic & Post reply pages
the above pages I need assisstance because the url changes for mode=newtopic or mode=postreply to /post when user presses preview button

5] After replying to post or posting newtopic
Code: Select all
var x = $('.page-title').text();
if (x.length == 12) {.....} //the above code references this:
<h1 class="page-title">Post a reply</h1>
comments plz;;