diff options
-rw-r--r-- | src/assets/images/baiduTieba-icon.svg | 72 | ||||
-rw-r--r-- | src/assets/javascripts/services.js | 4 | ||||
-rw-r--r-- | src/config.json | 18 |
3 files changed, 94 insertions, 0 deletions
diff --git a/src/assets/images/baiduTieba-icon.svg b/src/assets/images/baiduTieba-icon.svg new file mode 100644 index 00000000..70f8c46d --- /dev/null +++ b/src/assets/images/baiduTieba-icon.svg @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> + +<svg + version="1.1" + id="Layer_1" + sodipodi:docname="Baidu.svg" + inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)" + sodipodi:version="0.32" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + x="0px" + y="0px" + width="65.453781" + height="71.304939" + viewBox="0 0 65.45378 71.304939" + enable-background="new 0 0 231 79" + xml:space="preserve" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"><defs + id="defs1" /> +<sodipodi:namedview + id="base" + inkscape:current-layer="Layer_1" + inkscape:window-y="138" + inkscape:window-x="138" + inkscape:window-width="1323" + inkscape:window-height="708" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + inkscape:cy="46.733757" + inkscape:cx="56.521653" + inkscape:zoom="3.6269286" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + objecttolerance="10.0" + gridtolerance="10.0" + guidetolerance="10.0" + inkscape:showpageshadow="2" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1" + inkscape:window-maximized="0"> + </sodipodi:namedview> + +<g + id="g2225" + transform="matrix(0.91912224,0,0,0.91912224,-70.269186,-6.5035036)" + style="stroke-width:1.08799"> + <path + id="path2227" + fill="#2319dc" + d="m 89.241,47.789 c 7.75,-1.665 6.692,-10.937 6.465,-12.963 -0.382,-3.125 -4.055,-8.582 -9.039,-8.146 -6.275,0.559 -7.191,9.623 -7.191,9.623 -0.85,4.197 2.028,13.155 9.765,11.486 m 14.392,-15.543 c 4.278,0 7.736,-4.93 7.736,-11.02 0,-6.091 -3.458,-11.013 -7.736,-11.013 -4.28,0 -7.747,4.922 -7.747,11.013 0,6.09 3.466,11.02 7.747,11.02 m 18.444,0.725 c 5.727,0.75 9.396,-5.359 10.13,-9.988 0.75,-4.623 -2.95,-10 -6.995,-10.923 -4.063,-0.934 -9.135,5.57 -9.592,9.813 -0.557,5.19 0.736,10.365 6.457,11.098 m 22.679,7.777 c 0,-2.214 -1.833,-8.888 -8.659,-8.888 -6.84,0 -7.744,6.298 -7.744,10.748 0,4.247 0.354,10.171 8.848,9.987 8.485,-0.188 7.555,-9.618 7.555,-11.847 m -8.659,19.436 c 0,0 -8.853,-6.848 -14.02,-14.252 -7.016,-10.917 -16.97,-6.471 -20.298,-0.927 -3.318,5.558 -8.476,9.068 -9.214,10 -0.745,0.913 -10.692,6.288 -8.485,16.103 2.212,9.807 9.969,9.621 9.969,9.621 0,0 5.717,0.559 12.347,-0.924 6.644,-1.479 12.36,0.363 12.36,0.363 0,0 15.498,5.197 19.733,-4.803 4.24,-9.992 -2.392,-15.181 -2.392,-15.181" + style="stroke-width:1.08799" /> + <path + id="path2229" + fill="#ffffff" + d="m 105.008,50.637 v 6.588 H 99.64 c 0,0 -5.365,0.445 -7.243,6.526 -0.655,4.06 0.578,6.451 0.793,6.962 0.217,0.51 1.951,3.48 6.305,4.352 h 10.073 V 50.709 Z m -0.081,20.43 h -4.058 c 0,0 -2.827,-0.147 -3.688,-3.402 -0.444,-1.442 0.066,-3.108 0.29,-3.763 0.205,-0.656 1.154,-2.172 3.111,-2.756 h 4.344 z" + style="stroke-width:1.08799" /> + <path + id="path2231" + fill="#ffffff" + d="M 112.037,57.816 V 70.64 c 0,0 0.21,3.191 4.71,4.354 h 11.592 v -17.18 h -5.003 v 12.897 h -4.774 c 0,0 -1.526,-0.222 -1.813,-1.448 V 57.74 Z" + style="stroke-width:1.08799" /> + + + + + +</g> +</svg> diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 8dee83db..dbd3ea2c 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -543,6 +543,9 @@ function rewrite(url, frontend, randomInstance) { } if (url.pathname.startsWith("/artist")) return return `${randomInstance}${url.pathname}${url.search}` + case "ratAintTieba": + url.searchParams.delete("ie") + return `${randomInstance}${url.pathname}${url.search}` case "piped": case "pipedMaterial": case "cloudtube": @@ -794,6 +797,7 @@ const defaultInstances = { nitter: ["https://nitter.privacydev.net"], pasted: ["https://pasted.drakeerv.com"], freetar: ["https://freetar.de"], + ratAintTieba: ["https://rat.fis.land"], } function initDefaults() { diff --git a/src/config.json b/src/config.json index 350559bd..848f2a21 100644 --- a/src/config.json +++ b/src/config.json @@ -1056,6 +1056,24 @@ }, "imageType": "svg", "url": "https://www.ultimate-guitar.com" + }, + "baiduTieba": { + "frontends": { + "ratAintTieba": { + "name": "Rat Aint Tieba", + "instanceList": true, + "url": "https://0xacab.org/johnxina/rat" + } + }, + "targets": ["^https?:\\/{2}tieba\\.baidu\\.com"], + "name": "Baidu Tieba", + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "frontend": "ratAintTieba" + }, + "imageType": "svg", + "url": "https://tieba.baidu.com" } } } |