From fe2abc0aee9fab35a1d16157df855e591325d988 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 11 Sep 2016 21:22:04 -0700 Subject: [PATCH] Update webpage for Tampermonkey in MS Edge. --- README.md | 5 ++++- template.jst | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5954b7f48..39b057384 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,11 @@ Several WebKitGTK+ based browsers have support for userscripts and can run 4chan echo '@on_event LOAD_FINISH spawn @scripts_dir/userscript.sh document-end' >> ${XDG_CONFIG_HOME:-$HOME/.config}/uzbl/config wget -P ${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/userscripts https://www.4chan-x.net/builds/4chan-X.user.js +### MS Edge +Install [Tampermonkey](https://www.microsoft.com/en-us/store/p/tampermonkey/9nblggh5162s), then **[click here to install 4chan X](https://www.4chan-x.net/builds/4chan-X.user.js)**. + ### Other browsers -4chan X can be used in some browsers that do not support userscripts, such as **Microsoft Edge**, using [a local proxy](https://github.com/ccd0/4chan-x-proxy). Not all features will work. +4chan X can be used in some browsers that do not support userscripts using [a local proxy](https://github.com/ccd0/4chan-x-proxy). Not all features will work. ## Beta version New features and non-urgent bugfixes are released on the beta channel for further testing before they are moved the stable version. Please [report](https://github.com/ccd0/4chan-x/issues?q=is%3Aopen+sort%3Aupdated-desc) any issues you find, and be sure to mention which version you're using. You should back up your settings regularly to prevent them from being lost due to bugs. diff --git a/template.jst b/template.jst index d3835d9d3..bbf671da1 100644 --- a/template.jst +++ b/template.jst @@ -60,7 +60,7 @@ var engine = (function() { if (/Presto\//.test(navigator.userAgent)) return 'presto'; })(); if (engine) { - var engines = {'firefox': 'gecko', 'chromium': 'blink presto', 'safari': 'webkit', 'webkitgtk': 'webkit', 'other-browsers': 'edge'}; + var engines = {'firefox': 'gecko', 'chromium': 'blink presto', 'safari': 'webkit', 'webkitgtk': 'webkit', 'ms-edge': 'edge', 'other-browsers': ''}; for (browser in engines) { document.getElementById(browser + '-hide').checked = (engines[browser].indexOf(engine) < 0); }