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 power Hugo en - 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 &quot;.css&quot; files under the folder &quot;css&quot; 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 &quot;night.css&quot; 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 &quot;.js&quot; files under the folder &quot;css&quot; 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 &quot;Open in new tab&quot;, 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 &lt; x.length; ++i) x[i].method=&quot;get&quot;; alert(&quot;Changed &quot; + x.length + &quot; forms to use the GET method. After submitting a form from this page, you should be able to bookmark the result.&quot;); })();">Use &quot;GET&quot; method for &quot;POST&quot;</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==&quot;hidden&quot;){ D=document; function C(t){return D.createElement(t);} function A(a,b){a.appendChild(b);} div=C(&quot;div&quot;); label=C(&quot;label&quot;); A(div, label); A(label, D.createTextNode(e.name + &quot;: &quot;)); e.parentNode.insertBefore(div, e); e.parentNode.removeChild(e); ne=C(&quot;input&quot;);/*for ie*/ ne.type=&quot;text&quot;; 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&lt;x.length;++k){f=x[k];for(j=0;j&lt;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 &quot;.css&quot; files under the folder &quot;css&quot; 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 &quot;night.css&quot; 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 &quot;.js&quot; files under the folder &quot;css&quot; 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.

symbolic link configuration folder to "/sdcard/Download/uweb"

Make uweb configuration folder accessible by file managers with termux installed
-(File manager list at end of the page)

+(documentsUI or File manager list at end of the page)

Scan mdx/mdd files under the folder "/sdcard/Download/mdict" and add search engines.

Termux

The following bookmarks need termux.
@@ -91,8 +91,8 @@ "novel.html": auto reader's mode

-

Last Modified: 19 August 2024
-add mimetype 'q' for quit
+

Last Modified: 13 October 2024
+add css/nojscopy.js to disable webpage clipboard copy


 

diff --git a/en/globalcss/index.html b/en/globalcss/index.html index 03a53a7b..4e530091 100644 --- a/en/globalcss/index.html +++ b/en/globalcss/index.html @@ -54,10 +54,12 @@ webview 80- night mode

Earliest loaded global js

The ".js" files under the folder "css" are loaded as earlier as possible on the page.

+

Click the following links to install early loaded global js:
+No webpage clipboard copy

-

Last Modified: 2 April 2024
-add js function in README
+

Last Modified: 13 October 2024
+add css/nojscopy.js to disable webpage clipboard copy


 

diff --git a/en/index.html b/en/index.html index f3cdfd47..576b3718 100644 --- a/en/index.html +++ b/en/index.html @@ -1,7 +1,7 @@ - + @@ -96,6 +96,12 @@ +
  • + + CSS styles + +
  • +
  • Text selection/processing @@ -186,12 +192,6 @@
  • -
  • - - CSS styles - -
  • -
  • Toolbar customization diff --git a/en/index.xml b/en/index.xml index ec0e880e..2f5663dd 100644 --- a/en/index.xml +++ b/en/index.xml @@ -6,8 +6,15 @@ Recent content on uweb browser: unlimited power Hugo en - Thu, 03 Oct 2024 22:10:01 +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 &quot;.css&quot; files under the folder &quot;css&quot; 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 &quot;night.css&quot; 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 &quot;.js&quot; files under the folder &quot;css&quot; 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 /en/ebrowser/eb_select/ @@ -162,13 +169,6 @@ /en/rjs/ <p><a href="../sitejs/index.html#">javascript for domains</a><br> <a href="../globalcss/index.html#">Earliest loaded global javascript</a> files locates in the subfolder &quot;css&quot; of app private folder.</p> <p><b>Global javascript</b> files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:<br> <a target="_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">Save password</a><br> <a target="_self" href="i:0hjs/instantPage.js:https://fastly.jsdelivr.net/npm/instant.page">Instant page</a></p> <p><b>large size javascript code</b> can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):<br> <a target="_self" href="i:0hbookmarklet/!googleTranslate.js:https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit:%0A{let d=document,b=d.body,v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">google translation</a></p> <p><a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br> <a target="_self" href="i:0hbookmarklet/performance.js:https://fastly.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a></p> <p>Note: Bookmarklets whose names begin with &quot;!&quot; are allowed to load remote js on CSP (Content Security Policy) sites.</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 &quot;.css&quot; files under the folder &quot;css&quot; 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 &quot;night.css&quot; 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 &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</p> - Toolbar customization /en/icons/ diff --git a/en/sitemap.xml b/en/sitemap.xml index a2444b73..6cb80a34 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -2,14 +2,34 @@ - /en/ebrowser/ - 2024-07-12T10:48:12+08:00 + /en/_posts/ + 2024-10-13T16:43:18+08:00 + + - /en/ebrowser/eb_select/ - 2024-07-12T10:48:12+08:00 + /en/globalcss/ + 2024-10-13T16:43:18+08:00 + + /en/ - 2024-10-03T22:10:01+08:00 + 2024-10-13T16:43:18+08:00 - /en/_posts/ - 2024-08-27T10:07:34+08:00 - - + /en/ebrowser/ + 2024-07-12T10:48:12+08:00 + + /en/ebrowser/eb_select/ + 2024-07-12T10:48:12+08:00 /en/tags/clipboard/ 2024-05-24T09:50:14+08:00 @@ -239,7 +252,7 @@ /> /en/bookmark/ - 2024-08-19T10:01:04+08:00 + 2024-10-13T09:21:26+08:00 - - /en/globalcss/ - 2024-04-02T11:45:19+08:00 - - /en/icons/ 2024-04-02T11:45:19+08:00 diff --git a/latest.html b/latest.html index 26fbc45b..a4fa6ac8 100644 --- a/latest.html +++ b/latest.html @@ -1,7 +1,7 @@