MCPcopy
hub / github.com/Tampermonkey/tampermonkey / install

Function install

src/background.js:3355–3368  ·  view source on GitHub ↗
(clicked)

Source from the content-addressed store, hash-verified

3353 if (updatable) {
3354 try {
3355 var install = function(clicked) {
3356 if (clicked) {
3357 var gotId = function(id, close) {
3358 var ss = { tabid: id,
3359 url: obj.url,
3360 src: obj.code,
3361 ask: true,
3362 cb : close,
3363 hash: obj.newhash !== undefined ? obj.newhash : null };
3364 addNewUserScript(ss);
3365 };
3366 getValidTabId(null, gotId);
3367 }
3368 };
3369
3370 var msg = I18N.getMessage('There_is_an_update_for_0name0_avaiable_', obj.name) + '\n' + I18N.getMessage('Click_here_to_install_it_');
3371 var t = I18N.getMessage('Just_another_service_provided_by_your_friendly_script_updater_');

Callers 1

cbFunction · 0.70

Calls 1

getValidTabIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…