Showing posts with label Via script. Show all posts
Showing posts with label Via script. Show all posts

30 Aug 2018

Log button - via script

A simple script that open log file

Install copy / paste

/*favorites button*/ function createbookBtn() {     var isbookBtn = document.getElementById('bookBtn');     if (isbookBtn) {    isbookBtn.parentNode.removeChild(isbookBtn);  };   var bookBtn = document.createElement("div");  bookBtn.id = "bookBtn";  bookBtn.innerHTML = "fav";   bookBtn.setAttribute("style","font-size:4vw !important;width:10vw !important;height:10vw !important;line-height:10vw !important;text-align:center !important;background-color:rgba(247,126,147,0.4) !important;box-shadow:0px 1px 10px rgba(0,0,0,0.2) !important;color:#000 !important;position:fixed !important;bottom:20vh !important;right:5vw !important;z-index:99999 !important;border-radius:100% !important;display:none");  bookBtn.onclick = function () {   navigatorTo();   };   document.body.appendChild(bookBtn); }; function navigatorTo(x) {  location.href = "v://log"; }; createbookBtn(); document.body.ontouchstart = function(){  document.getElementById("bookBtn").style.display="block";  setTimeout(function(){   document.getElementById("bookBtn").style.display="none";  },3000); }

Enjoy
Pay me a coffee


10 Aug 2018

Copy link - via script


Simple button to copy actual website link

Install(copy/paste)
domain: *
script:
/*copylink*/{ function createcopylinkBtn() { var iscopylinkBtn = document.getElementById('copylinkBtn'); if (iscopylinkBtn) { iscopylinkBtn.parentNode.removeChild(iscopylinkBtn); }; var copylinkBtn = document.createElement("div"); copylinkBtn.id = "copylinkBtn"; copylinkBtn.innerHTML = "C"; copylinkBtn.setAttribute("style","font-size:4vw !important;width:10vw !important;height:10vw !important;line-height:10vw !important;text-align:center !important;background-color:rgba(48,9,243,0.4) !important;box-shadow:0px 1px 10px rgba(0,0,0,0.2) !important;color:#000 !important;position:fixed !important;bottom:30vh !important;right:5vw !important;z-index:99999 !important;border-radius:100% !important;display:block !important;"); copylinkBtn.onclick = function () {var dummy = document.createElement('input'),     text = window.location.href; document.body.appendChild(dummy); dummy.value = text; dummy.select(); document.execCommand('copy'); document.body.removeChild(dummy); via.toast("link copied");}; document.body.appendChild(copylinkBtn); };  createcopylinkBtn(); };

Enjoy
Please pay me a coffee


9 Aug 2018

YouTube downloader - via script

A simple button to download youtube media
The script copy the youtube link and open automatically a converter website. Just paste link, select format, done.

Install (copy/paste):
Source: m.youtube.com
script:
/*youtube*/if(location.href.match("youtube.com/")){ function createyoutubeBtn() { var isyoutubeBtn = document.getElementById('youtubeBtn'); if (isyoutubeBtn) { isyoutubeBtn.parentNode.removeChild(isyoutubeBtn); }; var youtubeBtn = document.createElement("div"); youtubeBtn.id = "youtubeBtn"; youtubeBtn.innerHTML = "Yt"; youtubeBtn.setAttribute("style","font-size:4vw !important;width:10vw !important;height:10vw !important;line-height:10vw !important;text-align:center !important;background-color:rgba(26,255,0,0.4) !important;box-shadow:0px 1px 10px rgba(0,0,0,0.2) !important;color:#000 !important;position:fixed !important;bottom:20vh !important;right:5vw !important;z-index:99999 !important;border-radius:100% !important;display:block !important;"); youtubeBtn.onclick = function () {var dummy = document.createElement('input'),     text = window.location.href; document.body.appendChild(dummy); dummy.value = text; dummy.select(); document.execCommand('copy'); document.body.removeChild(dummy); getUrl(location.href); }; document.body.appendChild(youtubeBtn); }; function getUrl (x) {location.href = "https://www.onlinevideoconverter.com/en/video-converter"; }; createyoutubeBtn(); };

Enjoy
Please pay me a coffee


31 Jul 2018

Zoom - via browser script


With this script you can zoon any website.

/*zoom*/var sc = document.createElement("meta");sc.setAttribute("name", "viewport");sc.setAttribute("content", "width=device-width, initial-scale=1, user-scalable=yes");document.head.appendChild(sc);

Install: copy code and paste it on settings>>script

Please pay me a coffee


28 Jul 2018

Go to the top - via browser script


This script add a arrow button at right down corner

Code:
/*to the top*/function toTop() { var toTopBtn = document.createElement("div"); toTopBtn.id = "toTopBtn"; toTopBtn.innerHTML = "⇧"; toTopBtn.setAttribute("style","font-size:7vw !important;width:10vw !important;height:10vw !important;line-height:10vw !important;text-align:center !important;background-color:rgba(255,255,255,0.4) !important;box-shadow:0px 1px 10px rgba(0,0,0,0.2) !important;color:#000 !important;position:fixed !important;bottom:10vh !important;right:5vw !important;z-index:99999 !important;border-radius:100% !important;display:block;"); toTopBtn.onclick = function () { window.scrollTo(0,0); }; document.body.appendChild(toTopBtn); }; function isScrollToTop() { var theBody = document.getElementsByTagName('body')[0]; var topTopBtn = document.getElementById('toTopBtn'); theBody.ontouchstart = function (e) { mystartY = e.changedTouches[0].clientY; }; theBody.ontouchmove = function (e) { myendY = e.changedTouches[0].clientY; var y = myendY - mystartY; if (y >= 0){ toTopBtn.style.display = "block"; } else { toTopBtn.style.display = "none"; }; }; }; var isLoading = document.getElementById('toTopBtn'); if(!isLoading) { toTop(); isScrollToTop(); };

Installation: copy code and paste it on settings>>script

Please pay me a coffee


 
Copyright © VIA BROWSER ANDROID
;