From d3e36ae43717f4769f5cc73949588353ef0a1890 Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Sun, 13 Oct 2024 16:47:00 +0800
Subject: [PATCH] add css/nojscopy.js to disable webpage clipboard copy
---
en/_posts/index.xml | 16 +++++------
en/bookmark/index.html | 6 ++--
en/globalcss/index.html | 6 ++--
en/index.html | 14 +++++-----
en/index.xml | 16 +++++------
en/sitemap.xml | 62 ++++++++++++++++++++---------------------
latest.html | 2 +-
sitemap.xml | 4 +--
zh/_posts/index.xml | 4 +--
zh/index.html | 2 +-
zh/index.xml | 4 +--
zh/logcat/index.html | 8 +++---
zh/sitemap.xml | 6 ++--
13 files changed, 76 insertions(+), 74 deletions(-)
diff --git a/en/_posts/index.xml b/en/_posts/index.xml
index 4c67bc91..bc12bdca 100644
--- a/en/_posts/index.xml
+++ b/en/_posts/index.xml
@@ -6,8 +6,15 @@
Recent content in _Posts on uweb browser: unlimited powerHugoen
- Tue, 27 Aug 2024 10:07:34 +0800
+ Sun, 13 Oct 2024 16:43:18 +0800
+
+ CSS styles
+ /en/globalcss/
+ Sun, 13 Oct 2024 00:00:00 +0000
+ /en/globalcss/
+ <p><a href="../index.html#">Uweb browser</a> loads all ".css" files under the folder "css" as global css. Click the following links to install global css files:</p>
<p><a href="i:0hcss/clearfont.css:../../zh/searchurl/txt/clearfont.css">Clearing font settings</a></p>
<p>The file "night.css" is used as night mode, click the following links to install one:<br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night.css">webview 81+ night mode</a><br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview 80- night mode</a></p>
<h4 id="earliest-loaded-global-js">Earliest loaded global js</h4>
<p>The ".js" files under the folder "css" are loaded as earlier as possible on the page.</p>
<p>Click the following links to install early loaded global js:<br>
<a href="i:0hcss/nojscopy.js::document.addEventListener(%22copy%22,(e)=>{e.preventDefault()})">No webpage clipboard copy</a></p>
+ Text selection/processing
/en/textprocess/
@@ -113,13 +120,6 @@
/en/bookmarklet/<p>With <a href="../index.html#">uweb browser</a>, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.</p>
<p><a href="javascript:{let es=document.getElementsByTagName('script');let urls='';for(let i=0;i<es.length;i++){if(es[i].src)urls+=es[i].src+'<br>';}let w=window.open(''),s=w.document;s.write(urls);s.close();w.location.href='i:631:';}">List all script urls</a></p>
<p><a target="_self" href="javascript:alert(navigator.userAgent)">User agent</a><br>
<a href="javascript:(function(){var w=window.open(''),s=w.document;s.write('<html><body></body></html>');s.close();var pre=s.body.appendChild(s.createElement('pre'));pre.style.overflow='auto';pre.style.whiteSpace='pre-wrap';pre.appendChild(s.createTextNode(document.cookie))})()">Cookie</a><br>
<a href="javascript:(function(){var w=window.open(''),s=w.document;s.write('<html><body></body></html>');s.close();var pre=s.body.appendChild(s.createElement('pre'));pre.style.overflow='auto';pre.style.whiteSpace='pre-wrap';pre.appendChild(s.createTextNode(document.documentElement.innerHTML))})()">Source code</a><br>
<a href="javascript:function%20gett(w){try{var%20lm=new%20Date(w.document.lastModified);if(lm>maxd)maxd=lm;for(var%20i=0;F=w.frames[i];i++){gett(F);}}catch(e){}}var%20now=new%20Date();var%20maxd=new%20Date(document.lastModified);gett(window);if(maxd.getTime()==0||now.toUTCString()==maxd.toUTCString()){alert('Page%20is%20dynamically%20generated,%20cannot%20determine%20date.');}else{alert('Page%20was%20last%20modified%20'+maxd.toLocaleString());}" class="bookmarklet" rel="nofollow">Last modified date</a></p>
<p><a href="javascript:(function(){var script=document.createElement('script');script.src='//fastly.jsdelivr.net/npm/eruda';document.body.appendChild(script);script.onload=function(){eruda.init()}})()">Eruda: mobile console</a><br>
<a href="javascript:window.open('https://api.qrserver.com/v1/create-qr-code/?size=150x150&data='%20+%20decodeURIComponent(location.href));void(0);">QR code generation</a></p>
<p><a href="javascript:(function(){var x,i; x = document.forms; for (i = 0; i < x.length; ++i) x[i].method="get"; alert("Changed " + x.length + " forms to use the GET method. After submitting a form from this page, you should be able to bookmark the result."); })();">Use "GET" method for "POST"</a><br>
<a href="javascript:(function(){var i,f,j,e,div,label,ne; for(i=0;f=document.forms[i];++i)for(j=0;e=f[j];++j)if(e.type=="hidden"){ D=document; function C(t){return D.createElement(t);} function A(a,b){a.appendChild(b);} div=C("div"); label=C("label"); A(div, label); A(label, D.createTextNode(e.name + ": ")); e.parentNode.insertBefore(div, e); e.parentNode.removeChild(e); ne=C("input");/*for ie*/ ne.type="text"; ne.value=e.value; A(label, ne); --j;}})()">Shows all form elements</a><br>
<a href="javascript:(function(){var x,k,f,j;x=document.forms;for (k=0;k<x.length;++k){f=x[k];for(j=0;j<f.length;++j){f[j].disabled=false; f[j].readOnly=false;}}})()">Enables all form elements</a></p>
-
- CSS styles
- /en/globalcss/
- Sun, 03 Apr 2022 00:00:00 +0000
- /en/globalcss/
- <p><a href="../index.html#">Uweb browser</a> loads all ".css" files under the folder "css" as global css. Click the following links to install global css files:</p>
<p><a href="i:0hcss/clearfont.css:../../zh/searchurl/txt/clearfont.css">Clearing font settings</a></p>
<p>The file "night.css" is used as night mode, click the following links to install one:<br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night.css">webview 81+ night mode</a><br>
<a href="i:0hnight.css:../../zh/searchurl/txt/night_old.css">webview 80- night mode</a></p>
<h4 id="earliest-loaded-global-js">Earliest loaded global js</h4>
<p>The ".js" files under the folder "css" are loaded as earlier as possible on the page.</p>
- Toolbar customization
/en/icons/
diff --git a/en/bookmark/index.html b/en/bookmark/index.html
index 7e62cb79..f8de4293 100644
--- a/en/bookmark/index.html
+++ b/en/bookmark/index.html
@@ -80,7 +80,7 @@
To save the bookmarks to local, users firstly need to install "bookmark" menu by clicking corresponding link in the url services page, then long press the bookmark link => "open in new tab" => "Commands" => "bookmark" to save the bookmark.