MCPcopy Index your code
hub / github.com/Tampermonkey/tampermonkey / createTypeImageFromScript

Function createTypeImageFromScript

src/options.js:1840–1869  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

1838};
1839
1840var createTypeImageFromScript = function(i) {
1841 var span = cr('span', i.name, i.id, 'pos_type', true);
1842
1843 if (!i.id) return span;
1844
1845 if (i.user_agent) {
1846 var m = HtmlUtil.createImage('images/user_agent.png',
1847 i.name,
1848 i.id,
1849 "user_agent",
1850 I18N.getMessage("This_only_changes_the_user_agent_string"));
1851 span.appendChild(m);
1852 } else if (i.nativeScript) {
1853 var m = HtmlUtil.createImage(i.icon,
1854 i.name,
1855 i.id,
1856 "chrome_ext",
1857 I18N.getMessage("This_is_a_chrome_extension"));
1858 span.appendChild(m);
1859 } else if (i.userscript) {
1860 var m = HtmlUtil.createImage('images/txt.png',
1861 i.name,
1862 i.id,
1863 "user_agent",
1864 I18N.getMessage("This_is_a_userscript"));
1865 span.appendChild(m);
1866 }
1867
1868 return span;
1869};
1870
1871var createFeatureImagesFromScript = function(i) {
1872 var span = cr('span', i.name, i.id, 'pos_features', true);

Callers 1

createScriptItemFunction · 0.85

Calls 1

crFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…