// ==UserScript== // @name 前台编辑文章入口 For Z-Blog // @description 置百丈玄冰而崩裂,掷须臾池水而漂摇。 // @namespace wdssmq // @include http://*/post/*.html // @version 2018-08-26 // @grant none // @downloadURL none // ==/UserScript== (function () { if (!window.jQuery) { return false; } var $ = window.jQuery; $(function () { $('.js-edt').each(function () { var id = $(this).data('id'); $(this).html('[编辑]'); }); if ($('#edtDateTime').length === 1) { $('#edtDateTime').datetimepicker('setDate', (new Date())); } }); })()