This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(){ | |
| for(var i=0,f; f=document.getElementsByTagName("iframe")[i]; i++){ | |
| if(f.src.indexOf("players.brightcove.net")>-1)return "new"; | |
| if(f.src.indexOf("c.brightcove.com")>-1)return "old"; | |
| } | |
| for(var i=0,s; s=document.scripts[i];i++){ | |
| if(s.src.indexOf("players.brightcove.net")>-1)return "new"; | |
| if(/(brightcove\\.js|BrightcoveExperiences?\\.js|admin\\.brightcove\\.com|c\\.brightcove\\.com)/i.test(s.src))return "old"; | |
| } | |
| return "none"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import cgi | |
| from os import environ | |
| import cgitb | |
| cgitb.enable() | |
| import argparse | |
| import requests | |
| import re | |
| from urlparse import urljoin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var page = require('webpage').create(); | |
| page.onConsoleMessage = function(message, line, file){ | |
| console.log(message); | |
| } | |
| page.open('data:text/html,<script>console.log("a", "b", "c", 100)</script><p>Hello world</p>', function(){setTimeout(phantom.exit, 1000)}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTMLElement.prototype.appendChild = (function(originalMethod){ | |
| return function(child){ | |
| console.log('appending '+child); | |
| return originalMethod.call(this, child); | |
| } | |
| })(HTMLElement.prototype.appendChild) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| // exploring add-ons API | |
| // Goal: monitor all tabs, run code when new page loads | |
| // Optionally also listen for document mutations | |
| // some standard vars / shortcuts into Gecko's internals: classes, interfaces, utils | |
| const Cc = Components.classes; | |
| const Ci = Components.interfaces; | |
| const Cu = Components.utils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| DATE=`date +%Y%m%d` | |
| ALEXA_URL=http://www.alexa.com/topsites/countries%3B | |
| COUNTRY_CODE=$1 | |
| OUTPUT_FILE=ALEXA_${COUNTRY_CODE}-${DATE}.txt | |
| echo "Downloading Alexa top site data for $COUNTRY_CODE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| google.com.bd | |
| prothom-alo.com | |
| bdnews24.com | |
| banglanews24.com | |
| espncricinfo.com | |
| kalerkantho.com | |
| banglamail24.com | |
| bdjobs.com | |
| priyo.com | |
| bikroy.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mercadolibre.com.mx | |
| taringa.net | |
| unam.mx | |
| sat.gob.mx | |
| segundamano.mx | |
| eluniversal.com.mx | |
| occ.com.mx | |
| maps.google.com.mx | |
| banamex.com.mx | |
| musica.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| google.com.br | |
| uol.com.br | |
| globo.com | |
| mercadolivre.com.br | |
| itau.com.br | |
| hao123.com | |
| abril.com.br | |
| terra.com.br | |
| ig.com.br | |
| caixa.gov.br |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.veoh.com/ | |
| http://screen.yahoo.com/ | |
| http://blip.tv/ | |
| http://www.metacafe.com/ | |
| http://www.ovguide.com/ | |
| http://www.ndtv.com/video/ | |
| http://video.pbs.org/ | |
| http://www.microsoft.com/showcase/ | |
| http://www.youtube.com/ | |
| http://www.eonline.com/news/watch_with_kristin |