Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;double right click channel to refresh
- menu channel,status {
- $iif(1 > 0,$ff,$style(2)) Show Tab
- .$iif(%parse2 == $null,$style(2)) [Title][ %parse2 ]:{ ff | describe $active Viewing Tab %parse2 }
- .$iif(%parse == $null,$style(2)) [Url][ %parse ]:{ ff | describe $active Viewing Tab %parse }
- .$iif(%parse2 == $null,$style(2)) [Title + url][ %parse2 @ %parse ]:{ ff | describe $active Viewing Tab %parse2 @ [ %parse ] }
- }
- alias fft { ff | if (%parse2 != $null) { describe $active Viewing Tab %parse2 } }
- alias ffu { ff | if (%parse2 != $null) { describe $active Viewing Tab %parse } }
- alias fftu { ff | if (%parse2 != $null) { describe $active Viewing Tab %parse2 @ [ %parse ] } }
- alias ffut { ff | if (%parse2 != $null) { describe $active Viewing Tab %parse2 @ [ %parse ] } }
- alias ff {
- Set %parse $null
- Set %parse2 $null
- if (($dde(firefox,WWW_GetWindowInfo)) || ($dde(chrome,WWW_GetWindowInfo)) || ($dde(iexplore,WWW_GetWindowInfo,1))) {
- if ($regex(url,$v1,/^"([^"]+)"\x2C"([^"]*)"(?:\x2C".*")?$/)) {
- set %parse $+($regml(url,1)),$+(",$regml(url,1),")
- set %parse2 $+($regml(url,2)),$+(",$regml(url,2),")
- if ( youtube.co isin %parse ) { set %parse2 1,0You0,4Tube: $remove($replace(%parse2,_,$chr(32)),youtube,youtube.com,.com) | goto stop }
- if ( pastebin.co isin %parse ) { set %parse2 0,2PasteBin: $remove($replace(%parse2,_,$chr(32)),pastebin,pastebin.com,.com) | goto stop }
- if ( facebook.co isin %parse ) { set %parse2 2,0FaceBook: $remove($replace(%parse2,_,$chr(32)),facebook,facebook.com,.com) | goto stop }
- if ( github.co isin %parse ) { set %parse2 1,15github: $remove($replace(%parse2,_,$chr(32)),github,github.com,.com) | goto stop }
- if ( 4chan.org isin %parse ) { set %parse2 4,74chan: $remove($replace(%parse2,_,$chr(32)),4chan,4chan.org,.org) | goto stop }
- if ( reddit.co isin %parse ) { set %parse2 1,10reddit: $remove($replace(%parse2,_,$chr(32)),reddit,reddit.com,.com) | goto stop }
- if ( google.co isin %parse ) { set %parse2 2,0G4o8o2g3l4e: $remove($replace(%parse2,_,$chr(32)),google,google.com,.com) | goto stop }
- :stop
- }
- else { echo -a *Error* Browser Not Found or Unknown. }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement