Commit 51e51eca authored by tunisiano187's avatar tunisiano187
Browse files

Merge branch '1-add-a-link-to-change-the-editor-level' into 'master'

Resolve "Add a link to change the editor level"

Closes #1

See merge request !1
parents 98916c14 446f35b0
......@@ -17,6 +17,10 @@ Then use the following links to install.
<a href="https://greasyfork.org/fr/scripts/370855-wmebr-filter">Main script</a>
To reset the language
----------------------
go to this url : <a href="https://wmebr.info/ur/purs_on_state.php#reset-WMEBR-editor-level">https://wmebr.info/ur/purs_on_state.php#reset-WMEBR-editor-level</a>
If you find any issue
---------------------
- press the report a bug on Tampermonkey/Greasemonkey (Prefered with follow)
......@@ -27,4 +31,8 @@ If you find any issue
Todos/Issues
------------
- See <a href="https://gitlab.com/WMEScripts/WMEBR-Filter/issues">this page</a>
\ No newline at end of file
- See <a href="https://gitlab.com/WMEScripts/WMEBR-Filter/issues">this page</a>
Changelog
---------
* 2018.08.04.01 - Add a link to reset the editor level
\ No newline at end of file
......@@ -3,7 +3,7 @@
// @namespace https://www.bowlman.org
// @description Filter the PURs results on the wmebr website to only show what we can handle
// @match https://wmebr.info/ur/purs_on_state.php*
// @version 0.1
// @version 2018.08.04.01
// @author tunisiano187 '2018
// @license MIT/BSD/X11
// @compatible chrome firefox
......@@ -15,6 +15,12 @@
(function() {
'use strict';
if(window.location.hash == ("#reset-WMEBR-editor-level")) {
localStorage.removeItem('WME-editor-level');
alert("Level resetted");
var fullpath = window.location.pathname+window.location.search;
window.location.href = fullpath;
}
var WMEeditorlevel=2;
if('WME-editor-level' in localStorage && localStorage.getItem('WME-editor-level') !=='0') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment