您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Corrections of m.facebook.com CSS: text copy enabled
当前为
- // ==UserScript==
- // @name CSS: m.facebook.com - text copy
- // @description Corrections of m.facebook.com CSS: text copy enabled
- // @author MK
- // @homepage https://greasyfork.org/en/scripts/419355
- // @namespace https://greasyfork.org/users/309172
- // @include https://m.facebook.com/*
- // @include http://m.facebook.com/*
- // @version 1.0
- // @note v1.0 2020-12-29 - initial release
- // ==/UserScript==
- (function() {
- var css = `
- /*Remove the link which covers the whole message text*/
- a._5msj {
- visibility: hidden !important;
- }
- /*Make cursor normal*/
- body {
- cursor: auto !important;
- -webkit-text-size-adjust: auto !important;
- -moz-text-size-adjust: auto !important;
- -ms-text-size-adjust: auto !important;
- -o-text-size-adjust: auto !important;
- text-size-adjust: auto !important;
- }
- /*Allow text selection*/
- #viewport, #root, #MRoot, #m_news_feed_stream, #modalDialogView, ._5rgr, ._5rgu, ._5t8z, .widePic, ._56be, ._26pa, ._i81, ._1_uo {
- -webkit-user-select: text !important;
- -moz-user-select: text !important;
- -ms-user-select: text !important;
- -o-user-select: text !important;
- user-select: text !important;
- }
- `;
- if (typeof GM_addStyle != 'undefined') {
- GM_addStyle(css);
- } else if (typeof PRO_addStyle != 'undefined') {
- PRO_addStyle(css);
- } else if (typeof addStyle != 'undefined') {
- addStyle(css);
- } else {
- var node = document.createElement('style');
- node.type = 'text/css';
- node.appendChild(document.createTextNode(css));
- var heads = document.getElementsByTagName('head');
- if (heads.length > 0) {
- heads[0].appendChild(node);
- } else {
- // no head yet, stick it whereever
- document.documentElement.appendChild(node);
- }
- }
- })();