diff options
author | Mark Powers <mark@marks.kitchen> | 2022-12-29 14:03:57 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2022-12-29 14:03:57 -0600 |
commit | b5c10718ddeaa8fcac368515ca150705b1a2c5ab (patch) | |
tree | 473c6b8197774ed3a29df73821c404381535ccbc /bridges/twitter.js | |
parent | ff9f53e5673d742d155881a2a29f31ba312dce9c (diff) |
Refactor scripts, add table preview
Diffstat (limited to 'bridges/twitter.js')
-rw-r--r-- | bridges/twitter.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bridges/twitter.js b/bridges/twitter.js deleted file mode 100644 index e9855cb..0000000 --- a/bridges/twitter.js +++ /dev/null @@ -1,12 +0,0 @@ -function get_twitter() { - let url = window.location.href; - let pattern = /twitter.com\/(\w+).*/ - let match = url.match(pattern); - if (match) { - let twitter_handle = match[1] - let feed_url = `${base_url}/?action=display&bridge=Twitter&context=By+username&u=${twitter_handle}&format=` - return get_all_types(feed_url) - } - return [] -} - |