Twitter: view more replies and remove useless sections

View more replies and remove useless sections from twitter

< 腳本Twitter: view more replies and remove useless sections的回應

評論:正評 - 腳本一切正常

§
發表於:2021-11-21

I turned on the error log in Kiwi, and there is an error reported after the script runs on twitter:

Uncaught ReferenceError: $ is not defined
Context: https://mobile.twitter.com/home
Stack Trace: script.js:98 (anonymous function)

98: $( "span:contains('Topics to follow')" ).parent().parent().parent().parent().parent().hide().next().hide().next().hide().next().hide();

max44作者
§
發表於:2021-11-25

Hi,

I installed Kiwi on my phone, installed Tampermonkey and this script, opened twitter.com and everything works okay (except the bug with "Show more replies" mentioned in description). Could you please provide me with a link to exact twit, which does not look as you expect? Screenshots would be nice too.

§
發表於:2021-11-25

I may be misunderstanding the installation. Since Kiwi appears to directly support loading user.js extensions, I directly loaded this script into Kiwi on the kiwi://extensions page. Is it necessary to install Tempermonkey as an extension in Kiwi, and then install this script in Tampermonkey? I tried to install Tampermonkey previously in Kiwi, but it appears to redirect to a Play Store App rather than an extension for Kiwi.

§
發表於:2021-11-25

Here's a screenshot of Kiwi

max44作者
§
發表於:2021-11-25

Any script published on this resourse, can work only inside Tampermonkey, Violentmonkey or other script management environment.

I'm not aware of Kiwi's direct support for user scripts.

§
發表於:2021-11-25

Solved it with trial and error. The "+(from store)" button takes me to chrome.google.com. Searching on Tampermonkey offers "Tampermonkey" "Tampermonkey Beta" and "Clipcopy for Tampermonkey". I first tried "Tampermonkey" and the Android "Get it" link which took me the Play store for an App, not an extension. This time I tried the link to the Tampermonkey.net site which offers an link to "Install in Chrome". I tried that and it successfully installs in Kiwi. Then I proceeded to install this user script, which takes two steps. First from the greasyfork page "install this script". That opens another page in kiwi-extension: with an "install" button. After that install, it appears in "installed userscripts" in TamperMonkey's extension page. From there twitter worked properly and promoted tweets were hidden. Thanks!

max44作者
§
發表於:2021-11-26

Great! 👍

發表回覆

登入以回復