diff --git a/inc/3rdparty/content-extractor/SiteConfig.php b/inc/3rdparty/content-extractor/SiteConfig.php index 089e10c62..efb229dd2 100644 --- a/inc/3rdparty/content-extractor/SiteConfig.php +++ b/inc/3rdparty/content-extractor/SiteConfig.php @@ -114,7 +114,7 @@ class SiteConfig $split = explode('.', $host); if (count($split) > 1) { array_shift($split); - $try[] = '.'.implode('.', $split); + $try[] = implode('.', $split); } foreach ($try as $h) { if (array_key_exists($h, self::$config_cache)) { @@ -181,4 +181,4 @@ class SiteConfig return $config; } } -?> \ No newline at end of file +?> diff --git a/inc/3rdparty/site_config/custom/stackexchange.com.txt b/inc/3rdparty/site_config/custom/stackexchange.com.txt new file mode 100755 index 000000000..c9d44b1d1 --- /dev/null +++ b/inc/3rdparty/site_config/custom/stackexchange.com.txt @@ -0,0 +1,4 @@ +title: //title +body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')] + +test_url: http://cstheory.stackexchange.com/questions/14811/what-is-the-enlightenment-im-supposed-to-attain-after-studying-finite-automata/14818#14818 diff --git a/inc/3rdparty/site_config/custom/stackoverflow.com.txt b/inc/3rdparty/site_config/custom/stackoverflow.com.txt new file mode 100755 index 000000000..d2eb984d3 --- /dev/null +++ b/inc/3rdparty/site_config/custom/stackoverflow.com.txt @@ -0,0 +1,4 @@ +title: //title +body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')] + +test_url: http://stackoverflow.com/questions/20302422/calling-a-function-from-a-javascript-object