fork download
  1. // ==UserScript==
  2. // @name 混在コンテンツ修正
  3. // @namespace Violentmonkey Scripts
  4. // @match https://*/*
  5. // @grant none
  6. // @version 1.0
  7. // @author -
  8. // @description -
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. 'use strict';
  13.  
  14. let imgs = document.querySelectorAll("img[src^='http://" + document.domain + "/']");
  15.  
  16. for (let i = 0; i < imgs.length; ++i)
  17. imgs[i].src = imgs[i].src.replace( 'http://', 'https://' );
  18. })();
  19.  
Runtime error #stdin #stdout #stderr 0.39s 42264KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: uncaught JavaScript runtime exception: ReferenceError: "document" is not defined.