Unknown model· unknown
from ShareGPT 90K (shared ChatGPT conversations)
Write a chrome plugin that disables turbolinks on webpages that have turbolinks enabled
- User
Write a chrome plugin that disables turbolinks on webpages that have turbolinks enabled
- Assistant
Here is an example of a simple Chrome plugin that disables turbolinks on webpages:
code// ==UserScript== // @name Disable Turbolinks // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match *://*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var turbolinksAvailable = typeof Turbolinks !== "undefined"; if (turbolinksAvailable) { Turbolinks.disble(); } })();This plugin will check if the
Turbolinksobject is available on the page, and if it is, it will call thedisable()method to disable turbolinks on the page.