简体   繁体   English

是否可以使用时尚扩展更改元素的值?

[英]Is it possible to change the value of an element using Stylish extension?

<input type="text" role="combobox" aria-autocomplete="both" aria-expanded="false" aria-label="Search box. Find messages, documents, photos or people" class="select-input react-typeahead-input k_w W_6D6F P_Z1E2YFn i_6LEV M_0 b_0 A_6EWk y_ZwubDW I_T p_R Z_N ui-autocomplete-input" value="" placeholder="Find messages, documents, photos or people" tabindex="10" maxlength="2000" spellcheck="false" autocapitalize="off" autocomplete="on" autocorrect="off" data-rapid_p="2">

I want to change placeholder="Find messages, documents, photos or people" to placeholder="Search..." How to accomplish this using Stylish extension for Google Chrome? 我想将placeholder =“查找邮件,文档,照片或人物”更改为placeholder =“搜索...”如何使用适用于Google Chrome的时尚扩展程序来实现此目的? If it's not possible in Stylish, which JavaScript extension can I use for Google Chrome since Stylish doesn't support JavaScript. 如果无法在Fashion中使用,则我可以为Google Chrome使用哪个JavaScript扩展,因为Fashion不支持JavaScript。

As far as I'm aware it is not possible to do this with CSS, and therefore Stylish. 据我所知,不可能使用CSS做到这一点,因此无法做到时尚。 However, TamperMonkey is a Chrome extension that allows for Javascript userscripts to be injected into pages on load. 但是, TamperMonkey是一个Chrome扩展程序,允许Javascript用户脚本在加载时注入到页面中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM