preprocessing before rendering with siteextra

This commit is contained in:
James Feng Cao 2023-01-28 09:41:12 +08:00
parent 349e7e629d
commit 612af3a880
20 changed files with 162 additions and 144 deletions

View File

@ -5,7 +5,16 @@
<link>/en/_posts/</link>
<description>Recent content in _posts on uweb browser</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Mon, 16 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 28 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>JS/CSS/HTML/preprocessing for domains</title>
<link>/en/sitejs/</link>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
<item>
<title>Tips</title>
<link>/en/tips/</link>
@ -319,14 +328,5 @@ Swiping on the top part of content window (near the top address bar by default)
Each line of the hosts file has the following format:</description>
</item>
<item>
<title>Javascript and CSS for domains</title>
<link>/en/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
</channel>
</rss>

View File

@ -84,6 +84,12 @@
<li class="post">
<a href="sitejs/index.html">
<span>JS/CSS/HTML/preprocessing for domains</span>
</a>
</li>
<li class="post">
<a href="tips/index.html">
<span>Tips</span>
@ -210,12 +216,6 @@
</a>
</li>
<li class="post">
<a href="sitejs/index.html">
<span>Javascript and CSS for domains</span>
</a>
</li>
<li class="post">

View File

@ -5,7 +5,16 @@
<link>/en/</link>
<description>Recent content on uweb browser</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Mon, 16 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 28 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>JS/CSS/HTML/preprocessing for domains</title>
<link>/en/sitejs/</link>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
<item>
<title>Tips</title>
<link>/en/tips/</link>
@ -450,14 +459,5 @@ Swiping on the top part of content window (near the top address bar by default)
Each line of the hosts file has the following format:</description>
</item>
<item>
<title>Javascript and CSS for domains</title>
<link>/en/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
</channel>
</rss>

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="../style.css" type="text/css" />
<title>Javascript and CSS for domains</title>
<title>JS/CSS/HTML/preprocessing for domains</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
@ -40,7 +40,7 @@
<br />
<div class="container">
<h1 class="title">Javascript and CSS for domains
<h1 class="title">JS/CSS/HTML/preprocessing for domains
<br>
<span class="subtitle"></span>
</h1>
@ -65,14 +65,14 @@
<li>&quot;[domain root].js&quot; is loaded at the earlieat time.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Apply user styles&quot;.</li>
</ul>
<p>If file &quot;default.css&quot; exists, the style will be applied to all sites without matching [domain root].css.</p>
<h3 id="extra-html">Extra html</h3>
<p>If file &quot;default.css&quot; exists, the style will be applied to all sites not matching [domain root].css.</p>
<h3 id="extra-html-and-preprocessing">Extra html and preprocessing</h3>
<ul>
<li>Need to be named as &quot;[domain].html&quot;. Notice: the file name here is &quot;[full domain]&quot; not &quot;[domain root]&quot;.</li>
<li>Need to be named as &quot;[domain].html&quot;. Notice: the file name stem here is &quot;[full domain]&quot; not &quot;[domain root]&quot;.</li>
<li>Under folder &quot;siteextra&quot;.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Apply user extra&quot;.</li>
</ul>
<p>The extra html could be placed before the site source html (uweb uses an algorithm to merge the extra html with the site source html automatically). Ex. when the extra html ends with &quot;&lt;textarea&gt;&quot;, the site source html appears as the value of the textarea element, thus the extra html can further process the the site source html before rendering. For sites with textarea elements, &quot;&lt;div&gt;&lt;textarea&gt;&quot; could be used.</p>
<p>The extra html could be placed before the site source html (uweb merges the extra html with the site source html intelligently). Ex. when the extra html ends with &quot;&lt;textarea&gt;&quot;, the site source html appears as the value of the textarea element, thus the extra html can further process the the site source html before rendering. For sites with textarea elements, &quot;&lt;div&gt;&lt;textarea&gt;&quot; could be used.</p>
<p>&quot;sitejs/.js&quot;, &quot;sitecss/.css&quot;, &quot;sitecss/.js&quot; and &quot;siteextra/.html&quot; are applied to all non-http urls (file urls etc.).</p>
</div>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-01-16T00:00:00+00:00</lastmod>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -14,6 +14,71 @@
hreflang="en"
href="/en/_posts/"
/>
</url><url>
<loc>/en/tags/css/</loc>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/css/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/css/"
/>
</url><url>
<loc>/en/tags/javascript/</loc>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/javascript/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/javascript/"
/>
</url><url>
<loc>/en/sitejs/</loc>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/sitejs/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/sitejs/"
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/"
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/"
/>
</url><url>
<loc>/en/tips/</loc>
<lastmod>2023-01-16T00:00:00+00:00</lastmod>
@ -27,19 +92,6 @@
hreflang="en"
href="/en/tips/"
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-01-16T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/"
/>
</url><url>
<loc>/en/acmd/</loc>
<lastmod>2023-01-08T00:00:00+00:00</lastmod>
@ -166,32 +218,6 @@
hreflang="en"
href="/en/bookmarklet/"
/>
</url><url>
<loc>/en/tags/javascript/</loc>
<lastmod>2022-06-24T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/javascript/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/javascript/"
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2022-06-24T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/"
/>
</url><url>
<loc>/en/urls/</loc>
<lastmod>2022-06-10T00:00:00+00:00</lastmod>
@ -490,29 +516,5 @@
hreflang="en"
href="/en/categories/"
/>
</url><url>
<loc>/en/tags/css/</loc>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/css/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/css/"
/>
</url><url>
<loc>/en/sitejs/</loc>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/sitejs/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/sitejs/"
/>
</url>
</urlset>

View File

@ -45,7 +45,7 @@
<li class="post">
<a href="../../sitejs">
<span>Javascript and CSS for domains</span>
<span>JS/CSS/HTML/preprocessing for domains</span>
</a>
</li>

View File

@ -4,11 +4,12 @@
<title>css on uweb browser</title>
<link>/en/tags/css/</link>
<description>Recent content in css on uweb browser</description>
<generator>Hugo -- gohugo.io</generator><atom:link href="/en/tags/css/index.xml" rel="self" type="application/rss+xml" />
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Sat, 28 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/css/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Javascript and CSS for domains</title>
<title>JS/CSS/HTML/preprocessing for domains</title>
<link>/en/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>

View File

@ -5,11 +5,20 @@
<link>/en/tags/</link>
<description>Recent content in Tags on uweb browser</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 24 Jun 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 28 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>css</title>
<link>/en/tags/css/</link>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/tags/css/</guid>
<description></description>
</item>
<item>
<title>javascript</title>
<link>/en/tags/javascript/</link>
<pubDate>Fri, 24 Jun 2022 00:00:00 +0000</pubDate>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/tags/javascript/</guid>
<description></description>
@ -114,14 +123,5 @@
<description></description>
</item>
<item>
<title>css</title>
<link>/en/tags/css/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/en/tags/css/</guid>
<description></description>
</item>
</channel>
</rss>

View File

@ -43,6 +43,12 @@
<h1 class="title">javascript</h1>
<ul class="posts">
<li class="post">
<a href="../../sitejs">
<span>JS/CSS/HTML/preprocessing for domains</span>
</a>
</li>
<li class="post">
<a href="../../bookmarklet">
<span>Bookmarklets</span>
@ -55,12 +61,6 @@
</a>
</li>
<li class="post">
<a href="../../sitejs">
<span>Javascript and CSS for domains</span>
</a>
</li>
</ul>
<ul>
</div>

View File

@ -5,7 +5,16 @@
<link>/en/tags/javascript/</link>
<description>Recent content in javascript on uweb browser</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 24 Jun 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 28 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>JS/CSS/HTML/preprocessing for domains</title>
<link>/en/sitejs/</link>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
<item>
<title>Bookmarklets</title>
<link>/en/bookmarklet/</link>
@ -44,14 +53,5 @@ These javascript files are in the following format:
The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description>
</item>
<item>
<title>Javascript and CSS for domains</title>
<link>/en/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &amp;quot;[domain root].js&amp;quot;, such as &amp;quot;yahoo.com.js&amp;quot; or &amp;quot;finance.yahoo.com.js&amp;quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &amp;quot;sitejs&amp;quot; or &amp;quot;/data/data/info.torapp.uweb/files/sitejs&amp;quot;. The later folder has the priority. Long press the button &amp;quot;settings&amp;quot;, check the option &amp;quot;Run user scripts&amp;quot;.</description>
</item>
</channel>
</rss>

View File

@ -1 +1,10 @@
<meta http-equiv="refresh" content="0; url=en/index.html">
<!DOCTYPE html>
<html lang="en">
<head>
<title>en/</title>
<link rel="canonical" href="en/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=en/">
</head>
</html>

View File

@ -4,7 +4,7 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-01-16T00:00:00+00:00</lastmod>
<lastmod>2023-01-28T00:00:00+00:00</lastmod>
</sitemap>

View File

@ -826,13 +826,14 @@ PCdown:/data/data/com.termux/files/usr/bin/pcdownload
</item>
<item>
<title>特定网址用户脚本及样式</title>
<title>特定网址用户脚本、样式、额外html及预处理</title>
<link>/zh/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/zh/sitejs/</guid>
<description>技巧等级:中级
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。如果内部目录下sitejs存在则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源包括网站离线资源等的配置一旦内部sitejs目录存在则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html及预处理 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 长按窗口按钮,勾选“网址附加内容”。 额外html可以以&amp;quot;&amp;lt;textarea&amp;gt;&amp;quot;或&amp;quot;&amp;lt;div&amp;gt;&amp;lt;textarea&amp;gt;&amp;quot;等结尾此时超微算法自动判定用户欲对网址html源代码进行处理并将网址html源码附加在用户html后面从而成为textarea元素的内容供用户进行预处理。
文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
</item>
<item>

View File

@ -276,7 +276,7 @@
<li class="post">
<a href="sitejs/index.html">
<span>特定网址用户脚本及样式</span>
<span>特定网址用户脚本、样式、额外html及预处理</span>
</a>
</li>

View File

@ -1038,13 +1038,14 @@ PCdown:/data/data/com.termux/files/usr/bin/pcdownload
</item>
<item>
<title>特定网址用户脚本及样式</title>
<title>特定网址用户脚本、样式、额外html及预处理</title>
<link>/zh/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/zh/sitejs/</guid>
<description>技巧等级:中级
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。如果内部目录下sitejs存在则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源包括网站离线资源等的配置一旦内部sitejs目录存在则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html及预处理 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 长按窗口按钮,勾选“网址附加内容”。 额外html可以以&amp;quot;&amp;lt;textarea&amp;gt;&amp;quot;或&amp;quot;&amp;lt;div&amp;gt;&amp;lt;textarea&amp;gt;&amp;quot;等结尾此时超微算法自动判定用户欲对网址html源代码进行处理并将网址html源码附加在用户html后面从而成为textarea元素的内容供用户进行预处理。
文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
</item>
<item>

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="../style.css" type="text/css" />
<title>特定网址用户脚本及样式</title>
<title>特定网址用户脚本、样式、额外html及预处理</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
@ -40,7 +40,7 @@
<br />
<div class="container">
<h1 class="title">特定网址用户脚本及样式
<h1 class="title">特定网址用户脚本、样式、额外html及预处理
<br>
<span class="subtitle"></span>
</h1>
@ -55,7 +55,7 @@
<h3 id="脚本-第一时间装载js脚本见下面sitecss条目">脚本 (第一时间装载js脚本见下面sitecss条目)</h3>
<ul>
<li>脚本需命名为 &quot;[根域名].js&quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。</li>
<li>这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。如果内部目录下sitejs存在则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源包括网站离线资源等的配置一旦内部sitejs目录存在则这些资源必须位于内部目录才会生效</li>
<li>这些脚本需放到/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。</li>
<li>长按窗口按钮,勾选“执行网址用户脚本”。</li>
<li>脚本执行对浏览器无性能影响,即使有百万脚本存在。</li>
<li>目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。</li>
@ -69,11 +69,13 @@
<li>如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。</li>
<li>default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。</li>
</ul>
<h3 id="额外html">额外html</h3>
<h3 id="额外html及预处理">额外html及预处理</h3>
<ul>
<li>需命名为 &quot;[域名].html&quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&quot;[根域名]&quot;</li>
<li>文件需放到siteextra目录下。</li>
<li>长按窗口按钮,勾选“网址附加内容”。</li>
</ul>
<p>额外html可以以&quot;&lt;textarea&gt;&quot;&quot;&lt;div&gt;&lt;textarea&gt;&quot;等结尾此时超微算法自动判定用户欲对网址html源代码进行处理并将网址html源码附加在用户html后面从而成为textarea元素的内容供用户进行预处理。</p>
<p>文件&quot;sitejs/.js&quot;,&quot;sitecss/.css&quot;,&quot;sitecss/.js&quot;&quot;siteextra/.html&quot;可作用于一切非http url本地文件浏览器界面等</p>
</div>

View File

@ -51,7 +51,7 @@
<li class="post">
<a href="../../sitejs">
<span>特定网址用户脚本及样式</span>
<span>特定网址用户脚本、样式、额外html及预处理</span>
</a>
</li>

View File

@ -20,13 +20,14 @@ gozer 广告屏蔽样式
</item>
<item>
<title>特定网址用户脚本及样式</title>
<title>特定网址用户脚本、样式、额外html及预处理</title>
<link>/zh/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/zh/sitejs/</guid>
<description>技巧等级:中级
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。如果内部目录下sitejs存在则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源包括网站离线资源等的配置一旦内部sitejs目录存在则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html及预处理 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 长按窗口按钮,勾选“网址附加内容”。 额外html可以以&amp;quot;&amp;lt;textarea&amp;gt;&amp;quot;或&amp;quot;&amp;lt;div&amp;gt;&amp;lt;textarea&amp;gt;&amp;quot;等结尾此时超微算法自动判定用户欲对网址html源代码进行处理并将网址html源码附加在用户html后面从而成为textarea元素的内容供用户进行预处理。
文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
</item>
</channel>

View File

@ -57,7 +57,7 @@
<li class="post">
<a href="../../sitejs">
<span>特定网址用户脚本及样式</span>
<span>特定网址用户脚本、样式、额外html及预处理</span>
</a>
</li>

View File

@ -49,13 +49,14 @@ js文件格式如下
</item>
<item>
<title>特定网址用户脚本及样式</title>
<title>特定网址用户脚本、样式、额外html及预处理</title>
<link>/zh/sitejs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/zh/sitejs/</guid>
<description>技巧等级:中级
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。如果内部目录下sitejs存在则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源包括网站离线资源等的配置一旦内部sitejs目录存在则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
脚本 (第一时间装载js脚本见下面sitecss条目) 脚本需命名为 &amp;quot;[根域名].js&amp;quot;譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/data/data/info.torapp.uweb/files/sitejs目录下数量没有限制上百万都不成问题。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名最后两段不超过6字如com.cn的域名可取四段。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 与此类似,用户样式需命名为 &amp;quot;[根域名].css&amp;quot;譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&amp;quot;[根域名].js&amp;quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在访问网址时如果没有与域名匹配的css文件则使用此默认样式文件。 default.css可作为夜间模式来使用此时default.css为夜间模式css而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 额外html及预处理 需命名为 &amp;quot;[域名].html&amp;quot;譬如baidu.com.html。注意此处与sitejs, sitecss不同不再是&amp;quot;[根域名]&amp;quot;。 文件需放到siteextra目录下。 长按窗口按钮,勾选“网址附加内容”。 额外html可以以&amp;quot;&amp;lt;textarea&amp;gt;&amp;quot;或&amp;quot;&amp;lt;div&amp;gt;&amp;lt;textarea&amp;gt;&amp;quot;等结尾此时超微算法自动判定用户欲对网址html源代码进行处理并将网址html源码附加在用户html后面从而成为textarea元素的内容供用户进行预处理。
文件&amp;quot;sitejs/.js&amp;quot;,&amp;quot;sitecss/.css&amp;quot;,&amp;quot;sitecss/.js&amp;quot;和&amp;quot;siteextra/.html&amp;quot;可作用于一切非http url本地文件浏览器界面等</description>
</item>
</channel>