Skip to content

Gary Sieling

Principal Engineer

  • Machine Learning
  • Full Text Search
  • Data Science
  • Scraping
  • Postgres
  • DevOps
  • AWS
  • Talks

Posts

Posted on July 24, 2012

How to find the URL of the current tab in a Chrome extension

It’s a little hard to find – getCurrent() returns the current hidden page for the extension.

chrome.tabs.getSelected(null, function(tab){
   var baseUrl = tab.url;
   console.log(baseUrl);
});

Posts navigation

Previous page Page 1 … Page 711 Page 712 Page 713 … Page 739 Next page
  • Thought Experiments
  • Proof of Concepts
  • Book Reviews
  • Projects
  • Essays
  • Talks
  • Programming Techniques
  • Javascript
  • Python
  • Prolog
  • Scala
  • Java
  • PHP
  • C#
  • R

Recent Posts

  • Allow a CircleCI self-hosted machine runner to run jobs for more than 5 hrs
  • Import a folder of CSVs into a single Google Sheet (1 per tab)
  • R Code to summarize Dept of Ed, Civil Rights Data by school district / LEA
  • Export Census ACS5 data by GEOID/block group to CSV in R
  • Get US Census population by block group (GEOID) in R
  • Get a list of census fields available at the GEOID (block group) level in R
  • PA Senate Committees 2023 CSV Download
Proudly powered by WordPress