Passer au contenu

Comment actualiser automatiquement les pages de son navigateur internet ?

Solution : à laide de quelques lignes de code Html.

Un peu de code HTML devrait vous aider à résoudre ce problème. Lancez l’éditeur de scripts et entrez le code suivant :

<html> <head>


<meta http-equiv="refresh" content="10"> </head> <body> <iframe loading="lazy" src="about:blank" width="90%" height="90%" data-rocket-lazyload="fitvidscompatible" data-lazy-src="http://www.01net.fr"></iframe><noscript><iframe src="http://www.01net.fr" width="90%" height="90%"></iframe></noscript> <style type="text/css"> summary { writing-mode: vertical-lr; text-align: center; padding: 12px 10px; width: 23px; height: 17px; background-color: var(--primColor); border: 2px solid var(--secoColor); border-radius: var(--cornerRad); color: var(--secoColor); cursor: pointer; user-select: none; outline: none; transition: transform 200ms ease-in-out 0s; } summary::before, summary::after { position: static; top: 0; left: 0; } summary::before { content: ""; } summary::after { content: "|||"; letter-spacing: 0px; } summary:hover { transform: scale(1.1); } summary::marker { font-size: 0; } summary::-webkit-details-marker { display: none; } details[open] .menu { animation-name: menuAnim; } details[open] summary::before { content: "X"; } details[open] summary::after { content: ""; } .z-proxy-bar .menu { height: 0; width: fit-content; border-radius: var(--cornerRad); background-color: var(--primColor); box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2); margin-top: 8px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; animation: closeMenu 300ms ease-in-out forwards; } .z-proxy-bar .menu a { padding: 12px 24px; margin: 0 16px; color: var(--secoColor); border-bottom: 2px solid rgba(0, 0, 0, 0.1); text-decoration: none; text-align: center; transition: filter 200ms linear 0s; } .z-proxy-bar .menu a:nth-of-type(1) { padding-top: 24px; } .z-proxy-bar .menu a:nth-last-of-type(1) { border-bottom: none; } .z-proxy-bar .menu a:hover { filter: brightness(200%); } details::before { color: var(--secoColor); position: absolute; margin-left: 80px; padding: 10px 10px; opacity: 0.4; } details[open]::before { animation: fadeMe 300ms linear forwards; } @keyframes menuAnim { 0% { height: 0; } 100% { height: 312px; } } @keyframes fadeMe { 0% { opacity: 0.4; } 100% { opacity: 0; } } .z-proxy-bar{ position:fixed!important; z-index:9999999!important; padding:10px!important; bottom:0px!important; left:0px!important; right:0px!important; background:#F2F2F2!important; font-family: Helvetica, Arial, Sans-Serif!important; display: flex!important; align-items: center!important; border-top: 1px solid #dadada!important; } .z-proxy-logo{ margin:0px!important; width:120px!important; height:100%!important; padding-right: 10px!important; overflow:hidden!important; } .z-proxy-form{ margin:0 auto!important; display: inline!important; width: 90%!important; display: block!important; padding: 0!important; } .z-proxy-search-input{ display: block!important; float: left!important; padding: 10px!important; margin: 0px!important; font-size: 15px!important; line-height: 15px!important; border-radius: 30px!important; border: 1px solid #dfe1e5!important; background-color: #ffffff!important; width: calc(100% - 60px)!important; height: 39px!important; color: #3c4043!important; box-sizing: border-box!important; -webkit-transition: all 0.10s ease-in-out!important; -moz-transition: all 0.10s ease-in-out!important; -ms-transition: all 0.10s ease-in-out!important; -o-transition: all 0.10s ease-in-out!important; outline: none!important; font-family: Helvetica, Arial, Sans-Serif!important; font-weight: normal!important; text-indent: unset!important; } .z-proxy-search-button{ display: block!important; float: right!important; width: 55px!important; height: 39px!important; font-weight: normal!important; text-indent: unset!important; line-height: 15px!important; background-color: #000000!important; margin:0!important; padding: unset!important; border: 1px solid #000000!important; border-radius: 4px!important; color: #ffffff!important; font-size: 15px!important; padding: 10px 15px!important; text-align: center!important; cursor: pointer!important; user-select: none!important; font-family: Helvetica, Arial, Sans-Serif!important; box-shadow: unset!important; } .z-proxy-search-button:hover{ background-color: #4c4c4c!important; } .z-proxy-search-input:focus{ box-shadow: 0 0 5px rgba(0, 0, 0, 0.2)!important; } .z-proxy-form-error { color: #721c24; background-color: #f8d7da!important; border-color: #f5c6cb!important; border: 1px solid transparent!important; font-family: Helvetica, Arial, Sans-Serif!important; font-size: 15px!important; padding: 5px!important; border-radius: 5px!important; margin-top: 3px!important; } .z-proxy-gotooriginal{ width: 30px!important; height: 100%!important; margin:unset!important; color:#0071BC!important; font-size:18px!important; font-family: Helvetica, Arial, Sans-Serif!important; white-space: nowrap!important; overflow:hidden!important; padding-left: 10px!important; } </style> <div class='z-proxy-bar'> <div class='z-proxy-logo'> <h3>nproxy.org</h3> </div> <form id="z-proxy-form" class="z-proxy-form"> <input class="z-proxy-search-input" type="text" name="" id="z-proxy-input" placeholder="Enter URL" value='https://www.01net.com/astuces/comment-actualiser-automatiquement-les-pages-de-son-navigateur-internet-300284.html'> </form> </div> <script type="text/javascript"> function zProxyGetCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function zProxySetCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); var cookieToSet = cname + "=" + cvalue + ";" + expires + ";domain=.yqlog.com;path=/"; document.cookie = cookieToSet; } document.getElementById("z-proxy-form").addEventListener("submit", function(event){ event.preventDefault(); var url = document.getElementById("z-proxy-input").value; if (!/^https?:\/\//i.test(url)) { url = 'https://' + url; } if(zProxyValidURL(url)){ document.getElementById("z-proxy-error").style.display = "none"; var originalURL = new URL(url); var hostname = originalURL.hostname.replace(/-/g,'-0-'); hostname = hostname.replace(/\./g,'-'); var destinationURL = 'https://' + hostname + '.yqlog.com' + originalURL.pathname + originalURL.search; window.location = destinationURL; }else{ document.getElementById("z-proxy-error").style.display = "block"; } }); function zProxyValidURL(str) { var pattern = new RegExp('^(https?:\\/\\/)?'+ '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ '((\\d{1,3}\\.){3}\\d{1,3}))'+ '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ '(\\?[;&a-z\\d%_.~+=-]*)?'+ '(\\#[-a-z\\d_]*)?$','i'); return !!pattern.test(str); } </script> </body> </html> Dans ce code, 10, représente l’intervalle en secondes entre chaque rafraîchissement. Remplacez 10 par
le nombre de secondes souhaité. Remplacez également ‘ http://www.01net.fr ‘ par l’adresse complète de la page Web que vous désirez voir rafraîchir régulièrement.Sauvez le document au format Texte via le menu Fichier?”Enregistrer sous. Modifiez ensuite son extension (de AppleScript en .html) via le menu contextuel Lire les informations
(Pomme?”I après sélection du fichier). Double?”cliquez sur le document créé ; il s’ouvrira dans votre navigateur et la page visitée sera automatiquement rafraîchie.

🔴 Pour ne manquer aucune actualité de 01net, suivez-nous sur Google Actualités et WhatsApp.


La rédaction