CSS for Evernote

Adds some css to the Evernote web editor

当前为 2020-12-31 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CSS for Evernote
  3. // @version 1
  4. // @description Adds some css to the Evernote web editor
  5. // @author Smithers
  6. // @run-at document-end
  7. // @include /^https?:\/\/www\.evernote\.com\/home\.action.*n=.*$/
  8. // @include /^https?:\/\/www\.evernote\.com\/u\/0/Home\.action.*n=.*$/
  9. // @include /^https?:\/\/app\.yinxiang\.com\/Home\.action.*n=.*$/
  10. // @include /^https?:\/\/app\.yinxiang\.com\/u\/0/Home\.action.*n=.*$/
  11. // @match https://www.evernote.com/Home.action*
  12. // @match https://www.evernote.com/u/0/Home.action*
  13. // @match https://evernote.com/*
  14. // @match https://evernote.com/
  15. // @match https://evernote.com*
  16. // @match https://evernote.com
  17. // @match https://app.yinxiang.com/Home.action*
  18. // @match https://app.yinxiang.com/u/0/Home.action*
  19. // @noframes
  20. // @license MIT
  21. // @grant GM_registerMenuCommand
  22. // @grant GM_addStyle
  23. // @grant GM_setValue
  24. // @grant GM_getValue
  25. // @namespace https://greasyfork.org/users/721649
  26. // ==/UserScript==
  27. function addJS(jsCode) {
  28. var s = document.createElement('style');
  29. s.type = 'text/css';
  30. s.innerText = jsCode;
  31. document.getElementsByTagName('head')[0].appendChild(s);
  32. }
  33. var txt = 'en-note, body {border:10px solid red}';
  34. addJS( txt );