Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!

User:Lisured/common.js

From the Club Penguin Wiki, the free, editable encyclopedia about Club Penguin
Revision as of 02:29, 23 April 2015 by imported>Lisured
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
var textbox = $('#wpTextbox1');
textbox.keydown(function(e) {
	if (textbox.is(':focus') && e.which == 66 && e.ctrlKey && !e.altKey) {
		$('.tool-button[rel="bold"]').click();
		e.preventDefault();
	}
});

addOnloadHook(function() {
    var editTab = document.getElementById("ca-edit");
    if (!editTab) return;
    var editURL = editTab.getElementsByTagName("a")[0].href;
    addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});