Skip to content

Commit

Permalink
Updated console instructions
Browse files Browse the repository at this point in the history
Updated console instructions to use the same snippet as the bookmarklet. @jpgohlke, can you update the reddit instructions with these? It will always give the user the latest published version of our code. Tested on Chrome and Firefox. Doesn't work in IE though because github returns the wrong MIME type with the Javascript.

The problem is described here: http://stackoverflow.com/questions/7180099/including-js-from-raw-github-com
and can only be solved by publishing a github page or using rawgithub.com
  • Loading branch information
ajhodges committed Feb 27, 2014
1 parent b4f7ccb commit 2680c05
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,16 @@ Tampermonkey lets you install userscripts in Chrome, similarly to how Greasemonk
If you don't want or can't install one of the previously mentioned browser extensions, one possibility is to run the script via the developer console. However, you will need to rerun the script every time you refresh the stream.

1. On the TPP stream page, open your broser's developer console.

* On Firefox, press `Ctrl` + `Shift` + `K`
* On Chrome, press `Ctrl` + `Shift` + `J`
* On Safari, press `Ctrl` + `Alt` + `I`
* On IE9+, press `F12`
* On Opera, press `Ctrl` + `Shift` + `I`

If you are having trouble opening your console, try reading the in depth explanation [here](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)

2. Navigate to the userscript URL: https://raw.github.com/jpgohlke/twitch-chat-filter/master/chat_filter.user.js
* If you are having trouble opening your console, try reading the in depth explanation [here](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)

3. Copy everything with `Ctrl` + `A` and paste it into the developer console on the TPP page.
2. Copy the following snippet and paste it into the developer console on the TPP page: `javascript:(function(){window.jQuery && $.getJSON('https://api.github.com/repos/jpgohlke/twitch-chat-filter/releases', function(data){ document.body.appendChild(document.createElement('script')).src='https://raw.github.com/jpgohlke/twitch-chat-filter/'+data[0].tag_name+'/chat_filter.user.js';}) })();`

4. Press `Enter` to run the code.
3. Press `Enter` to run the code.

## Developers

Expand Down

0 comments on commit 2680c05

Please sign in to comment.