diff --git a/src/script.js b/src/script.js index 2fc01e7..519892d 100644 --- a/src/script.js +++ b/src/script.js @@ -990,10 +990,15 @@ $SS.exportOptions[key] = $SS.conf[key]; }; }; - $SS.conf["Margin Left"] = $SS.conf["Left Margin"] !== 999 ? $SS.conf["Left Margin"] : $SS.conf["Custom Left Margin"]; - $SS.conf["Margin Right"] = $SS.conf["Right Margin"] !== 999 ? $SS.conf["Right Margin"] : $SS.conf["Custom Right Margin"]; - $SS.conf["Margin Post Message"] = $SS.conf["Post Message Margin"] === 1 ? "4px 16px" : ($SS.conf["Post Message Margin"] === 3 ? "20px 40px" : ""); - $SS.conf["Width Decoration"] = $SS.conf["Decoration Width"] !== 999 ? $SS.conf["Decoration Width"] : $SS.conf["Custom Decoration Width"]; + + $SS.location = $SS.getLocation(); + + if (!$SS.location.report) { + $SS.conf["Margin Left"] = $SS.conf["Left Margin"] !== 999 ? $SS.conf["Left Margin"] : $SS.conf["Custom Left Margin"]; + $SS.conf["Margin Right"] = $SS.conf["Right Margin"] !== 999 ? $SS.conf["Right Margin"] : $SS.conf["Custom Right Margin"]; + $SS.conf["Margin Post Message"] = $SS.conf["Post Message Margin"] === 1 ? "4px 16px" : ($SS.conf["Post Message Margin"] === 3 ? "20px 40px" : ""); + $SS.conf["Width Decoration"] = $SS.conf["Decoration Width"] !== 999 ? $SS.conf["Decoration Width"] : $SS.conf["Custom Decoration Width"]; + }; }, get: function(name) { var val = this.hasGM ? @@ -3398,6 +3403,7 @@ sub: obj.hostname.split(".")[0], board: pathname[0], home: location.hostname === "www.4chan.org", + report: location.hostname === "sys.4chan.org", nsfw: /^(aco|b|bant|d|e|f|gif|h|hr|r|s|t|u|wg|i|ic|r9k|hm|y|hc|pol|soc|s4s|trash)$/.test(pathname[0]), reply: pathname[1] === "thread", catalog: pathname[1] === "catalog",