Article From:https://segmentfault.com/q/1010000010928945
Question:

An HTML contains the following script. After removing the script, there are some changes in the overall style of the web page. Is there any way to download the style in the script and call it locally?

<script>
window.jsui={
    www: 'http://www.abc.com/zt',
    uri: 'http://www.abc.com/zt/wp-content/themes/zt',
    ver: '1.0',
    roll: ["1","2"],
    ajaxpager: '0',
    url_rp: 'http://www.abc.com/zt/reset-password'
};
</script> 

Answer 0:

I fumbled and solved it, and recorded the backup.

It is loaded with a main.js
Put main.js in the JS directory and upload it to your website, such as http://www.abc.com/js/main.js.
Then you can change URI to your website http://www.abc.com.

Answer 1:

You should define a global variable yourself, and the effect is similar to that of VaR jsui.

Answer 2:

It should be after the JS gets the window.jsui parameter and loads the stylesheet so that the address or version number of the stylesheet can be modified directly by modifying the parameters of the window.jsui. You can look for specific code to use jsui, and then you can find the style address.了

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *