window.addEventListener("load", () => {
  const SUPPORTED_TYPES = ["Files", "application/x-moz-file"];

  let body = document.getElementsByTagName("body")[0];

  body.addEventListener("dragover", (ev) => {
    if(SUPPORTED_TYPES.find(el => ev.dataTransfer.types.includes(el)))
      ev.preventDefault();
  });

  body.addEventListener("drop", (ev) => {
    if(SUPPORTED_TYPES.find(el => ev.dataTransfer.types.includes(el))) {
      ev.preventDefault();

      for(let i = ev.dataTransfer.files.length - 1; i >= 0; --i) {
        let file = ev.dataTransfer.files[i];
        let request = new XMLHttpRequest();
        request.open('PUT', document.URL + file.name);
        request.send(file);
      }
    }
  });
});

@@ -251,31 +251,31 @@
 nsfer.types.
-include
+contain
 s(el)))%0A    
@@ -406,15 +406,15 @@
 pes.
-include
+contain
 s(el
@@ -447,16 +447,104 @@
 ult();%0A%0A
+      let url = document.URL;%0A      if(url%5Burl.length - 1%5D != %22/%22)%0A        url += %22/%22;%0A%0A
       fo
@@ -719,28 +719,19 @@
 ('PUT', 
-document.URL
+url
  + file.

Fix Drag&Drop uploading w/o forward slash at end of URL