ShareShortcuts

AdBlock⛔️

Delete all ads🧹

idk
Fork “AdBlock⛔️”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so idk gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
53K
Saved
3
Actions
11
Category
API
Version
1.0
Language
EN

Delete all ads🧹

What's New

Version 1.0

First release

Version History
1.0 Mar 13, 2021

First release

What it does

11 actions
  1. Choose from Menu
    Choose your language
  2. Choose from Menu
    Français🇫🇷
  3. Show Alert
    Attention ⚠️
  4. Repeat
  5. Run JavaScript on Web Page
  6. Show Alert
  7. Choose from Menu
    English🇺🇸
  8. Show Alert
    Warning ⚠️
  9. Repeat
  10. Run JavaScript on Web Page
  11. Show Alert

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color red
#define glyph hand


menu "Choose your language" {
item "Français🇫🇷":
	alert("Pour utiliser AdBlock vous devez allez sur une page web safari, ensuite cliquez sur partagez, descender jusqu'à trouver AdBlock⛔️", "Attention ⚠️")
	repeat _ for 3 {
		runJavaScriptOnWebpage(" (function() {\n   function R(w) {\n      try {\n         var d = w.document,\n            j, i, t, T, N, b, r = 1,\n            C;\n         for (j = 0; t = [\"object\", \"embed\", \"applet\", \"iframe\"][j]; ++j) {\n            T = d.getElementsByTagName(t);\n            for (i = T.length - 1;\n            (i + 1) && (N = T[i]); --i) if (j != 3 || !R((C = N.contentWindow) ? C : N.contentDocument.defaultView)) {\n               b = d.createElement(\"div\");\n               b.style.width = N.width;\n               b.style.height = N.height;\n               b.innerHTML = \"<del>\" + \"</del>\";\n               N.parentNode.replaceChild(b, N);\n            }\n         }\n      } catch (E) {\n         r = 0\n      }\n      return r\n   }\n   R(self);\n   var i, x;\n   for (i = 0; x = frames[i]; ++i) R(x)\n})()\nresult = \"\";\ncompletion(result);")
		confirm("Page nettoyée🧹")
	}
item "English🇺🇸":
	alert("To use AdBlock you must go to a web safari page, then click Share, descend to find AdBlock⛔️", "Warning ⚠️")
	repeat _ for 3 {
		runJavaScriptOnWebpage(" (function() {\n   function R(w) {\n      try {\n         var d = w.document,\n            j, i, t, T, N, b, r = 1,\n            C;\n         for (j = 0; t = [\"object\", \"embed\", \"applet\", \"iframe\"][j]; ++j) {\n            T = d.getElementsByTagName(t);\n            for (i = T.length - 1;\n            (i + 1) && (N = T[i]); --i) if (j != 3 || !R((C = N.contentWindow) ? C : N.contentDocument.defaultView)) {\n               b = d.createElement(\"div\");\n               b.style.width = N.width;\n               b.style.height = N.height;\n               b.innerHTML = \"<del>\" + \"</del>\";\n               N.parentNode.replaceChild(b, N);\n            }\n         }\n      } catch (E) {\n         r = 0\n      }\n      return r\n   }\n   R(self);\n   var i, x;\n   for (i = 0; x = frames[i]; ++i) R(x)\n})()\nresult = \"\";\ncompletion(result);")
		confirm("Page cleaned🧹")
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Advertisement

More by idk

See All

You Might Also Like

See All
Advertisement