JSFiddle - React, Tailwind, and code Playground
JavaScript
[RL(match[3]));}//Convertgettopostparser=/<fo(?=r)rm((?:(?!method)[^>])*)(?:\s*method\s*=\s*(["']?)(get|post)\2)?([^>]*)>/ig;while(match=parser.exec(html))if(!match[3]||match[3].toLowerCase()!='post')html=html.replace(match[0],'<fo'+'rm'+match[1]+'method="post"'+match[4]+'><inputtype="hidden"name="convertGET"value="1">');//ProxyCSS:url(someurl.com/image.gif)parser=/url\s*\(['"]?([^'"\)]+)['"]?\)/ig;while(match=parser.exec(html))html=html.replace(match[0],'url('+parseURL(match[1])+')');//ProxyCSSimportingstylesheetsparser=/@import\s*['"]([^'"\(\)]+)['"]/ig;while(match=parser.exec(html))html=html.replace(match[0],'@import"'+parseURL(match[1])+'"');//ReturnchangedHTMLreturnhtml;}/******************************************************************Parsejavascriptonthefly-e.g.fromacompressedeval()******************************************************************/functionparseJS(js,de]]