Announcement

Collapse
No announcement yet.

Everyone can now run JavaScript on Cloudflare with Workers

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Everyone can now run JavaScript on Cloudflare with Workers

    Cloudflare Workers derive their name from Web Workers, and more specifically Service Workers, the W3C standard API for scripts that run in the background in a web browser and intercept HTTP requests. Cloudflare Workers are written against the same standard API, but run on Cloudflare's servers, not in a browser.

    The possible uses for Workers are infinite. Here are some ideas seen in the beta:
    • Route different types of requests to different origin servers.
    • Expand HTML templates on the edge, to reduce bandwidth costs at your origin.
    • Apply access control to cached content.
    • Redirect a fraction of users to a staging server.
    • Perform A/B testing between two entirely different back-ends.
    • Build "serverless" applications that rely entirely on web APIs.
    • Create custom security filters to block unwanted traffic unique to your app.
    • Rewrite requests to improve cache hit rate.
    • Implement custom load balancing and failover logic.
    • Apply quick fixes to your application without having to update your production servers.
    • Collect analytics without running code in the user's browser.
    • Much more.
    What's the benefit of this for us vBulletin forum owners?
    Well, this is another way of creating vB modifications created outside vBulletin! The plugin code resides in Cloudflare and not in vBulletin but it can modify anything what vBulletin loads on the browser. See this sample in action. This sample changes the background of vbmods.rocks to black and changes all instances of "glennrocksvb" into "Glenn rocks vBulletin!".

    https://cloudflareworkers.com/#135c7...//vbmods.rocks
    We believe the true dream of cloud computing is that your code lives in the network itself. Your code doesn't run in "us-west-4", it runs everywhere.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    Originally posted by glennrocksvb View Post
    See this sample in action. This sample changes the background of vbmods.rocks to black and changes all instances of "glennrocksvb" into "Glenn rocks vBulletin!".

    https://cloudflareworkers.com/#135c7...//vbmods.rocks
    This specific sample is essentially the same as the Replacement Variable feature in vB.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


    • glennrocksvb
      glennrocksvb commented
      Editing a comment
      But the Replacement Variable has limitations - there is max length of text to replace and it cannot replace text in multiple lines. Doing it Cloudflare is much better.

    • glennrocksvb
      glennrocksvb commented
      Editing a comment
      And more importantly, Replacement Variable doesn't support regex patterns. That's a big difference.

    #3
    This opens up new opportunities to create a different kind of vB mods that's never been done before. Since the mods are installed and running on CloudFlare, this means that it is now possible to create vBCloud mods that are otherwise not possible with vBCloud ecosystem. For example: hiding links for guests (hiding for real not via CSS).

    I might create a new forum called "vB5 CloudFlare Workers Modifications". Watch out for it!
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment

    Users Viewing This Page

    Collapse

    There is 1 user viewing this forum topic.

    • Guest Guest

    Latest Posts

    Collapse

    Working...
    X
    Searching...Please wait.
    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

    Please push the back button and reload the previous window.'
    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

    Please push the back button and reload the previous window.'
    An internal error has occurred and the module cannot be displayed.
    There are no results that meet this criteria.
    Search Result for "|||"