PALA.
Üye
Via Browser Tanıtım ve Ayarları
Android system webview altyapısını kullanan özel kişiselleştirme özellikleri olan bir tarayıcı olan Via browser tanıtımını ve ince ayarlarını içeren konumuza hoş geldiniz
Via browser 6.0 sürümünü çıkarttı. Öncelikle objektif olarak şuan için avantaj ve dezavantajlarından bahsedelim, daha sonra tarayıcıyı en iyi performansa nasıl çıkarabileceğinizden bahsedelim.
Via browser, android webview alt yapısını kullanıyor, bunun en büyük avantajı sistemde 15 - 20 MB gibi hiç yer kaplamayan bir tarayıcı olmasıdır. Sisteminizde 2. bir tarayıcı olarak kullanılabilir. Tarayıcının özelliği, güncelliği ve performansı android sisteminizin güncelliğine bağlıdır, bu bir dezavantaj. Bununla beraber en az kaynak kullanımı olan tarayıcılardan birisidir. Diğer tarayıcılara kıyasla şarjı %20-30 oranında daha az kullanıyor. Tam ekran modu çok kullanışlı, ekranı çok verimli kullanıyor. Ayrıca tarayıcı reklam engelleme özelliğine sahiptir, bununla ilgili konuşacağız.
Güvenlik konusunda Çin devletine kullanıcı verilerini paylaştığı söylentileri sebebiyle, güvenli internet işlerinizde Firefox gibi tarayıcıları tercih edip, 2. Tarayıcı olarak sörf için uygundur. Aslında güvenlik konusu çoğunlukla kullanıcı ile alakalı, nereye tıkladığınıza, ne yaptiğınıza dikkat edin.
Uygulamanın eklenti desteği yok, ancak yeni gelen özellikleri doğru kullanılırsa, çoğu tarayıcıda olmayan özellikleri sunuyor. İçine dahili Adblock özelliği var, bu geliştirilebilir, filtreler eklenebilir. Ayrıca CSS ve Script desteği ile süper özellikler sunuyor.
Anlatılacak çok şey var, zamanla eklemeler yapacağım, şimdi sözü daha fazla uzatmadan arayüzün paylaşımını yapalım, Via tarayıcımızı özelleştirelim.
Devasal arayüz, bunun için tam ekran modunda, üst bar yukarıda kullanılır.
Genel Ayarlar
Ayarlar menüsü düzenleme, aşağıdaki gibi kullanışlı hale getirilebilir.
Gizlilik menüsü ayarları.
Gelişmiş Ayarlar, menüsü ayarlarının optimum ayarları.
Ayarlar> Search ayarları
Reklam filtresi ekleme ayarları
Yukaridaki +simgesine tıklayıp filtre ekleyebilirsiniz. Size önerdiğim filtreler YouTube gibi sitelerde daha iyi reklam engellemeyi sağlıyor.
* Site Yapılandırması
Sol üst köşeden site yapılandırmasını yapabilirsiniz, istediğiniz tüm siteleri özelleştirebilirsiniz, tekrar ediyorum tüm siteleri genel ve özel özelleştirme özelliği var. All sites menüsünden de eklenip, düzenlenebilir.
Script Ekleme ve ayarları.
Size örnek olsun diye 4 tane script ekledim.
AMP devre dışı bırakma scripti.
- AMP google önyükleme özelliği bunu devre dışı bırakarak AMP sorunu olan sitelerde daha hızlı ve stabil sörf yapmak mümkündür. Ancak AMP nin asıl amacı internet veri tasarrufu sağlamak ve hız artışı sağlamaktır. Dolayısıyla sadece AMP hatası alınan sitelerde kullanmanız daha mantıklıdır. Bunun için AMP script ayarlarındaki tüm siteleri silip, sorun yaşanılan sitenin bağlantısını eklemeniz yeterli, sadece o sitede çalışacaktır.
Aşağıdaki kod, YouTube videolarını 144p vb. sabitleme yaparak, internet tasarrufu sağlıyor, ben bunu bir script sitesinden alıp, düzenledim, kullanılabilir hale getirdim, scripti güncellemeden kullanın.
- Youtube için özel 144p ayarı, bu özellik veri tasarrufu sağlıyor, örneğin telefonu dikey mini ekran modunda kullanırken, 50-60 MB internet ile 1 saat film izleme, müzik dinleme imkanı sağlıyor. Özellikle 5 dk müzik bile 30 mb üzerinde İnternet tükettiği ortamda 1 dakika 1 MB tüketim sağlıyor.
Youtube Symbian modunda girdiğinizde, kimliğinizi gösterir reklamları atlatırsınız
YouTube üzerinde sadece sponsorlu reklamlar kalıyor, onlarında neredeyse tamamını gizlemek için aşağıda hazırladığım, gizleme scriptini kullanabilirsiniz
İnternet sayfalarının en üstünden aşağı doğru çektiğinizde sayfayı yenileme özelliği nasıl eklenir onu gösterelim, bu kod GitHub dan alınıp, düzenleme yapılmıştır, yukarıda anlattığım gibi + simgesine tıklayıp, scripti ekleyin, kaydedin, tarayıcınızı aç kapa yapın.
Sayfayı aşağı çekerek, yenileme scripti; Pull down to refresh
Min_dY = 300 değerini ihtiyacınıza göre 200 - 500 değiştirebilirsiniz.
Not: Script düzenleme ayarlarından Excludes bölümüne dışlamak istediğiniz siteleri girebilirsiniz. Örneğin YouTube yorumlarında aşağı kaldırırken sayfa yenileme hatası aldım, Excludes bölümüne
Bazı durumlarda, örneğin konu açarken kazara sayfa yenilenmesin diye devre dışı bırakın ve sayfayı 1 defa yenileyin.
Birkaç ince ayar görseli,
Yukarıdaki görseldeki reklam olarak işaretleme özelliği, sayfalardaki özel öğeleri kaldırma özelliğidir.
Ayrıca reklam ve zararlı yazılımları, içerikleri engellemek için aşağıdaki özel gizli DNS hizmetini telefonunuzun ayarlar kısmından girerek kullanınız.
Son güncelleme: 24.11.2024
------------------------
Konumuz Via Browser ile yazılmış ve açılmıştır. Gerekli durumlarda güncellenecektir. Sorularınızı ciddi ve detaylı sorarsanız memnun olurum.
Yazımızı sabırla okuduğunuz için teşekkür ederiz
Via browser 6.0 sürümünü çıkarttı. Öncelikle objektif olarak şuan için avantaj ve dezavantajlarından bahsedelim, daha sonra tarayıcıyı en iyi performansa nasıl çıkarabileceğinizden bahsedelim.
Via browser, android webview alt yapısını kullanıyor, bunun en büyük avantajı sistemde 15 - 20 MB gibi hiç yer kaplamayan bir tarayıcı olmasıdır. Sisteminizde 2. bir tarayıcı olarak kullanılabilir. Tarayıcının özelliği, güncelliği ve performansı android sisteminizin güncelliğine bağlıdır, bu bir dezavantaj. Bununla beraber en az kaynak kullanımı olan tarayıcılardan birisidir. Diğer tarayıcılara kıyasla şarjı %20-30 oranında daha az kullanıyor. Tam ekran modu çok kullanışlı, ekranı çok verimli kullanıyor. Ayrıca tarayıcı reklam engelleme özelliğine sahiptir, bununla ilgili konuşacağız.
Güvenlik konusunda Çin devletine kullanıcı verilerini paylaştığı söylentileri sebebiyle, güvenli internet işlerinizde Firefox gibi tarayıcıları tercih edip, 2. Tarayıcı olarak sörf için uygundur. Aslında güvenlik konusu çoğunlukla kullanıcı ile alakalı, nereye tıkladığınıza, ne yaptiğınıza dikkat edin.
Uygulamanın eklenti desteği yok, ancak yeni gelen özellikleri doğru kullanılırsa, çoğu tarayıcıda olmayan özellikleri sunuyor. İçine dahili Adblock özelliği var, bu geliştirilebilir, filtreler eklenebilir. Ayrıca CSS ve Script desteği ile süper özellikler sunuyor.
Anlatılacak çok şey var, zamanla eklemeler yapacağım, şimdi sözü daha fazla uzatmadan arayüzün paylaşımını yapalım, Via tarayıcımızı özelleştirelim.
Devasal arayüz, bunun için tam ekran modunda, üst bar yukarıda kullanılır.
Genel Ayarlar
Ayarlar menüsü düzenleme, aşağıdaki gibi kullanışlı hale getirilebilir.
Gizlilik menüsü ayarları.
Gelişmiş Ayarlar, menüsü ayarlarının optimum ayarları.
Ayarlar> Search ayarları
Reklam filtresi ekleme ayarları
Yukaridaki +simgesine tıklayıp filtre ekleyebilirsiniz. Size önerdiğim filtreler YouTube gibi sitelerde daha iyi reklam engellemeyi sağlıyor.
Linkleri görüntülemek için kayıt olmalısınız
Linkleri görüntülemek için kayıt olmalısınız
* Site Yapılandırması
Sol üst köşeden site yapılandırmasını yapabilirsiniz, istediğiniz tüm siteleri özelleştirebilirsiniz, tekrar ediyorum tüm siteleri genel ve özel özelleştirme özelliği var. All sites menüsünden de eklenip, düzenlenebilir.
Script Ekleme ve ayarları.
Size örnek olsun diye 4 tane script ekledim.
AMP devre dışı bırakma scripti.
Linkleri görüntülemek için kayıt olmalısınız
- AMP google önyükleme özelliği bunu devre dışı bırakarak AMP sorunu olan sitelerde daha hızlı ve stabil sörf yapmak mümkündür. Ancak AMP nin asıl amacı internet veri tasarrufu sağlamak ve hız artışı sağlamaktır. Dolayısıyla sadece AMP hatası alınan sitelerde kullanmanız daha mantıklıdır. Bunun için AMP script ayarlarındaki tüm siteleri silip, sorun yaşanılan sitenin bağlantısını eklemeniz yeterli, sadece o sitede çalışacaktır.
Aşağıdaki kod, YouTube videolarını 144p vb. sabitleme yaparak, internet tasarrufu sağlıyor, ben bunu bir script sitesinden alıp, düzenledim, kullanılabilir hale getirdim, scripti güncellemeden kullanın.
JavaScript:
// ==UserScript==
// @name Youtube Auto 144p
// @author adisib
// @namespace namespace_adisib
// @description Select a youtube resolution and resize the player.
// @version 2020.09.26
// @include http://youtube.com/*
// @include https://m.youtube.com/*
// @include https://youtube.com/*
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
// @include http://gaming.youtube.com/*
// @include https://gaming.youtube.com/*
// @noframes
// @grant none
// ==/UserScript==
// The video will only resize when in theater mode on the main youtube website.
// By default only runs on youtube website, not players embeded on other websites, but there is experimental support for embeds.
// To enable experimental support for embedded players outside of YouTube website, do the following steps:
// add " @include * " to the script metadata
// remove " @noframes " from the script metadata
// Code supporting old layout will be removed only after the old layout stops existing entirely.
// 2020.09.24
// - Add a (hopefully temporary) workaround for a rare issue where users aren't given the option to sign in to view videos flagged as inappropriate.
// 2020.09.26
// - Fix potential script breakage from youtube's theater mode change function throwing exceptions.
(function() {
"use strict";
// --- SETTINGS -------
// Target Resolution to always set to. If not available, the next best resolution will be used.
const changeResolution = true;
const targetRes = "tiny";
// Choices for targetRes are currently:
// "highres" >= ( 8K / 4320p / QUHD )
// "hd2880" = ( 5K / 2880p / UHD+ )
// "hd2160" = ( 4K / 2160p / UHD )
// "hd1440" = ( 1440p / QHD )
// "hd1080" = ( 1080p / FHD )
// "hd720" = ( 720p / HD )
// "large" = ( 480p )
// "medium" = ( 360p )
// "small" = ( 240p )
// "tiny" = ( 144p )
// If changePlayerSize is true, then the video's size will be changed on the page
// instead of using youtube's default (if theater mode is enabled).
// If useCustomSize is false, then the player will be resized to try to match the target resolution.
// If true, then it will use the customHeight and customWidth variables.
const changePlayerSize = false;
const useCustomSize = false;
const customHeight = 600, customWidth = 1280;
// If autoTheater is true, each video page opened will default to theater mode.
// This means the video will always be resized immediately if you are changing the size.
// NOTE: YouTube will not always allow theater mode immediately, the page must be fully loaded before theater can be set.
const autoTheater = false;
// If flushBuffer is false, then the first second or so of the video may not always be the desired resolution.
// If true, then the entire video will be guaranteed to be the target resolution, but there may be
// a very small additional delay before the video starts if the buffer needs to be flushed.
// NOTE: This was disabled by default to to issues with new youtube layout. This has been changed in 2020.02.18
// since the issues no longer seem to occur. Set to false for previous behavior.
const flushBuffer = true;
// Setting cookies can allow some operations to perform faster or without a delay (e.g. theater mode)
// Some people don't like setting cookies, so this is false by default (which is the same as old behavior)
const allowCookies = false;
// Tries to set the resolution as early as possible.
// This might cause issues on youtube polymer layout, so disable if videos fail to load.
// If videos load fine, leave as true or resolution may fail to set.
const setResolutionEarly = true;
// Enables a temporary work around for an issue where users can get the wrong youtube error screen
// (Youtube has two of them for some reason and changing to theater mode moves the wrong one to the front)
// Try disabling if you can't interact with the video or you think you are missing an error message.
const enableErrorScreenWorkaround = true;
// --------------------
// --- GLOBALS --------
const DEBUG = false;
// Possible resolution choices (in decreasing order, i.e. highres is the best):
const resolutions = ['highres', 'hd2880', 'hd2160', 'hd1440', 'hd1080', 'hd720', 'large', 'medium', 'small', 'tiny'];
// youtube is always 16:9 right now, but has to be at least 480x270 for the player UI
const heights = [4320, 2880, 2160, 1440, 1080, 720, 480, 360, 270, 270];
const widths = [7680, 5120, 3840, 2560, 1920, 1280, 854, 640, 480, 480];
let doc = document, win = window;
// ID of the most recently played video
let recentVideo = "";
let setHeight = 0;
let setWidth = 0;
// --------------------
function debugLog(message)
{
if (DEBUG)
{
console.log("YTHD | " + message);
}
}
// --------------------
// Used only for compatability with webextensions version of greasemonkey
function unwrapElement(el)
{
if (el && el.wrappedJSObject)
{
return el.wrappedJSObject;
}
return el;
}
// --------------------
// Get video ID from the currently loaded video (which might be different than currently loaded page)
function getVideoIDFromURL(ytPlayer)
{
const idMatch = /(?:v=)([\w\-]+)/;
let videoURL = ytPlayer.getVideoUrl();
let id = idMatch.exec(videoURL)[1] || "ERROR: idMatch failed; youtube changed something";
return id;
}
// --------------------
// Attempt to set the video resolution to desired quality or the next best quality
function setResolution(ytPlayer, resolutionList)
{
debugLog("Setting Resolution...");
// Youtube doesn't return "auto" for auto, so set to make sure that auto is not set by setting
// even when already at target res or above, but do so without removing the buffer for this quality
if (resolutionList.indexOf(targetRes) >= resolutionList.indexOf(ytPlayer.getPlaybackQuality()))
{
if (ytPlayer.setPlaybackQualityRange !== undefined)
{
ytPlayer.setPlaybackQualityRange(targetRes);
}
ytPlayer.setPlaybackQuality(targetRes);
debugLog("Resolution Set To: " + targetRes);
return;
}
const end = resolutionList.length - 1;
let nextBestIndex = Math.max(resolutionList.indexOf(targetRes), 0);
let ytResolutions = ytPlayer.getAvailableQualityLevels();
debugLog("Available Resolutions: " + ytResolutions.join(", "));
while ( (ytResolutions.indexOf(resolutionList[nextBestIndex]) === -1) && nextBestIndex < end )
{
++nextBestIndex;
}
if (flushBuffer && ytPlayer.getPlaybackQuality() !== resolutionList[nextBestIndex])
{
let id = getVideoIDFromURL(ytPlayer);
if (id.indexOf("ERROR: ") === -1)
{
let pos = ytPlayer.getCurrentTime();
ytPlayer.loadVideoById(id, pos, resolutionList[nextBestIndex]);
}
debugLog("ID: " + id);
}
if (ytPlayer.setPlaybackQualityRange !== undefined)
{
ytPlayer.setPlaybackQualityRange(resolutionList[nextBestIndex]);
}
ytPlayer.setPlaybackQuality(resolutionList[nextBestIndex]);
debugLog("Resolution Set To: " + resolutionList[nextBestIndex]);
}
// --------------------
// Set resolution, but only when API is ready (it should normally already be ready)
function setResOnReady(ytPlayer, resolutionList)
{
if (ytPlayer.getPlaybackQuality === undefined)
{
win.setTimeout(setResOnReady, 100, ytPlayer, resolutionList);
}
else
{
let curVid = getVideoIDFromURL(ytPlayer);
if (curVid !== recentVideo)
{
recentVideo = curVid;
setResolution(ytPlayer, resolutionList);
let storedQuality = localStorage.getItem("yt-player-quality");
if (!storedQuality || storedQuality.indexOf(targetRes) === -1)
{
let tc = Date.now(), te = tc + 2592000000;
localStorage.setItem("yt-player-quality","{\"data\":\"" + targetRes + "\",\"expiration\":" + te + ",\"creation\":" + tc + "}");
}
}
}
}
// --------------------
function setTheaterMode(ytPlayer)
{
debugLog("Setting Theater Mode");
if (win.location.href.indexOf("/watch") !== -1)
{
let page = unwrapElement(doc.getElementById("page"));
let pageManager = unwrapElement(doc.getElementsByTagName("ytd-watch-flexy")[0]);
if (ytPlayer && page)
{
// Wait until youtube has already set the page class, so it doesn't overwrite the theater mode change
let isLoaded = doc.body.classList.contains("page-loaded");
if (page.className.indexOf(getVideoIDFromURL(ytPlayer)) === -1 || !isLoaded)
{
win.setTimeout(setTheaterMode, 250, ytPlayer);
}
if (isLoaded)
{
page.classList.remove("watch-non-stage-mode");
page.classList.add("watch-stage-mode", "watch-wide");
win.dispatchEvent(new Event("resize"));
}
}
else if (pageManager)
{
if (enableErrorScreenWorkaround)
{
let styleContent = "#error-screen { z-index: 42 !important } .ytp-error { display: none !important }";
let errorStyle = doc.getElementById("ythdErrorWorkaroundStyleSheet");
if (!errorStyle)
{
errorStyle = doc.createElement("style");
errorStyle.type = "text/css";
errorStyle.id = "ythdStyleSheet";
errorStyle.innerHTML = styleContent;
doc.head.appendChild(errorStyle);
}
else
{
errorStyle.innerHTML = styleContent;
}
}
try
{
pageManager.theaterModeChanged_(true);
}
catch (e)
{ /* Ignore internal youtube exceptions. */ }
}
}
}
// --------------------
function computeAndSetPlayerSize()
{
let width, height;
if (useCustomSize)
{
height = customHeight;
width = customWidth;
}
else
{
// don't include youtube search bar as part of the space the video can try to fit in
let heightOffsetEl = doc.getElementById("masthead-positioner-height-offset") || doc.getElementById("masthead");
let mastheadContainerEl = doc.getElementById("yt-masthead-container") || doc.getElementById("masthead-container");
let mastheadHeight = 50, mastheadPadding = 16;
if (heightOffsetEl && mastheadContainerEl)
{
mastheadHeight = parseInt(win.getComputedStyle(heightOffsetEl).height, 10);
mastheadPadding = parseInt(win.getComputedStyle(mastheadContainerEl).paddingBottom, 10) * 2;
}
let i = Math.max(resolutions.indexOf(targetRes), 0);
height = Math.min(heights[i], win.innerHeight - (mastheadHeight + mastheadPadding));
width = Math.min(widths[i], win.innerWidth);
}
resizePlayer(width, height);
}
// --------------------
// resize the player
function resizePlayer(width, height)
{
debugLog("Setting video player size");
if (setHeight === height && setWidth === width)
{
debugLog("Player size already set");
return;
}
let left, playlistTop, playlistHeight;
left = (-width / 2);
playlistTop = (height - 360);
playlistHeight = (height - 100);
let styleContent = "\
#page.watch-stage-mode .player-height { min-height: " + height + "px !important } \
#page.watch-stage-mode .player-width { min-width: " + width + "px !important; } \
#page.watch-stage-mode .player-width { left: " + left + "px !important; } \
#page.watch-stage-mode #watch-appbar-playlist { top: " + playlistTop + "px !important; } \
#page.watch-stage-mode #playlist-autoscroll-list { max-height: " + playlistHeight + "px !important; } \
ytd-watch-flexy[theater]:not([fullscreen]) #player-theater-container.style-scope { \
min-height: " + height + "px !important; max-height: none !important; height: " + height + "px !important } \
";
let ythdStyle = doc.getElementById("ythdStyleSheet");
if (!ythdStyle)
{
ythdStyle = doc.createElement("style");
ythdStyle.type = "text/css";
ythdStyle.id = "ythdStyleSheet";
ythdStyle.innerHTML = styleContent;
doc.head.appendChild(ythdStyle);
}
else
{
ythdStyle.innerHTML = styleContent;
}
setHeight = height;
setWidth = width;
win.dispatchEvent(new Event("resize"));
}
// --- MAIN -----------
function main()
{
let ytPlayer = doc.getElementById("movie_player") || doc.getElementsByClassName("html5-video-player")[0];
let ytPlayerUnwrapped = unwrapElement(ytPlayer);
if (autoTheater && ytPlayerUnwrapped)
{
if (allowCookies && doc.cookie.indexOf("wide=1") === -1)
{
doc.cookie = "wide=1; domain=.youtube.com";
}
setTheaterMode(ytPlayerUnwrapped);
}
if (changePlayerSize && win.location.host.indexOf("youtube.com") !== -1 && win.location.host.indexOf("gaming.") === -1)
{
computeAndSetPlayerSize();
window.addEventListener("resize", computeAndSetPlayerSize, true);
}
if (changeResolution && setResolutionEarly && ytPlayerUnwrapped)
{
setResOnReady(ytPlayerUnwrapped, resolutions);
}
if (changeResolution || autoTheater)
{
win.addEventListener("loadstart", function(e) {
if (!(e.target instanceof win.HTMLMediaElement))
{
return;
}
ytPlayer = doc.getElementById("movie_player") || doc.getElementsByClassName("html5-video-player")[0];
ytPlayerUnwrapped = unwrapElement(ytPlayer);
if (ytPlayerUnwrapped)
{
debugLog("Loaded new video");
if (changeResolution)
{
setResOnReady(ytPlayerUnwrapped, resolutions);
}
if (autoTheater)
{
setTheaterMode(ytPlayerUnwrapped);
}
}
}, true );
}
// This will eventually be changed to use the "once" option, but I want to keep a large range of browser support.
win.removeEventListener("yt-navigate-finish", main, true );
}
main();
// Youtube doesn't load the page immediately in new version so you can watch before waiting for page load
// But we can only set resolution until the page finishes loading
win.addEventListener("yt-navigate-finish", main, true );
})();
- Youtube için özel 144p ayarı, bu özellik veri tasarrufu sağlıyor, örneğin telefonu dikey mini ekran modunda kullanırken, 50-60 MB internet ile 1 saat film izleme, müzik dinleme imkanı sağlıyor. Özellikle 5 dk müzik bile 30 mb üzerinde İnternet tükettiği ortamda 1 dakika 1 MB tüketim sağlıyor.
Youtube Symbian modunda girdiğinizde, kimliğinizi gösterir reklamları atlatırsınız
YouTube üzerinde sadece sponsorlu reklamlar kalıyor, onlarında neredeyse tamamını gizlemek için aşağıda hazırladığım, gizleme scriptini kullanabilirsiniz
JavaScript:
// ==UserScript==
// @name YouTube Mobile Ad Hider
// @namespace https://viayoo.com/
// @version 0.1
// @description Hides ads on m.youtube.com
// @author You
// @run-at document-end
// @match https://m.youtube.com/*
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Reklam öğelerini gizleme
const hideAds = () => {
const ads = document.querySelectorAll('ytd-ad-slot-renderer');
ads.forEach(ad => ad.style.display = 'none');
};
// Sayfa yüklendikçe reklamları gizle
hideAds();
window.addEventListener('load', hideAds); // Sayfa tamamen yüklendikten sonra çalışacak
})();
İnternet sayfalarının en üstünden aşağı doğru çektiğinizde sayfayı yenileme özelliği nasıl eklenir onu gösterelim, bu kod GitHub dan alınıp, düzenleme yapılmıştır, yukarıda anlattığım gibi + simgesine tıklayıp, scripti ekleyin, kaydedin, tarayıcınızı aç kapa yapın.
Sayfayı aşağı çekerek, yenileme scripti; Pull down to refresh
JavaScript:
// ==UserScript==
// @name Refresh
// @namespace https://viayoo.com/
// @version 0.1
// @description try to take over the world!
// @author You
// @run-at document-end
// @match https://*/*
// @grant none
// ==/UserScript==
/*
* @name: Pull down to refresh
* @Author: Sky
* @version: 1.7
* @description: Pull down to refresh when at the top of the page
* @include: *
* @createTime: 2020-3-6 01:00
* @updateTime: 2020-10-9 21:10
*/
(function(){const
/*The number after the equal sign indicates the minimum trigger pull-down distance (px)*/
min_dY = 300,
/*----Do not change the following----*/
key=encodeURIComponent('Pull-down refresh: execute judgment');
if(window[key]){return;}
try{
window[key]=true;
let strtX,strtY=0,rchTp,onePt=false;
document.addEventListener( 'touchstart',function(e){
if(onePt){rchTp=false;
}else{
onePt=true;
rchTp=(document.body.scrollTop||document.documentElement.scrollTop)<50;
strtX=e.touches[ 0].screenX;
strtY=e.touches[0].screenY;
}
},
{'passive':true}
);
document.addEventListener('touchend',function(e){
if(rchTp){
const dY=Math .floor(e.changedTouches[0].screenY-strtY);
if(dY>min_dY && Math.abs(e.changedTouches[0].screenX-strtX)<(0.4*dY)){
location.reload();
}
rchTp =false;
}
onePt=false;
},
{'passive':true,'capture':true}
);}
catch(err){console.log('Pull to refresh:',err);}
})();
Min_dY = 300 değerini ihtiyacınıza göre 200 - 500 değiştirebilirsiniz.
Not: Script düzenleme ayarlarından Excludes bölümüne dışlamak istediğiniz siteleri girebilirsiniz. Örneğin YouTube yorumlarında aşağı kaldırırken sayfa yenileme hatası aldım, Excludes bölümüne
Linkleri görüntülemek için kayıt olmalısınız
bağlantısını ekledim, sorun çözüldü. Bunu diğer siteler için de yapabilirsiniz.Bazı durumlarda, örneğin konu açarken kazara sayfa yenilenmesin diye devre dışı bırakın ve sayfayı 1 defa yenileyin.
Birkaç ince ayar görseli,
Yukarıdaki görseldeki reklam olarak işaretleme özelliği, sayfalardaki özel öğeleri kaldırma özelliğidir.
Ayrıca reklam ve zararlı yazılımları, içerikleri engellemek için aşağıdaki özel gizli DNS hizmetini telefonunuzun ayarlar kısmından girerek kullanınız.
Kod:
family.adguard-dns.com
dns.adguard-dns.com
Son güncelleme: 24.11.2024
------------------------
Konumuz Via Browser ile yazılmış ve açılmıştır. Gerekli durumlarda güncellenecektir. Sorularınızı ciddi ve detaylı sorarsanız memnun olurum.
Yazımızı sabırla okuduğunuz için teşekkür ederiz
Son düzenleme: