') + ')', 'gi');
if (regex.test(text)) {
found = true;
var frag = document.createDocumentFragment();
var parts = text.split(regex);
parts.forEach(function(part, i) {
if (i % 2 === 0) {
frag.appendChild(document.createTextNode(part));
} else {
var span = document.createElement('span');
span.className = 'userscript-highlight';
span.textContent = part;
frag.appendChild(span);
}
});
node.parentNode.replaceChild(frag, node);
}
});
} else if (node.nodeType === 1 && node.childNodes) { // element
var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];
if (!skipTags.includes(node.tagName)) {
Array.from(node.childNodes).forEach(highlight);
}
}
}
highlight(document.body);
// Re-highlight on dynamic content
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(m) {
m.addedNodes.forEach(function(node) {
if (node.nodeType === 1 || node.nodeType === 3) highlight(node);
});
});
});
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); }
})();
(function(){
try {
var __m = "*";
var __re = new RegExp('^' + ".*" + ', 'i');
if (__m === '*' || __re.test(location.href)) {
// Strip utm_, fbclid, gclid, etc. from all links on page
(function() {
var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',
'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',
'ref', 'ref_src', 'source', 'medium', 'campaign'];
function cleanUrl(url) {
try {
var u = new URL(url, window.location.origin);
var changed = false;
trackingParams.forEach(function(p) {
if (u.searchParams.has(p)) {
u.searchParams.delete(p);
changed = true;
}
});
return changed ? u.toString() : url;
} catch (e) {
return url;
}
}
function cleanLinks() {
document.querySelectorAll('a[href]').forEach(function(a) {
var clean = cleanUrl(a.href);
if (clean !== a.href) a.href = clean;
});
}
cleanLinks();
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(m) {
m.addedNodes.forEach(function(node) {
if (node.nodeType === 1) {
if (node.tagName === 'A') cleanLinks();
node.querySelectorAll('a[href]').forEach(function(a) {
var clean = cleanUrl(a.href);
if (clean !== a.href) a.href = clean;
});
}
});
});
});
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); }
})();
(function(){
try {
var __m = "youtube.com";
var __re = new RegExp('^' + "youtube\\.com" + ', 'i');
if (__m === '*' || __re.test(location.href)) {
// Auto-enable theater mode on YouTube
(function() {
function tryTheater() {
var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]');
if (btn && !btn.classList.contains('activated')) {
btn.click();
}
}
// Try immediately
tryTheater();
// Try after navigation (SPA)
var lastUrl = location.href;
setInterval(function() {
if (location.href !== lastUrl) {
lastUrl = location.href;
setTimeout(tryTheater, 500);
}
}, 1000);
// Also try on player load
var observer = new MutationObserver(tryTheater);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); }
})();
(function(){
try {
var __m = "*";
var __re = new RegExp('^' + ".*" + ', 'i');
if (__m === '*' || __re.test(location.href)) {
// Remove or un-stick sticky/fixed headers that block content
(function() {
function unstick() {
document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) {
if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {
el.style.position = 'static';
el.style.top = 'auto';
el.style.zIndex = 'auto';
}
});
}
unstick();
var observer = new MutationObserver(unstick);
observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });
})();
}
} catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); }
})();
})();
GitHub - tinydesk/td-angular-barcode: Barcode Generator for Angular 1 (Supports 90+ barcode types: qr, aztec, code128, ean, isbn, interleaved2of5, ...) · GitHub
Repository files navigation tdBarcode: Angular 1 barcode generator The most complete Angular 1 barcode generator.
Provides a simple wrapper directive for bwip-js .
AngularJS^1.2.x bwip-js^0.14.2 $ npm install td-angular-barcode
or
$ bower install td-angular-barcode
Here is a demo , which shows all supported barcode types.
Check out the basic example, to see the basic setup.
For more info check bwip-js .
If you have to support only a few types or just a certain type of barcode there are also alternatives (state of 2016-02).
AusPost 4 State Customer Code Aztec Code Aztec Runes BC412 Channel Code Codabar Codablock F Code 11 Code 128 Code 16K Code 25 Code 39 Code 39 Extended Code 49 Code 93 Code 93 Extended Code One Compact Aztec Code Compact PDF417 COOP 2 of 5 Custom 1D symbology Custom 4 state symbology Data Matrix Datalogic 2 of 5 Deutsche Post Identcode Deutsche Post Leitcode EAN-13 EAN-13 Composite EAN-2 (2 digit addon) EAN-5 (5 digit addon) EAN-8 EAN-8 Composite Flattermarken GS1 Composite 2D Component GS1 Data Matrix GS1 DataBar Expanded GS1 DataBar Expanded Composite GS1 DataBar Expanded Stacked GS1 DataBar Expanded Stacked Composite GS1 DataBar Limited GS1 DataBar Limited Composite GS1 DataBar Omnidirectional GS1 DataBar Omnidirectional Composite GS1 DataBar Stacked GS1 DataBar Stacked Composite GS1 DataBar Stacked Omnidirectional GS1 DataBar Stacked Omnidirectional Composite GS1 DataBar Truncated GS1 DataBar Truncated Composite GS1 QR Code GS1-128 GS1-128 Composite GS1-14 HIBC Codablock F HIBC Code 128 HIBC Code 39 HIBC Data Matrix HIBC MicroPDF417 HIBC PDF417 HIBC QR Code IATA 2 of 5 Industrial 2 of 5 Interleaved 2 of 5 (ITF) ISBN ISMN ISSN Italian Pharmacode ITF-14 Japan Post 4 State Customer Code Matrix 2 of 5 MaxiCode Micro QR Code MicroPDF417 Miscellaneous symbols MSI Modified Plessey PDF417 Pharmaceutical Binary Code Pharmazentralnummer (PZN) Plessey UK PosiCode QR Code Royal Dutch TPG Post KIX Royal Mail 4 State Customer Code SSCC-18 Telepen Telepen Numeric Two-track Pharmacode UPC-A UPC-A Composite UPC-E UPC-E Composite USPS Intelligent Mail USPS PLANET USPS POSTNET
You can’t perform that action at this time.