mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 23:01:05 -05:00
Add suppress interstice option
This commit is contained in:
@@ -554,7 +554,7 @@ var Tools = {
|
||||
onclick = "return selectTab('" + m[1] + "');";
|
||||
} else {
|
||||
var event;
|
||||
if (Tools.interstice.isWhitelisted(fulluri)) {
|
||||
if (Tools.interstice.isWhitelisted(fulluri) || options.hideinterstice) {
|
||||
event = 'External link';
|
||||
} else {
|
||||
event = 'Interstice link';
|
||||
|
||||
@@ -556,6 +556,7 @@
|
||||
buf += '<p><label class="optlabel"><input type="checkbox" name="me" ' + (cur.hideme ? 'checked' : '') + ' /> Suppress <code>/me</code> <em>action formatting</em></label></p>';
|
||||
buf += '<p><label class="optlabel"><input type="checkbox" name="spoiler" ' + (cur.hidespoiler ? 'checked' : '') + ' /> Suppress spoiler hiding</label></p>';
|
||||
buf += '<p><label class="optlabel"><input type="checkbox" name="links" ' + (cur.hidelinks ? 'checked' : '') + ' /> Suppress clickable links</label></p>';
|
||||
buf += '<p><label class="optlabel"><input type="checkbox" name="interstice"' + (cur.hideinterstice ? 'checked' : '') + ' /> Don\'t warn for untrusted links</label></p>';
|
||||
buf += '<p><button name="close">Close</button></p>';
|
||||
this.$el.html(buf);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user