first commit
This commit is contained in:
12
templates/instytut_dendrologii_/js/shortlinksearch.js
Normal file
12
templates/instytut_dendrologii_/js/shortlinksearch.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('load', () => {
|
||||
shortlinsk();
|
||||
})
|
||||
|
||||
function shortlinsk(){
|
||||
document.querySelectorAll('.result__title-url').forEach(links => {
|
||||
if(links.innerHTML.includes('?')){
|
||||
links.closest('a').href='/'+links.closest('a').href.replace(links.closest('a').href.substring(0,links.closest('a').href.indexOf('?')),'viewart').replace('component/finder/','');
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user