判断字符串不超过20个字符

After over a decade of staunchly restricting users to 140 characters in each message, Twitter just flipped the switch and enabled 280 characters in most supported languages. And not everyone is happy.

经过十多年的严格限制,每条消息中的用户只能使用140个字符,Twitter才启用了该开关,并以大多数受支持的语言启用了280个字符 。 并不是每个人都快乐。

Most users seem at least grudgingly accepting of the new dynamic, but if you just can’t stand all these Double Stuff tweets for some reason, here’s how to hide them in your browser.

大多数用户似乎至少会勉强接受新的动态,但是如果由于某种原因您不能忍受所有这些Double Stuff推文,可以通过以下方法将它们隐藏在浏览器中。

在Twitter主页上 (On the Twitter Homepage)

There are already multiple Chrome extensions that will either completely hide 141+ character tweets, or simply truncate them down to the original limit. The best one I’ve found is called 140 Characters Only. When installed and enabled, it simply cuts off any tweet on Twitter’s homepage or embedded tweets that goes for more than 140 characters. Like this:

已经有多个Chrome扩展程序将完全隐藏141个以上的字符推文,或者将其截短至原始限制。 我发现最好的一个叫做“ 140个字符” 。 安装并启用后,它只会截断Twitter主页上的任何推文或嵌入的推文,这些推文的长度超过140个字符。 像这样:

Left: a standard extra-long tweet. Right: the same tweet truncated with 140 Characters Only.
左:标准超长鸣叫。 右:同一条推文仅被截断为140个字符。

If you’d like something a little more flexible, Block280 will collapse 141+ character tweets, showing you the original poster and anyone in the message chain. It’s better for someone who wants to completely ignore all long tweets, but it was made a couple of months before the full switch, and it has some issues. Specifically, it will block any message with a chain or attachments that go beyond the original 140 character limit, including embedded links and images. It’s great if you want to restrict your feed to only short text messages, but limited otherwise.

如果您想要更灵活的东西, Block280将折叠141个以上的字符推文,向您显示原始海报和消息链中的任何人。 对于想要完全忽略所有长条推文的人来说更好,但是它是在完全转换之前几个月提出的,并且存在一些问题。 具体来说,它将阻止任何超过原始140个字符限制的带有链或附件的消息,包括嵌入的链接和图像。 如果您希望将供稿限制为短文本消息,否则将其限制为很好。

At the time of writing Tweets Truncator trims Twitter messages for Firefox users, but there doesn’t appear to be an option for Opera. That may change rather quickly as Twitter users get tired of the Double Stuff life.

在撰写推文时,Truncator会为Firefox用户修剪Twitter消息,但Opera似乎没有选择。 随着Twitter用户对Double Stuff生活的厌倦,这种情况可能会很快改变。

Note that all of these extensions require permission to see everything you view on Twitter.com, but seeing as those are fairly light permissions, we’re comfortable recommending them.

请注意,所有这些扩展都需要权限才能查看您在Twitter.com上查看的所有内容,但是鉴于这些权限相当轻巧,我们很推荐您使用它们。

在TweetDeck (On TweetDeck)

If you prefer TweetDeck for your tweet-reading, the open source third-party extension Better TweetDeck has you covered. It’s available for Chrome, Firefox, and Opera.

如果您更喜欢TweetDeck进行tweet阅读,则可以使用开源第三方扩展程序Better TweetDeck。 它适用于Chrome , Firefox和Opera 。

Download and install it, then go to the extension settings page and click “Content.” Click the check box next to the setting marked “Enable regular expression support in Mute filters.” Click “save” at the top of the page.

下载并安装它,然后转到扩展程序设置页面并单击“内容”。 单击标记为“在静音过滤器中启用正则表达式支持”的设置旁边的复选框。 点击页面顶部的“保存”。

Now go to TweetDeck itself in a new tab. Click the settings gear icon in the lower-left corner, then click “Mute.”

现在,在新选项卡中转到TweetDeck本身 。 点击左下角的设置齿轮图标,然后点击“静音”。

Under the “Matching” entry, add this text: ^[^]{141,}$ and click “Mute.”

在“匹配”条目下,添加以下文本: ^ [^] {141,} $ ,然后单击“静音”。

Now every tweet over 140 characters will disappear from all of your TweetDeck columns. Neat, huh? The mute function will appear on all Twitter products, but it will only affect TweetDeck in browsers with the Better TweetDeck extension installed and regular expression support enabled. To reverse this change, just delete the mute filter.

现在,所有超过140个字符的推文都会从所有TweetDeck列中消失。 整洁吧? 静音功能将出现在所有Twitter产品上,但仅会在安装了Better TweetDeck扩展并启用正则表达式支持的浏览器中影响TweetDeck。 要撤消此更改,只需删除静音过滤器。

在移动 (On Mobile)

At the time of this writing, there’s no way to block or truncate longer tweets on Android or iOS apps. Keep an eye on the more active mobile developers, however—it’s likely that such a feature is on their to-do lists.

在撰写本文时,还没有办法阻止或截断Android或iOS应用上的较长推文。 但是,请注意更活跃的移动开发人员 -他们的工作清单上可能有这样的功能。

翻译自: https://www.howtogeek.com/332423/how-to-block-tweets-over-140-characters-if-you-really-must/

判断字符串不超过20个字符

判断字符串不超过20个字符_如何阻止超过140个字符的推文(如果确实需要)相关推荐

  1. java 正则 单个字符_正则表达式教程之匹配单个字符详解

    本文实例讲述了正则表达式教程之匹配单个字符.分享给大家供大家参考,具体如下: 注:在所有例子中正则表达式匹配结果包含在源文本中的[和]之间,有的例子会使用Java来实现,如果是java本身正则表达式的 ...

  2. python中输出变量对应值的字符_第2章 Python基础-字符编码数据类型 字符编码字符串 练习题...

    1.简述位.字节的关系 位(bit)是计算机中最小的表示单元,数据传输是以"位"为单位的,1bit缩写为1b 字节(Byte)是计算机中最小的存储单位,1Byte缩写为1B 8bi ...

  3. c#读取指定字符后的字符_在C#中读取字符的不同方法

    c#读取指定字符后的字符 As we know that, Console.ReadLine() is used for input in C#, it actually reads a string ...

  4. python随机读取字符_利用python3随机生成中文字符的实现方法

    前言 运行环境在Python3.6下,Python2的解决方案网上有很多.,想学习python2实现的朋友们可以参考这篇文章:https://www.jb51.net/article/34884.ht ...

  5. comsol临时文件夹中有不支持的字符_文件名中不能包含的字符

    文件名是为了方便人们区分计算机中的不同文件,而给每个文件设定一个指定的名称.由文件主名和扩展名组成. DOS操作系统规定文件名由文件主名和扩展名组成,文件主名由1~8个字符组成,扩展名由1~3个字符组 ...

  6. python怎么把图片变成字符_用Python把图片变成字符画

    更新!项目最新地址链接:click me 我们先来看一下效果(图为知乎的吉祥物:刘看山) 原画 字符画(由于图片较大,所以截图的时候未截完整:P) 代码在此,简单讲解请看代码的注释部分,部分详解在代码 ...

  7. 在java编程中会使用汉字字符_在java程序中将中文字符写入文件中或者是将文件中的中文字符读入程序时会出现乱码或者一串“?”,求...

    /** 现在不用qq了. */ /** * 写出文件 * @param content * @param fileName * @param charsetName */ public  void w ...

  8. 电脑开机出现奇怪字符_电脑开机出现一串字符,进不来桌面

    DMI是英文单词Desktop Management Interface的缩写,也就是桌面管理界面,它含有关于系统硬件的配置信息.计算机每次启动时都对DMI数据进行校验,如果该数据出错或硬件有所变动, ...

  9. lstm 文本分类_带有lstm和单词嵌入的灾难推文上的文本分类

    lstm 文本分类 This was my first Kaggle notebook and I thought why not write it on Medium too? Ť他是我第一次Kag ...

最新文章

  1. PostgreSQL 10.1 手册_部分 III. 服务器管理_第 21 章 数据库角色_21.4. 删除角色
  2. 9个常用iptables配置实例
  3. cmake 编译文件 CMakeLists.txt 语法介绍与实例演练
  4. ODBC驱动,没装怎么办
  5. 云栖·追踪云原生|Serverless入围阿里云十大核心技术
  6. android 软键盘显示和隐藏造成页面跳闪问题的解决方案
  7. Linux查看端口使用状态及启动
  8. 管中窥“视频”,“理解”一斑 —— 视频理解概览
  9. Xamarin只言片语4——Xamarin.Android百度地图绑定
  10. Linux命令之ifconfig
  11. HDU3534 给你一个树让你找出其中最长路径以及个数数
  12. android webview测速,学习分享,echarts模拟宽带测速效果 附Demo演示地址!!
  13. securecrt 乱码_SecureCRT远程连接Linux,配置端点和字节码
  14. jsonp使用,spring4.x对jsonp的支持
  15. swagger上传文件并支持jwt认证
  16. 不用空格怎么打两个空格_身份证号码中有空格,你让我怎么替换?
  17. 每日学习笔记(17)
  18. 中科院-杨力祥视频教程 05课程
  19. python输出姓名_如何用Python生成若干个随机姓名?男女取名有方法,不能千篇一律...
  20. 练习华为大型公司网络构建拓扑图

热门文章

  1. Navicat提示Access violation at address 004E9844 in module ‘navicat.exe’
  2. 什么是API,SDK 两者有什么关系?
  3. 浅析2017年医疗类APP开发前景
  4. 控制科学与工程(自动化)保研经验【2】——南开、同济篇
  5. 直播当道,平台该如何做好内容审核规避风险?
  6. 最优传输系列(一):最优传输入门及Monge-Kantorovitch Problem
  7. sort函数用法使用lambda表达式自定义sort排序方法
  8. echarts 柱状图数字在顶部显示
  9. 侍魂无限跳服务器,经典游戏《真侍魂》橘右京的无限残像,对手就这么活活的被挡死了...
  10. 密码学课程设计之DES对称加密