晓黑板删除非当天讨论的油猴脚本

// ==UserScript==
// @name         晓黑板
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://web.xiaoheiban.cn/*
// @grant        none
// @require      https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
      //alert(123);
    console.log(111);

        var jumpButton = $(`
            <div id="mywidget" href='javascript:void(0)' target='_blank' style="z-index:9999; position:fixed;left:0px;top:280px;">
                <a href="#" id="vparse">❀清理数据<div id="myplaybutton"></div></a>
            </div>
            `);

            $("body").append(jumpButton);

    $("#mywidget").click(function () {

        $('.message-time').each(function(e,i){

        // console.log($(this).text());
        if($(this).text().indexOf('/')>0)
            $(this).parent().parent().html(11);
        });

    });
     
   
    // Your code here...
})();
View Code

 

posted on 2018-12-27 22:17  隨風.NET  阅读(365)  评论(0编辑  收藏  举报

导航