Discussions » Creation Requests

[Solved] Filmix (filmix.me) Ctrl+C remove Trash when copy

§
Posted: 11-02-2017
Edited: 11-02-2017

[Solved] Filmix (filmix.me) Ctrl+C remove Trash when copy

Script Reqest:
Filmix (filmix.me) Ctrl+C remove Trash information when copy by CTRL+C
Filmix (filmix.me) Ctrl+C удалить информацию при копировании через CTRL+C "%s подробнее: https://filmix.me/"


Script:
https://filmix.me/templates/Filmix/media/js/site.js?v2.1.2

$(document).keydown(function(e) {
if (dle_group !== 1 && dle_group !== 2) {
if (ctrlDown && e.keyCode === cKey) {
var selText = '', newSel = '', sel = '';
var options = {
htmlcopytxt: '
Смотреть подробнее: ' + location.href + '',
min_length: 5,
addcopyfirst: false
};

§
Posted: 11-02-2017
Edited: 11-02-2017

This is reqest to remove trash information when you copy text by CTRL+C

woxxomMod
§
Posted: 11-02-2017
// ==UserScript==
// @name         Prevent Ctrl-C interception
// @match        https://filmix.me/*
// @run-at       document-start
// ==/UserScript==

document.addEventListener('keydown', function(e) {
    if (e.keyCode == 67 /* C */ && e.ctrlKey && !e.altKey && !e.metaKey && !e.shiftKey) {
        e.stopPropagation();
        e.stopImmediatePropagation();
    }
}, true);
§
Posted: 11-02-2017

Thank you! working perfect!

Post reply

Sign in to post a reply.