JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #121  
Old 01.09.2017, 12:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

Quote:
Originally Posted by verheiratet1952 View Post
but how to setup those filters for those two options?
1.) Settings-Filter
Link Origin is Clipoard
or
Disable Clipboard Monitoring in Toolbar

2.) Settings-Filter
Either DownloadURL or SourceURL contains tumblr
__________________
JD-Dev & Server-Admin
Reply With Quote
  #122  
Old 01.09.2017, 12:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

Quote:
Originally Posted by verheiratet1952 View Post
I dont see the reason why linkgrabber starts crawling/adding links in 3 out of 10 times after CTRL+C ...
Autostart has nothing to do with crawling. You have to disable Clipboard Monitoring in Toolbar. Button with little checkbox in it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #123  
Old 09.09.2017, 13:17
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by Jiaz View Post
1.) Settings-Filter
Link Origin is Clipoard
or
Disable Clipboard Monitoring in Toolbar

2.) Settings-Filter
Either DownloadURL or SourceURL contains tumblr


I can keep clipboard monitoring enabled when adding URLs at "clipboard blacklist" instead of default 'null'

adding URLs line by line without any other coding elements?

tumblr.com
twitter.com
instagram.com
Reply With Quote
  #124  
Old 11.09.2017, 18:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

Either create a filter for each one
or
.*(tumblr.com|twitter.com|instagram.com).*
and enable the regex checkbox
__________________
JD-Dev & Server-Admin
Reply With Quote
  #125  
Old 11.09.2017, 19:23
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by Jiaz View Post
Either create a filter for each one
or
.*(tumblr.com|twitter.com|instagram.com).*
and enable the regex checkbox


I have choose "on_enable" as value at clipboard skip mode?
or are you talking about enable/disable for clipboard monitoring in general?


I cannot add that line .*(tumblr.com|twitter.com|instagram.com).* to blacklist regex... please see screenshot...

I dont see an option to enable the regex checkbox ?! there is a text field with 'null'
Attached Thumbnails
clipboard-monitoring-settings.JPG  
Reply With Quote
  #126  
Old 11.09.2017, 19:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,343
Default

As the command descriptions suggests, this is to exclude processes for clipboard monitoring!
I was talking about Settings-Filters, see https://board.jdownloader.org/showpo...&postcount=123

You can either setup filters or disable clipboard monitoring completely
__________________
JD-Dev & Server-Admin
Reply With Quote
  #127  
Old 19.09.2017, 16:06
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by mgpai View Post
You can use this script.

Code:
// Save 'contentURLs' of selected links to text file.
// Trigger required: "Linkgrabber Contextmenu Button Pressed"
// Forum Topic: https://board.jdownloader.org/showthread.php?t=70907

var saveTo = "c:/myFolder"; // <- Specify an existing folder to to save the text file.

if (name == "Save URLs to text file") /* <-- Name of the button to be used in context menu (case-sensitive) */ {
    var links = lgSelection.getLinks();
    var urls = [];
    var date = new Date().toISOString().replace(/([^T]+).+/, "$1");
    var saveAs = "/" + date + ".txt";

    for (i = 0; i < links.length; i++) {
        var link = links[i];
        var url = link.getContentURL();
        if (url) urls.push(url);
    }
    if (urls.length) writeFile(getPath(saveTo + saveAs), urls.join("\r\n"), true);
}

Instructions:
  • Add script to event scripter
  • Go to Linkgrabber Tab > Context Menu > Open Menu Manager
  • Add Action > EventScripter Trigger
  • In the right-side panel change the name from "EventScripter Trigger" to the exact name of the button used in the script.
  • Save
link origin is saved with that script, how to also add naming from linkgrabber tab from 'name' section?
Reply With Quote
  #128  
Old 19.09.2017, 17:14
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by verheiratet1952 View Post
... how to also add naming from linkgrabber tab from 'name' section?
Replace
Code:
var url = link.getContentURL();
with
Code:
var url = link.getContentURL() + "," + link.getName();
Reply With Quote
  #129  
Old 21.11.2018, 13:13
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by mgpai View Post
Replace
Code:
var url = link.getContentURL();
with
Code:
var url = link.getContentURL() + "," + link.getName();

hello again,

how to create another eventscripter what can also save the naming from folders to *.txt?


regards
Reply With Quote
  #130  
Old 21.11.2018, 14:24
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by verheiratet1952 View Post
... how to create another eventscripter what can also save the naming from folders to *.txt?
I did not quite understand. Can you give an example please?
Reply With Quote
  #131  
Old 21.11.2018, 15:03
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by mgpai View Post
I did not quite understand. Can you give an example please?
linkgrabber creates NAME and SAVE TO naming...
I want to save the naming from NAME and SAVE TO to a local *.txt file...


I have some event scripter to save 'contentURLs' of selected links to text file...
you did help me at this ticket more than 12 months ago
Reply With Quote
  #132  
Old 21.11.2018, 15:44
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by verheiratet1952 View Post
... I want to save the naming from NAME and SAVE TO to a local *.txt file ...
Code:
gitlab.com/snippets/1781771
Reply With Quote
  #133  
Old 21.11.2018, 18:45
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by mgpai View Post
Code:
gitlab.com/snippets/1781771
absolutely great! thanks a lot...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:07.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.