How Do I Create Direct URL Links to Replies in Multi-page Threads? - Microsoft Community


i participating in thread updates not working, has been searching updates hours 46 pages long , create url links re-direct users older replies in thread.

i have no problem finding url last 40 posts in thread.  can still use don varnau's suggestion <here> click orange rss feed button near top right of each page open summary of last forty posts in thread, right-click hot link (thread title) above post of interest , choose copy link location.  direct link in form https://answers.microsoft.com/message/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

i can't figure out how create these direct links replies if need go further last 40 posts.  in past right-click anywhere on webpage post of interest located , choose view page source view html source code.  each post on page had it's own unique message id (msgid) searched keyword or phrase used in reply author jump correct section of html, , scrolled few lines few lines find associated message id (e.g., msgid="c4a6a3e8-3bb5-4a25-b9f0-0e4422f985cd").  last step append alphanumeric message id url (i.e., https://answers.microsoft.com/message/ + message id = https://answers.microsoft.com/message/c4a6a3e8-3bb5-4a25-b9f0-0e4422f985cd) create direct link.

something must have changed in way replies on multi-page threads being linked because can no longer find correct msgid individual replies in html source code.  can't figure out how create url navigate users specific page in 1 of these multi-page threads (e.g., jump page 10).

© ウィンドウズスクリプトプログラマ - windows script programmer 2017
revised long link generator,
javascript:(function (d){var t=d.getelementsbyname('search.title')[0].content,u=location.href.replace(/[\?#].*/,""),dv=d.queryselectorall('div.thread-message[msgid]');var dl=dv.length,b,c,m,p,a=d.createelement("a");a.target="_blank";a.style.marginleft="20px";if(p=document.queryselector("span.selectedpagenumber")){p=parseint(p.innertext).tostring();}else{p="1";}u=u+"?page="+ p;t=t+" (page="+p+")";c=d.getelementbyid("threadquestion");a.href=u;a.textcontent=t;b=c.queryselector("button.message-user-info-link-history");b.parentelement.insertbefore(a,b.nextelementsibling);while(dl>0){dl--;a=a.clonenode(true);c=dv[dl];m=c.getattribute("msgid");a.href=u+"&messageid=" + m;a.textcontent=t+' ('+c.queryselector("a.user-name-show-white-space").innertext+' '+(b=c.queryselector("button.message-user-info-link-history")).innertext+')';b.parentelement.insertbefore(a,b.nextelementsibling);}})(document);

revised short generator,
javascript:(function (d){var t=d.getelementsbyname('search.title')[0].content,u=location.href.replace(/[\?#].*/,""),dv=d.queryselectorall('div.thread-message[msgid]');var dl=dv.length,b,c,e,m,p,a=d.createelement("a");a.target="_blank";a.style.marginleft="20px";if(p=document.queryselector("span.selectedpagenumber")){p=parseint(p.innertext).tostring();}else{p="1";}u=u+"?page="+ p;t=t+" (page="+p+")";c=d.getelementbyid("threadquestion");e=c.getattribute("ms.agtid");a.href=u;a.textcontent=t;b=c.queryselector("button.message-user-info-link-history");b.parentelement.insertbefore(a,b.nextelementsibling);while(dl>0){dl--;a=a.clonenode(true);c=dv[dl];m=c.getattribute("msgid");a.href="https://answers.microsoft.com/message/" + m+"?threadid=" + e;a.textcontent=t+' ('+c.queryselector("a.user-name-show-white-space").innertext+' '+(b=c.queryselector("button.message-user-info-link-history")).innertext+')';b.parentelement.insertbefore(a,b.nextelementsibling);}})(document);




Community Participation Center / Discuss the Microsoft Community site / Site bug or problem



Comments

Popular posts from this blog

Windows 10 does not have any of my previous Windows 7 email address. - Microsoft Community