flomoapp hide memos

try to take over the world!

当前为 2021-03-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name flomoapp hide memos
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://flomoapp.com/*
  8. // @resource customCSS https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css
  9. // @require https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js
  10. // @require https://cdn.jsdelivr.net/npm/vue
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. function init() {
  18. $(".memos").hide();
  19. var a = '<input type="checkbox" id="phc" class="" name="time_end_clear_name">';
  20. $('.nickname').after(a);
  21.  
  22. $("#phc").click(function() {
  23. $(".memos").toggle();
  24. // alert("Hello World!");
  25. });
  26. }
  27. init();
  28. //可以延迟执行,如果执行有问题的话
  29. //setTimeout(()=>{
  30. // init()
  31. //}, 1000);
  32. // Your code here...
  33. })();