Skip to content

Commit

Permalink
MEV Cinema
Browse files Browse the repository at this point in the history
Add support for MEV Cinema
  • Loading branch information
Leonardo committed Nov 10, 2016
1 parent e3020f9 commit 2422428
Show file tree
Hide file tree
Showing 6 changed files with 500 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Extension/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,24 @@
},
"g1" : {
"message": "OpenDB"
},
"g2" : {
"message": "MEV Cinema"
},
"mevtitle" : {
"message": "Title for this video"
},
"mevnotsupported" : {
"message": "This browser not support MEV"
},
"mevmoresource" : {
"message": "I have highlighted possible code embed, click on red border for add !"
},
"mevmorevideo" : {
"message": "I have highlighted possible video embed, click on red border for add !"
},
"mevconfirm" : {
"message": "Embed not found, open MEV app ?"
}

}
Expand Down
18 changes: 18 additions & 0 deletions Extension/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,24 @@
},
"g1" : {
"message": "OpenDB"
},
"g2" : {
"message": "MEV Cinema"
},
"mevtitle" : {
"message": "Titolo per questo video"
},
"mevnotsupported" : {
"message": "Questo browser non supporta MEV"
},
"mevmoresource" : {
"message": "Ho evidenziato possibili codici da incorporare, clicca sul bordo rosso per aggiungerlo"
},
"mevmorevideo" : {
"message": "Ho evidenziato possibili embed da aggiungere, clicca sul bordo rosso per aggiungerlo"
},
"mevconfirm" : {
"message": "Non ho trovato nulla qui vuoi aprire MEV app ?"
}

}
Expand Down
27 changes: 27 additions & 0 deletions Extension/js/context.menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,33 @@
}

} );

// ( it ) --> Visualizza la finestra del cinema

var id3 = chrome.contextMenus.create( {

title : chrome.i18n.getMessage( "g2" ),
contexts : [ "all" ],
parentId : id0,
onclick : function( info, tab ){

var searching = info.selectionText || "",
config = $.gam.config();

// ( it ) --> Se non trovo l'inspector devo ricaricare la pagina

chrome.tabs.executeScript( tab.id, {

allFrames : false,
file : config.mev

} );

_gaq.push( [ "_trackEvent", "MEV Cinema", "run", searching ] );

}

} );

} )( window.jQuery );

Loading

0 comments on commit 2422428

Please sign in to comment.