Skip to content

Instantly share code, notes, and snippets.

View ejb1123's full-sized avatar
💭
Fun Stuff!

E.J. Bevenour ejb1123

💭
Fun Stuff!
  • 00:35 (UTC -04:00)
View GitHub Profile
@ejb1123
ejb1123 / source editor
Created July 3, 2013 14:32
changes web browser souce
Private strNewTitle As String = "New Title" 'Whatever value is going between the tags, a title in this case
Private strTag As String = "title" 'The tag to look for
Private Sub webOriginal_Navigated(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles webOriginal.Navigated
Dim strSource As String = webOriginal.DocumentText.ToLower 'Get the source
Dim iPos As Integer = 0 'Position counter (if replacing all tag occurrences)
Dim strStartTag As String = "<" & strTag & ">" 'Form the start and end tags
Dim strEndTag As String = "</" & strTag & ">"
'Use a loop if we want to replace all occurrences
Do
@ejb1123
ejb1123 / youtube.com.php
Created July 2, 2013 18:04
youtube plugin for glype
<?php
/*******************************************************************
* Glype is copyright and trademark 2007-2013 UpsideOut, Inc. d/b/a Glype
* and/or its licensors, successors and assigners. All rights reserved.
*
* Use of Glype is subject to the terms of the Software License Agreement.
* http://www.glype.com/license.php
******************************************************************/
define('high_quality', true);
<script src="http://jwpsrv.com/library/VWDgcuLVEeKEsyIACqoQEQ.js"></script>
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: 'http://www.youtube.com/watch?v=DqC7H7_Noi8',
width: '640',
height: '360'
});
</script>