print("CHECK: " + chk +"\n");
-
- if (current_url.match(/\.coconuts\.co\//) ) {
- TabbedBrowser.browser.current_tab().get_web_view().execute_script(
- File.read( __script_path__ + "/domains/coconuts.co.js")
- );
-
- }
- if (current_url.match(/\.itnewsafrica\.com\//) ) {
- TabbedBrowser.browser.current_tab().get_web_view().execute_script(
- File.read( __script_path__ + "/domains/itnewsafrica.com.js")
- );
- }
- if (current_url.match(/\.indiatimes\.com\//) ) {
- print("running indiatimes code");
- TabbedBrowser.browser.current_tab().get_web_view().execute_script(
- File.read( __script_path__ + "/domains/indiatimes.com.js")
- );
- }
-
- if (current_url.match(/\.inquirer\.net\//) ) {
- print("add inquirer.net code");
- TabbedBrowser.browser.current_tab().get_web_view().execute_script(
- File.read( __script_path__ + "/domains/inquirer.net.js")
- );
-
- }
- if (current_url.match(/\.puntocellulare\.it\//) ) {
+ if (File.exists( __script_path__ + "/domains/" + chk + '.js')) {
TabbedBrowser.browser.current_tab().get_web_view().execute_script(
- File.read( __script_path__ + "/domains/puntocellulare.it.js")
+ File.read( __script_path__ + "/domains/"+ chk + ".js")
);
-
}
+
// motorme - requires a scroll to make content appear..
if (current_url.match(/\.motorme\.my\//) ) {
}
- if (current_url.match(/\.efytimes\.com\//) || current_url.match(/\/efytimes\.com\//) ) {
- TabbedBrowser.browser.current_tab().get_web_view().execute_script(
- File.read( __script_path__ + "/domains/efytimes.com.js")
- );
- }
+
print("Delay:" + BrowserSettings.delay);