RFE: surrogate for Microsoft Support

Proposals for new surrogate scripts, updates/bug fixes to existing ones, tips and tricks to work around the lazy web.
Post Reply
thunderscript
Posts: 16
Joined: Sat Mar 23, 2013 8:24 pm

RFE: surrogate for Microsoft Support

Post 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].)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: RFE: surrogate for Microsoft Support

Post by Giorgio Maone »

Thanks for your contribution, it will be added in next release.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Username
Posts: 3
Joined: Sat Jan 17, 2015 10:42 pm

Re: RFE: surrogate for Microsoft Support

Post 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.
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: RFE: surrogate for Microsoft Support

Post 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,
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; NetBSD i386; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25
Post Reply