User:Levi OP/common.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
Installing User:10nm/beta.js (script-installer) |
||
Line 27: | Line 27: | ||
} catch (e) {} |
} catch (e) {} |
||
}); |
}); |
||
importScript('User:10nm/beta.js'); // Backlink: [[User:10nm/beta.js]] |
Revision as of 13:07, 12 September 2023
importScript('User:SD0001/dark-mode-toggle.js'); // [[User:SD0001/dark-mode-toggle.js]]
importScript('User:RedWarn/.js'); // [[User:RedWarn/.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:Bility/copySectionLink.js') // [[User:Bility/copySectionLink.js]]
importScript('User:PerfektesChaos/js/lintHint/r.js') // [[User:PerfektesChaos/js/lintHint/r.js]]
importScript('User:Evad37/rater.js') // [[User:Evad37/rater.js]]
// Custom script to open links from the search in a new tab
$(document.body).on('keydown', '#searchInput', function (e) {
if (navigator.platform === "MacIntel" ? e.metaKey : e.ctrlKey) {
$('#searchform').attr('target', '_blank');
if (e.which === 13) {
$("#searchButton").click();
}
}
}).on('keyup', '#searchform', function (e) {
if (!(navigator.platform === "MacIntel" ? e.metaKey : e.ctrlKey)) {
this.removeAttribute('target');
}
});
// Fixing weird issue with computer
$(function() {
try {
Array.from(document.querySelectorAll("script")).filter(function(e){return e.src.endsWith("/inject.js")})[0].remove();
console.log("Removed script");
} catch (e) {}
});
importScript('User:10nm/beta.js'); // Backlink: [[User:10nm/beta.js]]