Comments (7)
Which links are you referring to?
from twitter-post-fetcher.
The alphr link in this example. You're breaking the URI into spans anyway which is useful but something like maxchar = 30
would be ideal. Otherwise, can't fault this plugin!
from twitter-post-fetcher.
Having the same issue here. How can we show the twitter shortened link or limit the number of characters?
from twitter-post-fetcher.
Can anyone confirm if the shortened links are in the JSON response?
from twitter-post-fetcher.
Yes I confirm that. In the data.body for each link you have the href
attr which is a https://t.co/....
and the content of the is the real link separated in several parts with classes tco-hidden
, tco-display
and tco-ellipsis
.
Basically this classes let you hide the first and last parts of the url by using a display:none
in CSS on .tco-hidden
.
The issue come from the fact that your strip function removes all the classes therefore it's not possible to style the different parts of the link.
Solutions are, in my opinion, avoiding removing this specific classes or for instance adding an option in the config to replace the content of the link with the https://t.co/....
(from the href
).
Let me know your thoughts about that and if you want me to amend something to fix it.
Thanks
from twitter-post-fetcher.
Looking at OxyDesign's solution now. :-) Sorry for delay guys, currently in the US so limited access to github whilst on holiday etc.
from twitter-post-fetcher.
This will be resolved once OxyDesign's patch goes in.
from twitter-post-fetcher.
Related Issues (20)
- AdBlock blocks the library HOT 2
- MIME type is not executable HOT 4
- Example 2 is not working when you enable "showImages" HOT 4
- Make 18.0.3 an official "Release" HOT 1
- Urls are not properly formatting, it is moving them next to the last line of text in the tweet HOT 1
- No tweets showing HOT 5
- Fetching Tweets HOT 1
- There should be a way to show link to tweeted picture
- showImages option is missing from exampleUsage.js HOT 1
- Emoji is completely missing from tweets HOT 3
- Followers number etc HOT 2
- Hide Replies? HOT 3
- Render quoted tweet HOT 1
- In firefox it is not working HOT 2
- Include Alt Text for images from Twitter
- Firefox support HOT 1
- does not show emojis :( HOT 1
- Twitter likes is sorted by date not by recently liked HOT 1
- handleTweets doesn't accept an a tag as the tweet container
- Plugin no longer working HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-post-fetcher.