# Site configuration - use \<visit url="variableFromJavascript"\> ?

**URL:** <https://forums.plex.tv/t/site-configuration-use-visit-url-variablefromjavascript/16191>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 1, 2012, 9:10am UTC](https://forums.plex.tv/t/site-configuration-use-visit-url-variablefromjavascript/16191 "2012-04-01T09:10:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pencheff](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@pencheff](https://forums.plex.tv/u/pencheff)\
**Post date:** [April 1, 2012, 9:10am UTC](https://forums.plex.tv/t/site-configuration-use-visit-url-variablefromjavascript/16191/1 "2012-04-01T09:10:27Z")

</div>

Hello guys,  
  
  
  
I’m trying to fix The Daily Show and The Colbert Report plugins. I so far fixed the clips part by adding a manual click after a video is loaded (the clips are not autostarting and need to be clicked).  
  
  
  
Is there a way to use code something like this (but actually working):

```auto

<run script="var myVariable = 'http://google.com';" /><br />
<visit url="myVariable" /><br />

```

  
  
The problem is, I can watch those shows on my laptop, but when started from Plex I get "Sorry, this video is unavailable from your location" - I'm from Bulgaria.  
The plugins' site configurations are locking to the right flash player, but to actually make them work I need to just change the url from:  

```auto

http://media.mtvnservices.com/mgid:cms:episode:thedailyshow.com:411191

```

  
to:  

```auto

http://media.mtvnservices.com/player/prime/mediaplayerprime.1.12.1.swf?uri=mgid:cms:episode:thedailyshow.com:411191

```

  
  
I am doing this in javascript, but I couldn't find a way to tell WebKit to change to that page, window.location.href doesn't change the browser's location as in a normal web browser.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:47pm UTC](https://forums.plex.tv/t/site-configuration-use-visit-url-variablefromjavascript/16191/2 "2019-12-20T21:47:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
