Skip to content

Commit 2680c05

Browse files
committed
Updated console instructions
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
1 parent b4f7ccb commit 2680c05

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,16 @@ Tampermonkey lets you install userscripts in Chrome, similarly to how Greasemonk
4747
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.
4848

4949
1. On the TPP stream page, open your broser's developer console.
50-
5150
* On Firefox, press `Ctrl` + `Shift` + `K`
5251
* On Chrome, press `Ctrl` + `Shift` + `J`
5352
* On Safari, press `Ctrl` + `Alt` + `I`
5453
* On IE9+, press `F12`
5554
* On Opera, press `Ctrl` + `Shift` + `I`
56-
57-
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)
58-
59-
2. Navigate to the userscript URL: https://raw.github.com/jpgohlke/twitch-chat-filter/master/chat_filter.user.js
55+
* 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)
6056

61-
3. Copy everything with `Ctrl` + `A` and paste it into the developer console on the TPP page.
57+
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';}) })();`
6258

63-
4. Press `Enter` to run the code.
59+
3. Press `Enter` to run the code.
6460

6561
## Developers
6662

0 commit comments

Comments
 (0)