A method and system using directive script in a web intermediary proxy machine that provides the function of a transcoder. The intermediary machine's transcoders are controlled by directive script that directs the order and properties of transcoder operations executed on one or more transcoders in the intermediary machine. These directive scripts are stored in an on-the-fly modifiable directive database accessible to the web intermediary proxy machine. The user's client machine browser passes an HTTP request to the web intermediary machine, which passes the HTTP request to a web content server, which returns an HTML response back to the web intermediary machine. This HTML response is sent to at least one transcoder that resides in or is at least accessible to the intermediary proxy machine. The transcoder identifies the type of device being used by the client from the HTTP request. The user's preference transcoding settings are retrieved in the form of directives from a directive script, preferably in XML format, retrieved from a settings database, and applied to the transcoders. The tailored transcoded response is then sent back to the user's client machine.