<commit_before>// ==UserScript==
// @name        Remove Max Width
// @namespace   https://github.com/jamesjonesmath/canvancement
// @description Override CSS to lets pages expand to full width of page
// @include     https://*.instructure.com/courses/*
// @version     1
// @grant       GM_addStyle
// ==/UserScript==
(function () {
  try {
    GM_addStyle('body:not(.full-width) .ic-app-main-layout-vertical {max-width:none;}');
    GM_addStyle('body:not(.full-width):not(.outcomes) .ic-Layout-wrapper {max-width:none;}');
  } 
  catch (e) {
    console.log(e);
  }
}) ();<commit_msg>Do not run on iframes<commit_after>// ==UserScript==
// @name        Remove Max Width
// @namespace   https://github.com/jamesjonesmath/canvancement
// @description Override CSS to lets pages expand to full width of page
// @include     https://*.instructure.com/courses/*
// @include     https://*.instructure.com/accounts/*
// @version     2
// @grant       GM_addStyle
// ==/UserScript==
(function () {
  try {
    // Do not run in iFrames
    if (window === parent.window) {
      GM_addStyle('body:not(.full-width):not(.outcomes) .ic-Layout-wrapper {max-width:none;}');
    }
  } 
  catch (e) {
    console.log(e);
  }
}) ();
{'fraction_non_alphanumeric': 0.18271604938271604, 'fraction_numerical': 0.0016460905349794238, 'mean_word_length': 2.872611464968153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1067553', 'n_tokens_mistral': 417, 'n_tokens_neox': 402, 'n_words': 87}