CSS: m.facebook.com - text copy

Corrections to UI of Facebook for mobile browsers: text copy enabled

目前为 2022-02-05 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: m.facebook.com - text copy
  3. // @description Corrections to UI of Facebook for mobile browsers: text copy enabled
  4. // @author MK
  5. // @namespace max44
  6. // @homepage https://greasyfork.org/en/users/309172-max44
  7. // @include https://m.facebook.com/*
  8. // @include http://m.facebook.com/*
  9. // @icon https://static.xx.fbcdn.net/rsrc.php/yD/r/d4ZIVX-5C-b.ico
  10. // @version 1.1.2
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. var css = `
  16. /*Remove the link which covers the whole message text*/
  17. a._5msj {
  18. visibility: hidden !important;
  19. }
  20.  
  21. /*Make cursor normal*/
  22. body {
  23. cursor: auto !important;
  24. -webkit-text-size-adjust: auto !important;
  25. -moz-text-size-adjust: auto !important;
  26. -ms-text-size-adjust: auto !important;
  27. -o-text-size-adjust: auto !important;
  28. text-size-adjust: auto !important;
  29. }
  30.  
  31. /*Allow text selection*/
  32. #viewport, #root, #MRoot, #m_news_feed_stream, #modalDialogView, ._5rgr, ._5rgu, ._5t8z, .widePic, ._56be, ._26pa, ._i81, ._1_uo {
  33. -webkit-user-select: text !important;
  34. -moz-user-select: text !important;
  35. -ms-user-select: text !important;
  36. -o-user-select: text !important;
  37. user-select: text !important;
  38. }
  39. `;
  40.  
  41. if (typeof GM_addStyle != 'undefined') {
  42. GM_addStyle(css);
  43. } else if (typeof PRO_addStyle != 'undefined') {
  44. PRO_addStyle(css);
  45. } else if (typeof addStyle != 'undefined') {
  46. addStyle(css);
  47. } else {
  48. var node = document.createElement('style');
  49. node.type = 'text/css';
  50. node.appendChild(document.createTextNode(css));
  51. document.documentElement.appendChild(node);
  52. }
  53. })();