Pukiwiki Submit

Pukiwikiの編集画面でAlt + sで更新をする

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Pukiwiki Submit
// @namespace   [email protected]
// @description Pukiwikiの編集画面でAlt + sで更新をする
// @include     /^https?://.*?/pukiwiki/.*$/
// @version     2
// @grant       none
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==

(function () {
  document.addEventListener('keydown', function (e) {
    // pressed Alt + s
    if (e.keyCode == 83 && !e.shiftKey && !e.ctrlKey && e.altKey && !e.metaKey) {
      $('input[name="notimestamp"]').prop("checked", true);
      var write = $('input[value="ページの更新"]');
      write[0].click();
    }
  }, false);
}) ();