aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty
diff options
context:
space:
mode:
Diffstat (limited to 'inc/3rdparty')
-rw-r--r--inc/3rdparty/content-extractor/SiteConfig.php4
-rwxr-xr-xinc/3rdparty/site_config/custom/stackexchange.com.txt4
-rwxr-xr-xinc/3rdparty/site_config/custom/stackoverflow.com.txt4
3 files changed, 10 insertions, 2 deletions
diff --git a/inc/3rdparty/content-extractor/SiteConfig.php b/inc/3rdparty/content-extractor/SiteConfig.php
index 089e10c6..efb229dd 100644
--- a/inc/3rdparty/content-extractor/SiteConfig.php
+++ b/inc/3rdparty/content-extractor/SiteConfig.php
@@ -114,7 +114,7 @@ class SiteConfig
114 $split = explode('.', $host); 114 $split = explode('.', $host);
115 if (count($split) > 1) { 115 if (count($split) > 1) {
116 array_shift($split); 116 array_shift($split);
117 $try[] = '.'.implode('.', $split); 117 $try[] = implode('.', $split);
118 } 118 }
119 foreach ($try as $h) { 119 foreach ($try as $h) {
120 if (array_key_exists($h, self::$config_cache)) { 120 if (array_key_exists($h, self::$config_cache)) {
@@ -181,4 +181,4 @@ class SiteConfig
181 return $config; 181 return $config;
182 } 182 }
183} 183}
184?> \ No newline at end of file 184?>
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 00000000..c9d44b1d
--- /dev/null
+++ b/inc/3rdparty/site_config/custom/stackexchange.com.txt
@@ -0,0 +1,4 @@
1title: //title
2body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')]
3
4test_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 00000000..d2eb984d
--- /dev/null
+++ b/inc/3rdparty/site_config/custom/stackoverflow.com.txt
@@ -0,0 +1,4 @@
1title: //title
2body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')]
3
4test_url: http://stackoverflow.com/questions/20302422/calling-a-function-from-a-javascript-object