Pastebin CTRL+S in Editor

Allows CTRL+S to update the script.

当前为 2015-01-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Pastebin CTRL+S in Editor
  3. // @version 1.0.0
  4. // @description Allows CTRL+S to update the script.
  5. // @author celliott1997
  6. // @match http*://*pastebin.com/*
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. $(document).ready(function(){
  11. var TextArea = $("textarea#paste_code");
  12. var SubmitBtn = $("input.button1.btnbold[type='submit']");
  13. if (TextArea.length && SubmitBtn.length){
  14. $(document).keydown(function(evt){
  15. if (evt.ctrlKey && (evt.which == 83)){
  16. evt.preventDefault();
  17. SubmitBtn.click();
  18. };
  19. });
  20. };
  21. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址