mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-12 08:20:25 -04:00
switch to group discussion tab
This commit is contained in:
parent
27bdfb65d2
commit
01bb731f54
1 changed files with 12 additions and 0 deletions
|
@ -46,6 +46,18 @@ var umbraState = {'idleSince':null,'expectingSomething':null,'bottomReachedScrol
|
||||||
|
|
||||||
var umbraIntervalFunc = function() {
|
var umbraIntervalFunc = function() {
|
||||||
|
|
||||||
|
// for facebook groups, switch to Discussion tab url
|
||||||
|
fbURL = window.location.href;
|
||||||
|
if (fbURL.indexOf("/groups/") !== -1 && fbURL.indexOf("?ref=direct") === -1) {
|
||||||
|
navlinks = document.querySelectorAll('a._2yau');
|
||||||
|
navlinks[1].click(); // click current Discussion link
|
||||||
|
return;
|
||||||
|
//groupDiscussionURL = fbURL.match("https://www.facebook.com/groups/[^/]+")[0] + "/?ref=direct";
|
||||||
|
//if (groupDiscussionURL) {
|
||||||
|
// window.location.href = groupDiscussionURL;
|
||||||
|
// return;
|
||||||
|
//}
|
||||||
|
}
|
||||||
var thingsToScroll = document.querySelectorAll(UMBRA_THINGS_TO_SCROLL_SELECTOR);
|
var thingsToScroll = document.querySelectorAll(UMBRA_THINGS_TO_SCROLL_SELECTOR);
|
||||||
var everythingScrolled = true;
|
var everythingScrolled = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue