Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.26k stars 422 forks source link

Pages with no ability to inject are shown as injectable #2212

Open kosuodhmwa opened 1 week ago

kosuodhmwa commented 1 week ago

OS; Win10 x64 Pro with most current updates on 2024-10-22 Browser: Google Chome most current version on 2024-10-22

Script here:

// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 2024-10-22 // @description try to take over the world! // @author You // @match https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=de // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com // @grant none // ==/UserScript==

(function() { 'use strict'; alert(current_url); var current_url = document.location; if(current_url.contains("https://www.pilzforum.eu/sc-dereferer/?target=")) { var encoded_url_without_dereferer = current_url.substring(46); var plain_url_without_dereferer = decodeURIComponent(encoded_url_without_dereferer); location.replace(plain_url_without_dereferer); } })();

Even the alert box will not be shown. Why?

Thx for feedback.

Best regards Jan

kosuodhmwa commented 1 week ago

Activated, but not started? Why WTF? Does not make sense imo... image

image

kosuodhmwa commented 1 week ago

do i need to set a specific domain for each script?

kosuodhmwa commented 1 week ago

Theoretically, that script should show an alert box on every website visit - or not? (At least if it would be activated)

derjanb commented 1 week ago

Duplicate of #1226

For security reasons, no extension can be run on Chrome Webstore pages, as well as browser settings and other internal pages.