Scan med din iPhone for at installere
Nyheder
Version 1.0
First release
Hvad den gør
1 handling-
Run JavaScript on Web Page
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#define color red
#define glyph apple
runJavaScriptOnWebpage("/*\n\n\n\n\n\n\n蘋果日報免登記會員🍎\n\n\n\n\n\n\n\n*/\nconsole.log(\"--- SCRIPT STARTED ---\");\ntry {\n\tconsole.log(\"--- stopping DOM loading ---\");\n\tstop();\n\n\tconsole.log(\"--- overwritting blocking JS ---\");\n\t(function overwrite(link) {\n\t\tvar xhr = new XMLHttpRequest();\n\t\txhr.open('GET', link.href);\n\t\txhr.onload = () => {\n\t\t\t// HK, US\n\t\t\tvar html = xhr.responseText.replace('function uReadDisplayMsgBox(showdef){', 'function uReadDisplayMsgBox(showdef){}\nfunction xxx(showdef){');\n\t\t\thtml = html.replace('function uReadDisplayMsgBox(showdef, atype){', 'function uReadDisplayMsgBox(showdef, atype){}\nfunction xxx(showdef, atype){');\n\t\t\t// HK mobile\n\t\t\thtml = html.replace('function uReadPrompt(content,msgtype,vdoimg){', 'function uReadPrompt(content,msgtype,vdoimg){}\nfunction xxx(content,msgtype,vdoimg){');\n\t\t\t// TW\n\t\t\thtml = html.replace('var effects = function(e,val){', 'var effects = function(e,val){$(\".ndAritcle_headPic,.ndArticle_margin,.mediabox,#playerVideo,.articulum\").show();};\nvar effectsx = function(e,val){');\n\t\t\thtml = html.replace('.parent().remove();', '.parent();');\n\t\t\thtml = html.replace('class=\"ndArticle_margin\" style=\"display: none;\"', 'class=\"ndArticle_margin\"');\n\t\t\t// 04JUL2019\n\t\t\thtml = html.replace(/visibility: hidden;/g, '');\n\t\t\t// nextmag\n\t\t\thtml = html.replace('<div class=\"article-content\">', '<div class=\"article-content\" style=\"display:block!important\">');\n\t\t\t// 果燃台\n\t\t\tif (link.href.substr(0, 49) == 'https://hk.feature.appledaily.com/goodestchannel/' && link.href.substr(-2) != '.js')\n\t\t\t\thtml += \"<script>function setBanPaidFalse(){if(document.querySelector('.videoPlayer')!=null && document.querySelector('.videoPlayer').__vue__.banPaid){document.querySelector('.videoPlayer').__vue__.banPaid = false;}} var r = setInterval(setBanPaidFalse, 1000);</script>\";\n\t\t\t// 蘋果台\n\t\t\tif (link.href.substr(0, 43) == 'https://tw.feature.appledaily.com/applepie/' && link.href.substr(-2) != '.js')\n\t\t\t\thtml += \"<script>function setBanPaidFalse(){if(document.querySelector('.videoPlayer')!=null && document.querySelector('.videoPlayer').__vue__.banPaid){document.querySelector('.videoPlayer').__vue__.banPaid = false;}} var r = setInterval(setBanPaidFalse, 1000);</script>\";\n\t\t\t// 飲食男女\n\t\t\thtml = html.replace('function blockContent() {', 'function blockContent() {}\nfunction xxx() {');\n\t\t\t// 台灣會員專區\n\t\t\thtml = html.replace(/hideContent:'nm-main-articles',/g, \"hideContent:'nm-main-articlesxxx',\");\n\t\t\thtml = html.replace(\".nm-main-articles {display:none;}\", '');\n\t\t\thtml = html.replace('id=\"video_player\"', 'id=\"video_playerx\"');\n\t\t\thtml = html.replace('anvatoPlayerID = \"video_player\"', 'anvatoPlayerID = \"video_playerx\"');\n\t\t\t\n\t\t\tdocument.open();\n\t\t\tdocument.write(html);\n\t\t\tdocument.close();\n\t\t};\n\t\txhr.send();\n\t})(location);\n} catch (ex) {\n\tconsole.log(\"--- SCRIPT Error: \" + ex.message + \" ---\");\n}\nconsole.log(\"--- SCRIPT ENDED ---\");\ncompletion();")
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Du vil måske også kunne lide
Annonce