ShareShortcuts

蘋果日報免登記會員🍎

免登記成為會員都可安心睇蘋果日報🍎 無需成為蘋果日報會員都可安心睇新聞,免卻私隱煩惱

quentinpro
„蘋果日報免登記會員🍎“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit quentinpro die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
68K
Gesichert
0
Aktionen
1
Kategorie
API
Version
1.0
Sprache
EN

免登記成為會員都可安心睇蘋果日報🍎

無需成為蘋果日報會員都可安心睇新聞,免卻私隱煩惱

https://cutt.ly/apple-unblock

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 17. Jul 2019

First release

Was er macht

1 Aktion
  1. Run JavaScript on Web Page

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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();")
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung