Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Wykopowy walentynkowy czat - enter fix
- // @namespace http://wykop.pl/
- // @version 0.1
- // @description try to take over the world!
- // @author wloszczyn
- // @match http://www.wykop.pl/walentynki2016/room/*
- // @grant none
- // @require http://code.jquery.com/jquery-latest.js
- // ==/UserScript==
- (function() {
- 'use strict';
- $('form#chatForm #chatMessage').on('keypress', function(e) {
- if(e.keyCode==13 && !e.shiftKey){
- e.preventDefault();
- $("form#chatForm input[type=submit]").click();
- }
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement