From b5c10718ddeaa8fcac368515ca150705b1a2c5ab Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 29 Dec 2022 14:03:57 -0600 Subject: Refactor scripts, add table preview --- bridges/twitter.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 bridges/twitter.js (limited to 'bridges/twitter.js') 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 [] -} - -- cgit v1.2.3