Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .hideOnNoScript {
- display: none !important;
- }
- //Execute after page is ready
- function ready(callback){
- // in case the document is already rendered
- if (document.readyState!='loading') callback();
- // modern browsers
- else if (document.addEventListener)
- document.addEventListener('DOMContentLoaded', callback);
- // IE <= 8
- else document.attachEvent('onreadystatechange', function(){
- if (document.readyState=='complete') callback();
- });
- }
- var removeHideOnNoScript = function() {
- var elementstohide = window.top.document.querySelectorAll('.removeHideOnNoScript');
- for (let i= 0; i< elementstohide.length; i++) {
- const element = elementstohide[i];
- element.classList.remove('removeHideOnNoScript ');
- }
- }
- ready(removeHideOnNoScript);
Add Comment
Please, Sign In to add comment