mirror of
https://github.com/AdguardTeam/AdguardFilters.git
synced 2026-08-31 12:23:36 +00:00
wyn
This commit is contained in:
@@ -26,10 +26,10 @@ yourfones.net#%#//scriptlet('spoof-css', 'ins.adsbygoogle', 'display', 'block')
|
||||
mytry.jp#@#.ad_box
|
||||
mytry.jp#$#body > #container { display: block !important; }
|
||||
! https://github.com/AdguardTeam/AdguardFilters/issues/190943
|
||||
!+ NOT_PLATFORM(ext_ff,ext_chromium_mv3)
|
||||
wiki.yjsnpi.nu#%#(()=>{let e;if(0==RLCONF.wgNamespaceNumber&&"view"==RLCONF.wgAction&&0!=RLCONF.wgArticleId&&!RLCONF.wgIsRedirect&&RLCONF.wgRevisionId==RLCONF.wgCurRevisionId){const n=document.querySelector("#bodyContent");if(n){const c=new XMLHttpRequest;c.onloadend=()=>{200===c.status&&(e=(new DOMParser).parseFromString(c.responseText,"text/html").body,n.appendChild(e.querySelector("#comments-section")),document.querySelector("#comment-submit").addEventListener("click",o),t(0))},c.open("GET","/comments/asset.php?asset=template.html&key=d114c1398ab78eabbd83f764bdb658e8",!0),c.send()}}function t(t){const o=document.querySelector("#comments-more"),c=document.querySelector("#comments-message"),r=()=>{c.innerText="読み込めませんでした",o&&(o.innerText="もっと見る",o.disabled=!1)},m=new XMLHttpRequest;m.responseType="json",m.onloadend=()=>{const o=document.querySelector("#comments-loading");o&&o.remove(),200===m.status?function(t){const o=document.querySelector("#comments"),c=document.querySelector("#comments-contents"),r=document.querySelector("#comments-recent"),m=document.querySelector("#comments-more"),d=document.querySelector("#comments-message");if(m&&m.remove(),d.innerHTML="",o&&c&&r){if(t.comments.forEach((t=>{const n=e.querySelector("#comment").cloneNode(!0);n.id="comment-"+t.number,n.dataset.commentId=t.number,n.querySelector(".comment-author").innerHTML=t.author,n.querySelector(".comment-timestamp").innerHTML=t.created_at,n.querySelector(".comment-body").innerHTML=t.comment,o.appendChild(n)})),t.cursor>0){const o=e.querySelector("#comments-more").cloneNode(!0);o.dataset.cursor=t.cursor,o.addEventListener("click",n),c.appendChild(o)}const m=document.createElement("ul");t.recent.sort((()=>Math.random()-Math.random())).forEach((e=>{const t=document.createElement("li"),n=document.createElement("a");n.href="/w/index.php?curid="+e.article_id,e.comment.length>70&&(e.comment=e.comment.substring(0,70)+"…"),n.innerHTML=e.comment,t.appendChild(n),m.appendChild(t)})),r.appendChild(m.cloneNode(!0)),r.appendChild(m.cloneNode(!0))}}(m.response):0==t&&r()},m.ontimeout=r,m.onerror=r,m.open("GET","/comments/comments.php?article_id="+RLCONF.wgArticleId+"&cursor="+t+"&key=d114c1398ab78eabbd83f764bdb658e8",!0),m.send()}function n(e){const n=document.querySelector("#comments-more");n.disabled=!0,n.innerText="読込中…",t(e.target.dataset.cursor)}function o(e){const n=document.querySelector('#comment-editor input[name="author"]'),o=document.querySelector("#comment-editor textarea");if(""==o.value)return void mw.notify("(本文が)ないです");e.target.disabled=!0,e.target.innerHTML="送信中…";const c={article_id:RLCONF.wgArticleId,author:n.value,comment:o.value,key:"d114c1398ab78eabbd83f764bdb658e8"},r=[];for(const[e,t]of Object.entries(c))r.push(encodeURIComponent(e)+"="+encodeURIComponent(t));const m=new XMLHttpRequest;m.onreadystatechange=()=>{4===m.readyState&&(e.target.disabled=!1,e.target.innerHTML="投稿する",200===m.status?(mw.notify("投稿しました"),n.value="",o.value="",document.querySelector("#comments").innerHTML="",document.querySelector("#comments-recent").innerHTML="",setTimeout(t(0),"100")):403===m.status?mw.notify("(フリーWi-Fiからは書け)ないです"):429===m.status?mw.notify("書きすぎィ!ちょっと待って、どうぞ!"):mw.notify("投稿できませんでした…"))},m.open("POST","/comments/comments.php"),m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.send(r.join("&").replaceAll("%20","+"))}})();
|
||||
!+ PLATFORM(ext_ff)
|
||||
wiki.yjsnpi.nu#%##%#//scriptlet('trusted-replace-node-text', 'script', '(RLQ=window.RLQ', '(RLQ=window.RLQ', '(()=>{let e;if(0==RLCONF.wgNamespaceNumber&&"view"==RLCONF.wgAction&&0!=RLCONF.wgArticleId&&!RLCONF.wgIsRedirect&&RLCONF.wgRevisionId==RLCONF.wgCurRevisionId){const n=document.querySelector("#bodyContent");if(n){const c=new XMLHttpRequest;c.onloadend=()=>{200===c.status&&(e=(new DOMParser).parseFromString(c.responseText,"text/html").body,n.appendChild(e.querySelector("#comments-section")),document.querySelector("#comment-submit").addEventListener("click",o),t(0))},c.open("GET","/comments/asset.php?asset=template.html&key=d114c1398ab78eabbd83f764bdb658e8",!0),c.send()}}function t(t){const o=document.querySelector("#comments-more"),c=document.querySelector("#comments-message"),r=()=>{c.innerText="読み込めませんでした",o&&(o.innerText="もっと見る",o.disabled=!1)},m=new XMLHttpRequest;m.responseType="json",m.onloadend=()=>{const o=document.querySelector("#comments-loading");o&&o.remove(),200===m.status?function(t){const o=document.querySelector("#comments"),c=document.querySelector("#comments-contents"),r=document.querySelector("#comments-recent"),m=document.querySelector("#comments-more"),d=document.querySelector("#comments-message");if(m&&m.remove(),d.innerHTML="",o&&c&&r){if(t.comments.forEach((t=>{const n=e.querySelector("#comment").cloneNode(!0);n.id="comment-"+t.number,n.dataset.commentId=t.number,n.querySelector(".comment-author").innerHTML=t.author,n.querySelector(".comment-timestamp").innerHTML=t.created_at,n.querySelector(".comment-body").innerHTML=t.comment,o.appendChild(n)})),t.cursor>0){const o=e.querySelector("#comments-more").cloneNode(!0);o.dataset.cursor=t.cursor,o.addEventListener("click",n),c.appendChild(o)}const m=document.createElement("ul");t.recent.sort((()=>Math.random()-Math.random())).forEach((e=>{const t=document.createElement("li"),n=document.createElement("a");n.href="/w/index.php?curid="+e.article_id,e.comment.length>70&&(e.comment=e.comment.substring(0,70)+"…"),n.innerHTML=e.comment,t.appendChild(n),m.appendChild(t)})),r.appendChild(m.cloneNode(!0)),r.appendChild(m.cloneNode(!0))}}(m.response):0==t&&r()},m.ontimeout=r,m.onerror=r,m.open("GET","/comments/comments.php?article_id="+RLCONF.wgArticleId+"&cursor="+t+"&key=d114c1398ab78eabbd83f764bdb658e8",!0),m.send()}function n(e){const n=document.querySelector("#comments-more");n.disabled=!0,n.innerText="読込中…",t(e.target.dataset.cursor)}function o(e){const n=document.querySelector("#comment-editor input[name=author]"),o=document.querySelector("#comment-editor textarea");if(""==o.value)return void mw.notify("(本文が)ないです");e.target.disabled=!0,e.target.innerHTML="送信中…";const c={article_id:RLCONF.wgArticleId,author:n.value,comment:o.value,key:"d114c1398ab78eabbd83f764bdb658e8"},r=[];for(const[e,t]of Object.entries(c))r.push(encodeURIComponent(e)+"="+encodeURIComponent(t));const m=new XMLHttpRequest;m.onreadystatechange=()=>{4===m.readyState&&(e.target.disabled=!1,e.target.innerHTML="投稿する",200===m.status?(mw.notify("投稿しました"),n.value="",o.value="",document.querySelector("#comments").innerHTML="",document.querySelector("#comments-recent").innerHTML="",setTimeout(t(0),"100")):403===m.status?mw.notify("(フリーWi-Fiからは書け)ないです"):429===m.status?mw.notify("書きすぎィ!ちょっと待って、どうぞ!"):mw.notify("投稿できませんでした…"))},m.open("POST","/comments/comments.php"),m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.send(r.join("&").replaceAll("%20","+"))}})();(RLQ=window.RLQ')
|
||||
!+ NOT_PLATFORM(windows,mac,android,ext_ff,ext_chromium_mv3)
|
||||
wiki.yjsnpi.nu#%#(()=>{let e;if(0==RLCONF.wgNamespaceNumber&&"view"==RLCONF.wgAction&&0!=RLCONF.wgArticleId&&!RLCONF.wgIsRedirect&&RLCONF.wgRevisionId==RLCONF.wgCurRevisionId){const n=document.querySelector("#bodyContent");if(n){const c=new XMLHttpRequest;c.onloadend=()=>{200===c.status&&(e=(new DOMParser).parseFromString(c.responseText,"text/html").body,n.appendChild(e.querySelector("#comments-section")),document.querySelector("#comment-submit").addEventListener("click",o),t(0))},c.open("GET","/comments/asset.php?asset=template.html&key=3b4e1464f0ec96958b26097e1272cec7",!0),c.send()}}function t(t){const o=document.querySelector("#comments-more"),c=document.querySelector("#comments-message"),r=()=>{c.innerText="読み込めませんでした",o&&(o.innerText="もっと見る",o.disabled=!1)},m=new XMLHttpRequest;m.responseType="json",m.onloadend=()=>{const o=document.querySelector("#comments-loading");o&&o.remove(),200===m.status?function(t){const o=document.querySelector("#comments"),c=document.querySelector("#comments-contents"),r=document.querySelector("#comments-recent"),m=document.querySelector("#comments-more"),d=document.querySelector("#comments-message");if(m&&m.remove(),d.innerHTML="",o&&c&&r){if(t.comments.forEach((t=>{const n=e.querySelector("#comment").cloneNode(!0);n.id="comment-"+t.number,n.dataset.commentId=t.number,n.querySelector(".comment-author").innerHTML=t.author,n.querySelector(".comment-timestamp").innerHTML=t.created_at,n.querySelector(".comment-body").innerHTML=t.comment,o.appendChild(n)})),t.cursor>0){const o=e.querySelector("#comments-more").cloneNode(!0);o.dataset.cursor=t.cursor,o.addEventListener("click",n),c.appendChild(o)}const m=document.createElement("ul");t.recent.sort((()=>Math.random()-Math.random())).forEach((e=>{const t=document.createElement("li"),n=document.createElement("a");n.href="/w/index.php?curid="+e.article_id,e.comment.length>70&&(e.comment=e.comment.substring(0,70)+"…"),n.innerHTML=e.comment,t.appendChild(n),m.appendChild(t)})),r.appendChild(m.cloneNode(!0)),r.appendChild(m.cloneNode(!0))}}(m.response):0==t&&r()},m.ontimeout=r,m.onerror=r,m.open("GET","/comments/comments.php?article_id="+RLCONF.wgArticleId+"&cursor="+t+"&key=3b4e1464f0ec96958b26097e1272cec7",!0),m.send()}function n(e){const n=document.querySelector("#comments-more");n.disabled=!0,n.innerText="読込中…",t(e.target.dataset.cursor)}function o(e){const n=document.querySelector('#comment-editor input[name="author"]'),o=document.querySelector("#comment-editor textarea");if(""==o.value)return void mw.notify("(本文が)ないです");e.target.disabled=!0,e.target.innerHTML="送信中…";const c={article_id:RLCONF.wgArticleId,author:n.value,comment:o.value,key:"3b4e1464f0ec96958b26097e1272cec7"},r=[];for(const[e,t]of Object.entries(c))r.push(encodeURIComponent(e)+"="+encodeURIComponent(t));const m=new XMLHttpRequest;m.onreadystatechange=()=>{4===m.readyState&&(e.target.disabled=!1,e.target.innerHTML="投稿する",200===m.status?(mw.notify("投稿しました"),n.value="",o.value="",document.querySelector("#comments").innerHTML="",document.querySelector("#comments-recent").innerHTML="",setTimeout(t(0),"100")):403===m.status?mw.notify("(フリーWi-Fiからは書け)ないです"):429===m.status?mw.notify("書きすぎィ!ちょっと待って、どうぞ!"):mw.notify("投稿できませんでした…"))},m.open("POST","/comments/comments.php"),m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.send(r.join("&").replaceAll("%20","+"))}})();
|
||||
!+ PLATFORM(windows,mac,android,ext_ff)
|
||||
||wiki.yjsnpi.nu/comments/$replace=/^[\S\s]*(\,)[\S\s]*'([0-9a-f]{32})'[\S\s]*/(()=>{let e;if(0==RLCONF.wgNamespaceNumber&&"view"==RLCONF.wgAction&&0!=RLCONF.wgArticleId&&!RLCONF.wgIsRedirect&&RLCONF.wgRevisionId==RLCONF.wgCurRevisionId){const n=document.querySelector("#bodyContent");if(n){const c=new XMLHttpRequest;c.onloadend=()=>{200===c.status&&(e=(new DOMParser).parseFromString(c.responseText\$1"text\/html").body\$1n.appendChild(e.querySelector("#comments-section"))\$1document.querySelector("#comment-submit").addEventListener("click"\$1o)\$1t(0))}\$1c.open("GET"\$1"\/comments\/asset.php?asset=template.html&key=\$2"\$1!0)\$1c.send()}}function t(t){const o=document.querySelector("#comments-more")\$1c=document.querySelector("#comments-message")\$1r=()=>{c.innerText="読み込めませんでした"\$1o&&(o.innerText="もっと見る"\$1o.disabled=!1)}\$1m=new XMLHttpRequest;m.responseType="json"\$1m.onloadend=()=>{const o=document.querySelector("#comments-loading");o&&o.remove()\$1200===m.status?function(t){const o=document.querySelector("#comments")\$1c=document.querySelector("#comments-contents")\$1r=document.querySelector("#comments-recent")\$1m=document.querySelector("#comments-more")\$1d=document.querySelector("#comments-message");if(m&&m.remove()\$1d.innerHTML=""\$1o&&c&&r){if(t.comments.forEach((t=>{const n=e.querySelector("#comment").cloneNode(!0);n.id="comment-"+t.number\$1n.dataset.commentId=t.number\$1n.querySelector(".comment-author").innerHTML=t.author\$1n.querySelector(".comment-timestamp").innerHTML=t.created_at\$1n.querySelector(".comment-body").innerHTML=t.comment\$1o.appendChild(n)}))\$1t.cursor>0){const o=e.querySelector("#comments-more").cloneNode(!0);o.dataset.cursor=t.cursor\$1o.addEventListener("click"\$1n)\$1c.appendChild(o)}const m=document.createElement("ul");t.recent.sort((()=>Math.random()-Math.random())).forEach((e=>{const t=document.createElement("li")\$1n=document.createElement("a");n.href="\/w\/index.php?curid="+e.article_id\$1e.comment.length>70&&(e.comment=e.comment.substring(0\$170)+"…")\$1n.innerHTML=e.comment\$1t.appendChild(n)\$1m.appendChild(t)}))\$1r.appendChild(m.cloneNode(!0))\$1r.appendChild(m.cloneNode(!0))}}(m.response):0==t&&r()}\$1m.ontimeout=r\$1m.onerror=r\$1m.open("GET"\$1"\/comments\/comments.php?article_id="+RLCONF.wgArticleId+"&cursor="+t+"&key=\$2"\$1!0)\$1m.send()}function n(e){const n=document.querySelector("#comments-more");n.disabled=!0\$1n.innerText="読込中…"\$1t(e.target.dataset.cursor)}function o(e){const n=document.querySelector('#comment-editor input[name="author"]')\$1o=document.querySelector("#comment-editor textarea");if(""==o.value)return void mw.notify("(本文が)ないです");e.target.disabled=!0\$1e.target.innerHTML="送信中…";const c={article_id:RLCONF.wgArticleId\$1author:n.value\$1comment:o.value\$1key:"\$2"}\$1r=[];for(const[e\$1t]of Object.entries(c))r.push(encodeURIComponent(e)+"="+encodeURIComponent(t));const m=new XMLHttpRequest;m.onreadystatechange=()=>{4===m.readyState&&(e.target.disabled=!1\$1e.target.innerHTML="投稿する"\$1200===m.status?(mw.notify("投稿しました")\$1n.value=""\$1o.value=""\$1document.querySelector("#comments").innerHTML=""\$1document.querySelector("#comments-recent").innerHTML=""\$1setTimeout(t(0)\$1"100")):403===m.status?mw.notify("(フリーWi-Fiからは書け)ないです"):429===m.status?mw.notify("書きすぎィ!ちょっと待って、どうぞ!"):mw.notify("投稿できませんでした…"))}\$1m.open("POST"\$1"\/comments\/comments.php")\$1m.setRequestHeader("Content-Type"\$1"application\/x-www-form-urlencoded")\$1m.send(r.join("&").replaceAll("%20"\$1"+"))}})();/
|
||||
wiki.yjsnpi.nu#%#//scriptlet('trusted-suppress-native-method', 'Document.prototype.querySelectorAll', '/^iframe$/', 'abort')
|
||||
$subdocument,redirect-rule=noopframe,domain=wiki.yjsnpi.nu
|
||||
wiki.yjsnpi.nu#$##comments-loading { display: none !important; }
|
||||
|
||||
@@ -394,7 +394,7 @@ vibefm.pl##.article__placement
|
||||
! NOTE: Frequently updated sites
|
||||
!
|
||||
! https://github.com/AdguardTeam/AdguardFilters/issues/190943
|
||||
wiki.yjsnpi.nu#%#(()=>{let e;if(0==RLCONF.wgNamespaceNumber&&"view"==RLCONF.wgAction&&0!=RLCONF.wgArticleId&&!RLCONF.wgIsRedirect&&RLCONF.wgRevisionId==RLCONF.wgCurRevisionId){const n=document.querySelector("#bodyContent");if(n){const c=new XMLHttpRequest;c.onloadend=()=>{200===c.status&&(e=(new DOMParser).parseFromString(c.responseText,"text/html").body,n.appendChild(e.querySelector("#comments-section")),document.querySelector("#comment-submit").addEventListener("click",o),t(0))},c.open("GET","/comments/asset.php?asset=template.html&key=d114c1398ab78eabbd83f764bdb658e8",!0),c.send()}}function t(t){const o=document.querySelector("#comments-more"),c=document.querySelector("#comments-message"),r=()=>{c.innerText="読み込めませんでした",o&&(o.innerText="もっと見る",o.disabled=!1)},m=new XMLHttpRequest;m.responseType="json",m.onloadend=()=>{const o=document.querySelector("#comments-loading");o&&o.remove(),200===m.status?function(t){const o=document.querySelector("#comments"),c=document.querySelector("#comments-contents"),r=document.querySelector("#comments-recent"),m=document.querySelector("#comments-more"),d=document.querySelector("#comments-message");if(m&&m.remove(),d.innerHTML="",o&&c&&r){if(t.comments.forEach((t=>{const n=e.querySelector("#comment").cloneNode(!0);n.id="comment-"+t.number,n.dataset.commentId=t.number,n.querySelector(".comment-author").innerHTML=t.author,n.querySelector(".comment-timestamp").innerHTML=t.created_at,n.querySelector(".comment-body").innerHTML=t.comment,o.appendChild(n)})),t.cursor>0){const o=e.querySelector("#comments-more").cloneNode(!0);o.dataset.cursor=t.cursor,o.addEventListener("click",n),c.appendChild(o)}const m=document.createElement("ul");t.recent.sort((()=>Math.random()-Math.random())).forEach((e=>{const t=document.createElement("li"),n=document.createElement("a");n.href="/w/index.php?curid="+e.article_id,e.comment.length>70&&(e.comment=e.comment.substring(0,70)+"…"),n.innerHTML=e.comment,t.appendChild(n),m.appendChild(t)})),r.appendChild(m.cloneNode(!0)),r.appendChild(m.cloneNode(!0))}}(m.response):0==t&&r()},m.ontimeout=r,m.onerror=r,m.open("GET","/comments/comments.php?article_id="+RLCONF.wgArticleId+"&cursor="+t+"&key=d114c1398ab78eabbd83f764bdb658e8",!0),m.send()}function n(e){const n=document.querySelector("#comments-more");n.disabled=!0,n.innerText="読込中…",t(e.target.dataset.cursor)}function o(e){const n=document.querySelector('#comment-editor input[name="author"]'),o=document.querySelector("#comment-editor textarea");if(""==o.value)return void mw.notify("(本文が)ないです");e.target.disabled=!0,e.target.innerHTML="送信中…";const c={article_id:RLCONF.wgArticleId,author:n.value,comment:o.value,key:"d114c1398ab78eabbd83f764bdb658e8"},r=[];for(const[e,t]of Object.entries(c))r.push(encodeURIComponent(e)+"="+encodeURIComponent(t));const m=new XMLHttpRequest;m.onreadystatechange=()=>{4===m.readyState&&(e.target.disabled=!1,e.target.innerHTML="投稿する",200===m.status?(mw.notify("投稿しました"),n.value="",o.value="",document.querySelector("#comments").innerHTML="",document.querySelector("#comments-recent").innerHTML="",setTimeout(t(0),"100")):403===m.status?mw.notify("(フリーWi-Fiからは書け)ないです"):429===m.status?mw.notify("書きすぎィ!ちょっと待って、どうぞ!"):mw.notify("投稿できませんでした…"))},m.open("POST","/comments/comments.php"),m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.send(r.join("&").replaceAll("%20","+"))}})();
|
||||
wiki.yjsnpi.nu#%#(()=>{let e;if(0==RLCONF.wgNamespaceNumber&&"view"==RLCONF.wgAction&&0!=RLCONF.wgArticleId&&!RLCONF.wgIsRedirect&&RLCONF.wgRevisionId==RLCONF.wgCurRevisionId){const n=document.querySelector("#bodyContent");if(n){const c=new XMLHttpRequest;c.onloadend=()=>{200===c.status&&(e=(new DOMParser).parseFromString(c.responseText,"text/html").body,n.appendChild(e.querySelector("#comments-section")),document.querySelector("#comment-submit").addEventListener("click",o),t(0))},c.open("GET","/comments/asset.php?asset=template.html&key=3b4e1464f0ec96958b26097e1272cec7",!0),c.send()}}function t(t){const o=document.querySelector("#comments-more"),c=document.querySelector("#comments-message"),r=()=>{c.innerText="読み込めませんでした",o&&(o.innerText="もっと見る",o.disabled=!1)},m=new XMLHttpRequest;m.responseType="json",m.onloadend=()=>{const o=document.querySelector("#comments-loading");o&&o.remove(),200===m.status?function(t){const o=document.querySelector("#comments"),c=document.querySelector("#comments-contents"),r=document.querySelector("#comments-recent"),m=document.querySelector("#comments-more"),d=document.querySelector("#comments-message");if(m&&m.remove(),d.innerHTML="",o&&c&&r){if(t.comments.forEach((t=>{const n=e.querySelector("#comment").cloneNode(!0);n.id="comment-"+t.number,n.dataset.commentId=t.number,n.querySelector(".comment-author").innerHTML=t.author,n.querySelector(".comment-timestamp").innerHTML=t.created_at,n.querySelector(".comment-body").innerHTML=t.comment,o.appendChild(n)})),t.cursor>0){const o=e.querySelector("#comments-more").cloneNode(!0);o.dataset.cursor=t.cursor,o.addEventListener("click",n),c.appendChild(o)}const m=document.createElement("ul");t.recent.sort((()=>Math.random()-Math.random())).forEach((e=>{const t=document.createElement("li"),n=document.createElement("a");n.href="/w/index.php?curid="+e.article_id,e.comment.length>70&&(e.comment=e.comment.substring(0,70)+"…"),n.innerHTML=e.comment,t.appendChild(n),m.appendChild(t)})),r.appendChild(m.cloneNode(!0)),r.appendChild(m.cloneNode(!0))}}(m.response):0==t&&r()},m.ontimeout=r,m.onerror=r,m.open("GET","/comments/comments.php?article_id="+RLCONF.wgArticleId+"&cursor="+t+"&key=3b4e1464f0ec96958b26097e1272cec7",!0),m.send()}function n(e){const n=document.querySelector("#comments-more");n.disabled=!0,n.innerText="読込中…",t(e.target.dataset.cursor)}function o(e){const n=document.querySelector('#comment-editor input[name="author"]'),o=document.querySelector("#comment-editor textarea");if(""==o.value)return void mw.notify("(本文が)ないです");e.target.disabled=!0,e.target.innerHTML="送信中…";const c={article_id:RLCONF.wgArticleId,author:n.value,comment:o.value,key:"3b4e1464f0ec96958b26097e1272cec7"},r=[];for(const[e,t]of Object.entries(c))r.push(encodeURIComponent(e)+"="+encodeURIComponent(t));const m=new XMLHttpRequest;m.onreadystatechange=()=>{4===m.readyState&&(e.target.disabled=!1,e.target.innerHTML="投稿する",200===m.status?(mw.notify("投稿しました"),n.value="",o.value="",document.querySelector("#comments").innerHTML="",document.querySelector("#comments-recent").innerHTML="",setTimeout(t(0),"100")):403===m.status?mw.notify("(フリーWi-Fiからは書け)ないです"):429===m.status?mw.notify("書きすぎィ!ちょっと待って、どうぞ!"):mw.notify("投稿できませんでした…"))},m.open("POST","/comments/comments.php"),m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.send(r.join("&").replaceAll("%20","+"))}})();
|
||||
wiki.yjsnpi.nu#%#//scriptlet('trusted-suppress-native-method', 'Document.prototype.querySelectorAll', '/^iframe$/', 'abort')
|
||||
wiki.yjsnpi.nu#@%#//scriptlet('remove-node-text', 'script', '/\(\(\)=>\{function [A-z]+\(\)\{const /')
|
||||
wiki.yjsnpi.nu#@%#//scriptlet("prevent-eval-if", "/g(',')?e(',')?t(',')?U(',')?T(',')?C/")
|
||||
|
||||
Reference in New Issue
Block a user