Changeset 692

Show
Ignore:
Timestamp:
03/16/08 05:27:37 (9 months ago)
Author:
oyasu..@gmail.com
Message:

Semi colon normalization: removes all cases of improper ; after a normal function definition. Also adds a few missing assignment expression ;s I noted.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/chrome/chromeFiles/content/accelimation.js

    r691 r692  
    3535  this.id = Accelimation.instances.length; 
    3636  this.onend = null; 
    37 }; 
     37} 
    3838 
    3939//===================================================================== 
  • trunk/src/chrome/chromeFiles/content/browser.js

    r688 r692  
    418418  // set the enabled/disabled state 
    419419  GM_BrowserUI.generalMenuEnabledItem.setAttribute("checked", GM_getEnabled()); 
    420 }; 
     420} 
    421421 
    422422function GM_showPopup(aEvent) { 
     
    503503  var foundInjectedScript = !!(runsFramed.length + runsOnTop.length); 
    504504  document.getElementById("gm-status-no-scripts").collapsed = foundInjectedScript; 
    505 }; 
     505} 
    506506 
    507507/** 
     
    521521    closeMenus(aEvent.target); 
    522522  } 
    523 }; 
     523} 
    524524 
    525525/** 
     
    629629 
    630630// necessary for webProgressListener implementation 
    631 GM_BrowserUI.onProgressChange = function(webProgress,b,c,d,e,f){} 
    632 GM_BrowserUI.onStateChange = function(a,b,c,d){} 
    633 GM_BrowserUI.onStatusChange = function(a,b,c,d){} 
    634 GM_BrowserUI.onSecurityChange = function(a,b,c){} 
    635 GM_BrowserUI.onLinkIconAvailable = function(a){} 
     631GM_BrowserUI.onProgressChange = function(webProgress,b,c,d,e,f){}; 
     632GM_BrowserUI.onStateChange = function(a,b,c,d){}; 
     633GM_BrowserUI.onStatusChange = function(a,b,c,d){}; 
     634GM_BrowserUI.onSecurityChange = function(a,b,c){}; 
     635GM_BrowserUI.onLinkIconAvailable = function(a){}; 
    636636 
    637637GM_BrowserUI.showHorrayMessage = function(scriptName) { 
  • trunk/src/chrome/chromeFiles/content/config.js

    r690 r692  
    1111  this._updateVersion(); 
    1212  this._load(); 
    13 }; 
     13} 
    1414 
    1515Config.prototype = { 
     
    396396  this._requires = []; 
    397397  this._resources = []; 
    398 }; 
     398} 
    399399 
    400400Script.prototype = { 
     
    500500  this._tempFile = null; // Only for scripts not installed 
    501501  this._filename = null; 
    502 }; 
     502} 
    503503 
    504504ScriptRequire.prototype = { 
     
    545545 
    546546  this._name = null; 
    547 }; 
     547} 
    548548 
    549549ScriptResource.prototype = { 
  • trunk/src/chrome/chromeFiles/content/convert2RegExp.js

    r691 r692  
    4949  } 
    5050  return new RegExp(res + '$', "i"); 
    51 }; 
     51} 
  • trunk/src/chrome/chromeFiles/content/manage.js

    r691 r692  
    7474       selectedScript.enabled = chkEnabled.checked; 
    7575  }, false); 
    76 }; 
     76} 
    7777 
    7878function updateDetails() { 
     
    104104    pagesControl.populate(selectedScript); 
    105105  } 
    106 }; 
     106} 
    107107 
    108108function handleEditButton() { 
    109109  openInEditor(selectedScript); 
    110 }; 
     110} 
    111111 
    112112function handleUninstallButton() { 
    113113  var uninstallPrefs = document.getElementById("chkUninstallPrefs").checked; 
    114114  config.uninstall(selectedScript, uninstallPrefs); 
    115 }; 
     115} 
    116116 
    117117function populateChooser() { 
     
    119119  for (var i = 0, script = null; (script = scripts[i]); i++) 
    120120    addListitem(script, i); 
    121 }; 
     121} 
    122122 
    123123function addListitem(script, i) { 
     
    134134 
    135135  listbox.appendChild(listitem); 
    136 }; 
     136} 
    137137 
    138138function chooseScript(index) { 
    139139  listbox.selectedIndex = index; 
    140140  listbox.focus(); 
    141 }; 
     141} 
    142142 
    143143// allow reordering scripts with keyboard (alt- up and down) 
     
    153153  else if (KeyEvent.DOM_VK_DOWN == event.keyCode) 
    154154    move = config.move(listbox.selectedItem.script, 1); 
    155 }; 
     155} 
    156156 
    157157// allow reordering scripts with drag-and-drop 
  • trunk/src/chrome/chromeFiles/content/menucommander.js

    r691 r692  
    1  
    21function GM_MenuCommander() { 
    32  GM_log("> GM_MenuCommander") 
     
    1615 
    1716  GM_log("< GM_MenuCommander") 
    18 }; 
     17} 
    1918 
    2019GM_MenuCommander.prototype.registerMenuCommand = 
  • trunk/src/chrome/chromeFiles/content/miscapis.js

    r688 r692  
    55                                     script.name, 
    66                                     "."].join("")); 
    7 }; 
     7} 
    88 
    99GM_ScriptStorage.prototype.setValue = function(name, val) { 
     
    2525function GM_Resources(script){ 
    2626  this.script = script; 
    27 }; 
     27} 
    2828 
    2929GM_Resources.prototype.getResourceURL = function(name) { 
     
    5959 
    6060  this.prefix = [namespace, script.name, ": "].join(""); 
    61 }; 
     61} 
    6262 
    6363GM_ScriptLogger.prototype.log = function(message) { 
     
    7777  style.innerHTML = css; 
    7878  head.appendChild(style); 
    79 }; 
     79} 
    8080 
    8181function GM_console(script) { 
     
    9999    ); 
    100100  }; 
    101 }; 
     101} 
    102102 
    103103GM_console.prototype.log = function() { 
  • trunk/src/chrome/chromeFiles/content/newscript.js

    r691 r692  
    5252 
    5353  return true; 
    54 }; 
     54} 
    5555 
    5656// assemble the XUL fields into a script template 
     
    9898 
    9999  return script; 
    100 }; 
     100} 
  • trunk/src/chrome/chromeFiles/content/pages-overlay.js

    r691 r692  
    6767      selectedPage = self.listbox.getSelectedItem(0); 
    6868      self.btnRemove.disabled = selectedPage == null; 
    69     }; 
     69    } 
    7070 
    7171    function promptForNewPage(ev) { 
     
    9090        dirty = true; 
    9191      } 
    92     }; 
     92    } 
    9393 
    9494    this.pageAdded = function(val) { 
     
    106106        dirty = true; 
    107107      } 
    108     }; 
     108    } 
    109109 
    110110    this.pageRemoved= function(index) { 
     
    116116      listitem.setAttribute("label", pageSpec); 
    117117      self.listbox.appendChild(listitem); 
    118     }; 
     118    } 
    119119  } 
    120 }; 
     120} 
  • trunk/src/chrome/chromeFiles/content/prefmanager.js

    r691 r692  
    141141    } 
    142142  }; 
    143 }; 
     143} 
  • trunk/src/chrome/chromeFiles/content/scriptdownloader.js

    r691 r692  
    88  this.dependenciesLoaded_ = false; 
    99  this.installOnCompletion_ = false; 
    10 }; 
     10} 
    1111 
    1212ScriptDownloader.prototype.startInstall = function() { 
     
    222222}; 
    223223 
    224 function NotificationCallbacks() { 
    225 }; 
     224function NotificationCallbacks() {} 
    226225 
    227226NotificationCallbacks.prototype.QueryInterface = function(aIID) { 
     
    242241 
    243242 
    244 function PersistProgressListener(persist)
     243function PersistProgressListener(persist)
    245244  this.persist = persist; 
    246245  this.onFinish = function(){}; 
    247246  this.persiststate = ""; 
    248 }; 
     247} 
    249248 
    250249PersistProgressListener.prototype.QueryInterface = function(aIID) { 
  • trunk/src/chrome/chromeFiles/content/utils.js

    r691 r692  
    99function GM_isDef(thing) { 
    1010  return typeof(thing) != "undefined"; 
    11 }; 
     11} 
    1212 
    1313function GM_getConfig() { 
     
    1616    .getService(Components.interfaces.gmIGreasemonkeyService) 
    1717    .wrappedJSObject.config; 
    18 }; 
     18} 
    1919 
    2020function GM_hitch(obj, meth) { 
     
    3939    return obj[meth].apply(obj, args); 
    4040  }; 
    41 }; 
     41} 
    4242 
    4343function GM_listen(source, event, listener, opt_capture) { 
    4444  Components.lookupMethod(source, "addEventListener")( 
    4545    event, listener, opt_capture); 
    46 }; 
     46} 
    4747 
    4848function GM_unlisten(source, event, listener, opt_capture) { 
    4949  Components.lookupMethod(source, "removeEventListener")( 
    5050    event, listener, opt_capture); 
    51 }; 
     51} 
    5252 
    5353/** 
     
    6969 
    7070  consoleService.logMessage(consoleError); 
    71 }; 
     71} 
    7272 
    7373function GM_log(message, force) { 
     
    7575    GM_consoleService.logStringMessage(message); 
    7676  } 
    77 }; 
     77} 
    7878 
    7979function GM_openUserScriptManager() { 
     
    197197  name = name.substring(name.lastIndexOf("/") + 1); 
    198198  return name; 
    199 }; 
     199} 
    200200 
    201201function getTempFile() { 
     
    210210 
    211211  return file; 
    212 }; 
     212} 
    213213 
    214214function getBinaryContents(file) { 
     
    226226 
    227227    return bytes; 
    228 }; 
     228} 
    229229 
    230230function getContents(file, charset) { 
     
    255255    return str; 
    256256  } 
    257 }; 
     257} 
    258258 
    259259function getWriteStream(file) { 
     
    264264 
    265265  return stream; 
    266 }; 
     266} 
    267267 
    268268function GM_getUriFromFile(file) { 
     
    287287 
    288288  return file 
    289 }; 
     289} 
    290290 
    291291/** 
     
    339339    return null; 
    340340  } 
    341 }; 
     341} 
    342342 
    343343function ge(id) { 
    344344  return window.document.getElementById(id); 
    345 }; 
     345} 
    346346 
    347347 
     
    360360 
    361361  alert(s); 
    362 }; 
     362} 
    363363 
    364364function delaydbg(o) { 
    365365  setTimeout(function() {dbg(o);}, 1000); 
    366 }; 
     366} 
    367367 
    368368function delayalert(s) { 
    369369  setTimeout(function() {alert(s);}, 1000); 
    370 }; 
     370} 
    371371 
    372372function GM_isGreasemonkeyable(url) { 
     
    378378          scheme == "ftp" || url.match(/^about:cache/)) && 
    379379          !/hiddenWindow\.html$/.test(url); 
    380 }; 
     380} 
    381381 
    382382function GM_isFileScheme(url) { 
     
    386386 
    387387  return scheme == "file"; 
    388 }; 
     388} 
    389389 
    390390function GM_getEnabled() { 
    391391  return GM_prefRoot.getValue("enabled", true); 
    392 }; 
     392} 
    393393 
    394394function GM_setEnabled(enabled) { 
    395395  GM_prefRoot.setValue("enabled", enabled); 
    396 }; 
     396} 
    397397 
    398398 
     
    405405    logf.apply(null, arguments); 
    406406  } 
    407 }; 
     407} 
    408408 
    409409function logf(message) { 
     
    413413 
    414414  dump(message + "\n"); 
    415 }; 
     415} 
    416416 
    417417/** 
     
    425425    } 
    426426  } 
    427 }; 
     427} 
    428428 
    429429function gen_loggify_wrapper(meth, objName, methName) { 
     
    448448    } 
    449449  } 
    450 }; 
     450} 
  • trunk/src/chrome/chromeFiles/content/xmlhttprequester.js

    r691 r692  
    22  this.unsafeContentWin = unsafeContentWin; 
    33  this.chromeWindow = chromeWindow; 
    4 }; 
     4} 
    55 
    66// this function gets called by user scripts in content security scope to 
  • trunk/src/components/greasemonkey.js

    r690 r692  
    1515    .getService(Ci.nsIPromptService) 
    1616    .alert(null, "Greasemonkey alert", msg); 
    17 }; 
     17} 
    1818 
    1919// Examines the stack to determine if an API should be callable. 
     
    4141 
    4242  return true; 
    43 }; 
     43} 
    4444 
    4545var greasemonkeyService = { 
     
    489489function NSGetModule(compMgr, fileSpec) { 
    490490  return Module; 
    491 }; 
     491} 
    492492 
    493493//loggify(Module, "greasemonkeyService:Module"); 
  • trunk/src/install.js

    r691 r692  
    129129        return; 
    130130  } 
    131 }; 
     131} 
    132132 
    133133var InstToProfile = true;