extensions/wtf-injector-firefox/lib/main.js
function disableInjectionForUrl(url, opt_skipReload) {
  var url = getCanonicalUrl(url);

  // Disable injection.
  setPagePreference(url, 'enabled', false);

  // Find existing page mod and disable.
  // This will detach workers in those tabs.
  var mod = activePageMods[url];
  if (!mod) {
    return;
  }
  mod.destroy();
  delete activePageMods[url];

  if (!opt_skipReload) {
    // Find tabs with the URL and reload.
    reloadTabsMatchingUrl(url);
  }
}
function disableInjectionForUrl(url, opt_skipReload) {
  var url = getCanonicalUrl(url);

  // Disable injection.
  setPagePreference(url, 'enabled', false);

  // Find existing page mod and disable.
  // This will detach workers in those tabs.
  var mod = activePageMods[url];
  if (!mod) {
    return;
  }
  mod.destroy();
  delete activePageMods[url];

  if (!opt_skipReload) {
    // Find tabs with the URL and reload.
    reloadTabsMatchingUrl(url);
  }
}
function disableInjectionForUrl ( url , opt_skipReload ) { var url = getCanonicalUrl ( url ) ; // Disable injection. setPagePreference ( url , 'enabled' , false ) ; // Find existing page mod and disable. // This will detach workers in those tabs. var mod = activePageMods [ url ] ; if ( ! mod ) { return ; } mod . destroy ( ) ; delete activePageMods [ url ] ; if ( ! opt_skipReload ) { // Find tabs with the URL and reload. reloadTabsMatchingUrl ( url ) ; } }
Disables injection for a URL and reloads tabs with that URL.
@param {string} url URL to activate on.
@param {boolean=} opt_skipReload Whether to skip reloading of pages.
Disables injection for a URL and reloads tabs with that URL .