/** * no-entering.js * * Copyright HeavenlyStar * Release: 2016-5-24 * Last Update: 2016-5-25 * author 御縁 */ $(function(){ $("a[href *= '/servlet/HiEntry?roomno=']").each( function() { $(this).attr('href', 'javascript:;'); $(this).attr('onclick', 'javascript: alert("現在入室禁止です!");'); }); });