Page 1 of 1

RFE: surrogate for Microsoft Support

Posted: Thu Jan 08, 2015 3:59 am
by thunderscript
Hello. On Microsoft Support website, articles (support information) are hidden when scripts are disabled.

Code: Select all

noscript.surrogate.microsoftSupport.replacement
document.getElementById('contentArea').style.display='';

noscript.surrogate.microsoftSupport.sources
!^https?://support\.microsoft\.com/
Example links:
https://support.microsoft.com/gp/howtoscript (How to enable JavaScript)
https://support.microsoft.com/kb/252985 (random KB article regarding XSS)

(Off-topic: their KB regards NoScript as a privacy extension, rather than security. For more information, we should refer to mozzila [sic].)

Re: RFE: surrogate for Microsoft Support

Posted: Thu Jan 08, 2015 11:24 am
by Giorgio Maone
Thanks for your contribution, it will be added in next release.

Re: RFE: surrogate for Microsoft Support

Posted: Wed Jan 28, 2015 9:11 pm
by Username
Any chance this surrogate can be updated to work on the following?

http://windows.microsoft.com/en-us/wind ... r-80070643
http://windows.microsoft.com/en-us/wind ... r-80070002

Those two require the microsoft and aspnetcdn scripts to be allowed before it will work.

And if, by chance or with little extra effort, any aspnetcdn surrogate created for the above fix would also work on virustotal.com where that works without allowing aspnetcdn, that would be appreciated also.

Thanks to thunderscript for Microsoft Support surrogate.

Re: RFE: surrogate for Microsoft Support

Posted: Wed Jan 28, 2015 10:11 pm
by barbaz
Sure, just change the noscript.surrogate.microsoftSupport prefs like this

Code: Select all

noscript.surrogate.microsoftSupport.replacement : let c=document.getElementById('contentArea');if(c)c.style.display='';for(let i of document.querySelectorAll('.tab-accordion *')) { i.style.display='inherit'; }
noscript.surrogate.microsoftSupport.sources : !support.microsoft.com windows.microsoft.com
It may be desirable to break that up into a second surrogate rather than sticking it on the end of the microsoftSupport surrogate,