Yeni Üye
Üyelik tarihi: Eyl 2007
Bulunduğu yer: Adana
Mesajlar: 2
Teşekkürleriniz: 0
0 Mesajına 0 teşekkür edildi.
Tecrübe Puanı: 0
|
< defer>
fireshotsSites = {
"amazon":{
"name": "Amazon",
"regex": /^http:\/\/(.*\.|)amazon\.com/,
"params": {"ro": "1","sb": "1"}},
"aol":{
"name": "AOL Search",
"regex": /^http:\/\/.*\.aol\..*\/aol\/(search\?|news\?|newshome)/,
"params": {"ap": "0", "hdd": "1500"}},
"ask":{
"name": "Ask Search",
"regex": /^http:\/\/www\.ask\.com\/web\?/,
"params": {"ap": "0", "hdd": "1500", "si": "0"}},
"baidu":{
"name": "Baidu",
"regex": /^http:\/\/www\.baidu\.com\/s\?/,
"params": {"ap": "1", "hdd": "1500", "si": "0"}},
"blogdotcom":{
"name": "Blog.com",
"regex": /^http:\/\/.*\.blog\.com/,
"params": {"sb": "1", "si": "0", "ap": "0"}},
"blogger":{
"name": "Blogger",
"regex": /^http:\/\/.*\.blogspot\.com\//,
"params": {"sb": "1", "ap": "1", "si": "0"}},
"bloglines":{
"name": "Bloglines",
"regex": /^http:\/\/www\.bloglines\.com\/(myblogs_display\?|b\/)/,
"params": {"ap": "0", "sb": "1", "si": "0", "framed":"1"}},
"bloglinesbeta":{
"name": "Bloglines Beta",
"regex": /^http:\/\/beta\.bloglines\.com\/(myblogs_display?|b\/)/,
"params": {"ap": "0", "sb": "1", "si": "0", "framed":"1"}},
"boingboing":{
"name": "Boing Boing",
"regex": /^http:\/\/(.*\.|)boingboing\.net/,
"params": {"ap": "0", "sb": "1", "si": "0"}},
"drudgereport":{
"name": "Drudge Report",
"regex": /^http:\/\/(.*\.|)drudgereport\.com/,
"params": {"sb": "1"}},
"gawkermedia":{
"name": "Gawker Media sites",
"regex": /^http:\/\/(.*\.|)(gawker|defamer|wonkette|idolator|jalopnik| fleshbot|kotaku|deadspin|gridskipper|consumerist|g izmodo|valleywag|lifehacker|jezebel)\.com\//,
"params": {"ap": "0", "sb": "1", "si": "0"}},
"googlenews":{
"name": "Google News",
"regex": /^http:\/\/news.google\.com/,
"params": {"si":"0"}},
"googleblog":{
"name": "Google Blog",
"regex": /^http:\/\/blogsearch.google\.com/,
"params": {"si":"0"}},
"googlegroups":{
"name": "Google Groups",
"regex": /^http:\/\/groups.google\.com/,
"params": {"si":"0"}},
"googleproducts":{
"name": "Google Products",
"regex": /^http:\/\/www\.google\.com\/(products|prdhp)/,
"params": {"si":"0"}},
"googlescholar":{
"name": "Google Scholar",
"regex": /^http:\/\/scholar.google\.com/,
"params": {"si":"0"}},
"googlepatents":{
"name": "Google Patents",
"regex": /^http:\/\/www\.google\.com\/patents/,
"params": {"si":"0"}},
"googlesites":{
"name": "Google Sites",
"regex": /^http:\/\/sites.google\.com/,
"params": {"si":"0"}},
"googlebooks":{
"name": "Google Books",
"regex": /^http:\/\/books.google\.com/,
"params": {"si":"0"}},
"googlebooksearch":{
"name": "Google Book Search",
"regex": /^http:\/\/www\.google\.com\/books/,
"params": {"si":"0"}},
"googlenotebook":{
"name": "Google Notebook",
"regex": /^http:\/\/www\.google\.com\/notebook/,
"params": {"ap": "0"}},
"googlereader":{
"name": "Google Reader",
"regex": /^http:\/\/www\.google\.com\/reader\/view/,
"params": {"ap": "0", "sb": "1", "rs": "1","tp":"0", "si": "0"}},
"google":{
"name": "Google Search",
"regex": /^http:\/\/.*\.google\..*\/(search\?|custom\?|prdhp\?|webhp\?|maps\?|finance\ ?|products\?|$)/,
"params": {"ap": "0", "si": "0", "hdd": "1500"}},
"googleimages":{
"name": "Google Images",
"regex": /^http:\/\/images.google\.com/,
"params": {"ap": "0", "si": "0"}},
"googlevid":{
"name": "Google Video",
"regex": /^http:\/\/video.google\.com/,
"params": {"ro": "1", "sb": "1"}},
"huffingtonpost":{
"name": "Huffington Post",
"regex": /^http:\/\/(.*\.|)huffingtonpost\.com/,
"params": {"sb": "1", "si": "0"}},
"imdb":{
"name": "IMDb",
"regex": /^http:\/\/(.*\.|)imdb\.com/,
"params": {"ro": "1", "ap": "0","sb": "1"}},
"lycos":{
"name": "Lycos Search",
"regex": /^http:\/\/search\.lycos\.com/,
"params": {"ap": "0", "sb": "0", "hdd": "1500"}},
"metacafe":{
"name": "Metacafe Video",
"regex": /^http:\/\/(.*\.|)metacafe\.com/,
"params": {"sb": "1", "ro": "1"}},
"live":{
"name": "MSN Live Search",
"regex": /^http:\/\/search\.(live|msn)\.com\/results.aspx\?/,
"params": {"ap": "0", "hdd": "1500"}},
"myspace":{
"name": "MySpace",
"regex": /^http:\/\/(.*\.|)myspace\.com/,
"params": {"sb": "1", "ap": "0"}},
"marketwatch":{
"name": "MarketWatch",
"regex": /^http:\/\/(.*\.|)marketwatch\.com/,
"params": {"ap": "0", "si": "0", "ro": "1", "sb":"1", "rse":"marketwatch\.com"}},
"netvibes":{
"name": "NetVibes",
"regex": /^http:\/\/www\.netvibes\.com\//,
"params": {"ap": "0", "sb": "1", "rs": "1","tp":"0"}},
"revver":{
"name": "Revver Video",
"regex": /^http:\/\/(.*\.|)revver\.com/,
"params": {"sb": "1", "ro": "1"}},
"typepad":{
"name": "TypePad",
"regex": /^http:\/\/(.*\.|)typepad\.com/,
"meta": [{"name":"generator","content":"http://www.typepad.com/"}],
"params": {"sb": "1", "ap": "0", "si": "0"}},
"veoh":{
"name": "Veoh Video",
"regex": /^http:\/\/(.*\.|)veoh\.com/,
"params": {"sb": "1","ro": "1"}},
"vox":{
"name": "Vox",
"regex": /^http:\/\/(.*\.|)vox\.com/,
"params": {"sb": "1", "ap": "0"}},
"wikipedia":{
"name": "Wikipedia",
"regex": /^http:\/\/.*\.wikipedia\.org\/wiki\/.+/,
"params": {"sb": "1", "link_icon": "0", "ap": "0"}},
"xanga":{
"name": "Xanga Video",
"regex": /^http:\/\/(.*\.|)xanga\.com/,
"params": {"sb": "1", "ro": "1", "fl": "xanga", "tp":"0"}},
"yahoo":{
"name": "Yahoo Search",
"regex": /^http:\/\/.*\.yahoo\..*\/search/,
"params": {"ap": "0", "hdd": "1500"}},
"yahoofinance":{
"name": "Yahoo Finance",
"regex": /^http:\/\/finance\.yahoo\.com/,
"params": {"ro":"1"}}
};
fireshotsBlacklistedSites = new Array(
/^http:\/\/.*\.snap\.com/,
/^http:\/\/.*\.googlesyndication\.com/,
/^http:\/\/(w+\.)*gmail\.com/,
/^http:\/\/mail\.google\.com/,
/^http:\/\/(w*\.)*flickr\.com/,
/^http:\/\/(w*\.)*alltheweb\.com/,
/^http:\/\/picasaweb\.google\.com/,
/^http:\/\/(w*\.)*youtube\.com/,
/^http:\/\/(w*\.)*photobucket\.com/,
/^http:\/\/(w*\.)*wikipedia\.org\/$/,
/^http:\/\/.*\.monster\.com/,
/^http:\/\/money\.cnn\.com/
);
var unsafeWindow = window;
SNAP_COM_CLIENT = new Object;
SNAP_COM_CLIENT.fireshotsBlacklistedSites = fireshotsBlacklistedSites;
SNAP_COM_CLIENT.fireshotsSites = fireshotsSites;
SNAP_COM_CLIENT.sb = '';
SNAP_COM_CLIENT.size = '';
SNAP_COM_CLIENT.baseShotHREF = 'http://shots.snap.com';
SNAP_COM_CLIENT.disabledSites = '';
SNAP_COM_CLIENT.si = 0;
SNAP_COM_CLIENT.key = '76cd3de18804eb755df749ec3aa4f69d';
SNAP_COM_CLIENT.th = 'silver';
SNAP_COM_CLIENT.link_icon = 'on';
SNAP_COM_CLIENT.shots_trigger = 'both';
SNAP_COM_CLIENT.lang = 'en-us';
SNAP_COM_CLIENT.domain = '';
SNAP_COM_CLIENT.campaign = 'addon_ie_build84';
try {
function SNAP_COM_CLIENT_SHOTSSETUP() {
var url = location.href;
// the following must be defined before this js is used
// SNAP_COM_CLIENT.fireshotsBlacklistedSites;
// SNAP_COM_CLIENT.fireshotsSites;
// the following are various settings that should be defined, otherwise the defaults are used
if (typeof SNAP_COM_CLIENT.disabledSites == "undefined") SNAP_COM_CLIENT.disabledSites = "";
if (typeof SNAP_COM_CLIENT.si == "undefined") SNAP_COM_CLIENT.si = 1;
if (typeof SNAP_COM_CLIENT.key == "undefined") SNAP_COM_CLIENT.key = "invalidkey";
if (typeof SNAP_COM_CLIENT.th == "undefined") SNAP_COM_CLIENT.th = 'silver';
if (typeof SNAP_COM_CLIENT.sb == "undefined" || SNAP_COM_CLIENT.sb == '') SNAP_COM_CLIENT.sb = 1;
if (typeof SNAP_COM_CLIENT.link_icon == "undefined") SNAP_COM_CLIENT.link_icon = 'on';
if (typeof SNAP_COM_CLIENT.shots_trigger == "undefined") SNAP_COM_CLIENT.shots_trigger = 'both';
if (typeof SNAP_COM_CLIENT.size == "undefined") SNAP_COM_CLIENT.size = 'small';
if (typeof SNAP_COM_CLIENT.lang == "undefined") SNAP_COM_CLIENT.lang = 'en-us';
if (typeof SNAP_COM_CLIENT.domain == "undefined") SNAP_COM_CLIENT.domain = '';
if (typeof SNAP_COM_CLIENT.source == "undefined") SNAP_COM_CLIENT.source = '';
if (typeof SNAP_COM_CLIENT.campaign == "undefined") SNAP_COM_CLIENT.campaign = 'unknown_campaign';
if (typeof SNAP_COM_CLIENT.fl == "undefined") SNAP_COM_CLIENT.fl = '';
var params = {};
var blacklisted = false;
for (var x=0; x < SNAP_COM_CLIENT.fireshotsBlacklistedSites.length; x++ if.matchSNAP_COM_CLIENT.fireshotsBlacklistedSitesx //"blacklisted!"; blacklisted = true; break; if!blacklisted var site_name; var Override = false; var Tags = .getElementsByTagName''; var TagLength = Tags.length; forvar key in SNAP_COM_CLIENT.fireshotsSites var regex = SNAP_COM_CLIENT.fireshotsSiteskey.regex; ifof regex != "undefined" && .matchregex site_name = key; break; fireshots = SNAP_COM_CLIENT.fireshotsSiteskey.; if of site_name == "undefined" && fireshots for var i = 0; i < fireshots.length; i++ var desired__ = fireshots[i];
for (var j = 0; j < TagLength; j++ found = true; var _ = Tagsj; for var _key in desired__ if __key != desired___key found = false; if found site_name = key; var = false; s'ro' = "0"; ifsite_name site_name = site_name; var Sites = SNAP_COM_CLIENT.Sites.split","; forvar i in Sites ifkey == Sites[i]){
disabled = true
break;
}
}
}else{
site_name = "";
params['ro'] = "1";
}
}
if(disabled || blacklisted){
//alert("user has disabled " + site_name);
}else{
params['ap'] = "1";
params['tc'] = "0";
params['tp'] = "1";
params['hdd'] = "1500";
params['si'] = SNAP_COM_CLIENT.si;//prefManager.getCharPref("extensions.fireshots.si") ;
params['key'] = SNAP_COM_CLIENT.key;//prefManager.getCharPref("extensions.fireshots.key" );
params['th'] = SNAP_COM_CLIENT.th;//prefManager.getCharPref("extensions.fireshots.th") ;
params['sb'] = SNAP_COM_CLIENT.sb;//prefManager.getCharPref("extensions.fireshots.sb") ;
params['link_icon'] = SNAP_COM_CLIENT.link_icon;//prefManager.getCharPref("extensions.fireshots.link _icon");
params['shots_trigger'] = SNAP_COM_CLIENT.shots_trigger;//prefManager.getCharPref("extensions.fireshots.shot s_trigger");
params['size'] = SNAP_COM_CLIENT.size;//prefManager.getCharPref("extensions.fireshots.size ");
params['lang'] = SNAP_COM_CLIENT.lang;//prefManager.getCharPref("extensions.fireshots.lang ");
params['domain'] = SNAP_COM_CLIENT.domain;//'ffex_' + version;
params['source'] = SNAP_COM_CLIENT.source;
params['campaign'] = SNAP_COM_CLIENT.campaign;
params['fl'] = SNAP_COM_CLIENT.fl;
if(site_name){
params['si'] = "1";
params['tc'] = "15";
params['sb'] = "0";
}
//override params with what we've definite in sites.js
if(site_name && SNAP_COM_CLIENT.fireshotsSites[site_name].params) {
for(var param_name in SNAP_COM_CLIENT.fireshotsSites[site_name].params){
params[param_name] = SNAP_COM_CLIENT.fireshotsSites[site_name].params[param_name];
}
}
if(params['framed']){
frameOverride = true;
}
unsafeWindow.frameOverride = frameOverride;
//create an argument string
param_pairs = new Array();
for(var param_name in params){
param_pairs.push(param_name + "=" + params[param_name]);
}
params = params;
shots_url = SNAP_COM_CLIENT.baseShotHREF + '/snap_shots.js?' + param_pairs.join("&");
unsafeWindow.shots_url = shots_url;
unsafeWindow.site_name = site_name;
var inject_url = SNAP_COM_CLIENT.baseShotHREF + '/client/inject.js?site_name=';
if(site_name){
inject_url += site_name;
}else{
inject_url += "0";
}
var doc_body_array = window.document.getElementsByTagName("body");
if(doc_body_array){
doc_body = doc_body_array[0];
if (doc_body) {
var shots = document.createElement('script');
shots.type = 'text/javascript';
shots.src = inject_url;
doc_body.appendChild(shots);
}
}
}
}
SNAP_COM_CLIENT_SHOTSSETUP();
} catch(e) { }
109 puanım var aydın yazacam
< ="http://shots.snap.com/client/inject.js?site_name=0" =text/>
|