StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Thaworn  
#1 Posted : Saturday, October 24, 2020 9:01:12 PM(UTC)
Thaworn

Rank: Member

Reputation:

Groups: Approved
Joined: 8/8/2020(UTC)
Posts: 12
Thailand

Thanks: 1 times
I am using google chrome as internet browser, I want to set specific shortcut and gesture only for youtube.com, how could I do that?
soooulp  
#2 Posted : Monday, March 22, 2021 9:40:57 AM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 161
China

Thanks: 46 times
Was thanked: 23 time(s) in 17 post(s)
Try this, when the foreground page is Youtube or the video page, the gesture will do the specific thing.

Code:

        if(sp.ForegroundWindow().Title.indexOf("- YouTube")>-1  && sp.ForegroundWindow().Title.indexOf("- Chrome")>-1) {
            //do something
        } else {
            //do something
        }

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.