Code Monkey home page Code Monkey logo

persepolis-webextension's Introduction

Persepolis Download Manager WebExtension

Integrate Persepolis Download Manager with Chrome\Chromium\FireFox\Opera and any other WebExtension standard browser. With this tool, Persepolis Download Manager can interrupt and catch your downloads browsers or download many links at once.

For more details, visit Persepolis Github Page

Perseolis WebExtension started as fork from uget-chrome-wrapper

Installation

Firefox Add-on
Google chrome store

If you are using brave, Persepolis integration should be added manually: #25

Contributing

Are you a user?

Please test Persepolis WebExtension on your system and report any issues

Are you a developer?

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

You can test the extension locally on your browser by add it from develoepr tools( about:debugging for Firefox or chrome://extensions/ in Chrom*)

License

GNU General Public License v3

persepolis-webextension's People

Contributors

alireza-amirsamimi avatar jafarakhondali avatar khaled-0 avatar mostafaasadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

persepolis-webextension's Issues

Not working

Brave Browser Beta 1.46.99
Extension version: 2.4
Persepolis version: 3.0.1
Debian 11

You guys seriously need to improve browser integration

System Details:

  • Operating System: Windows 10

  • Persepolis Version: 3.2.0.0

  • How do you install Persepolis? Scoop

  • Please attach log files if crash or paste error message

Issue Description and steps to reproduce:

Write in English language please, Thanks :)

Feel free to edit or delete lines in this template if it is necessary.

Please report only one Issue (Bug or feature request or ...) in one issue! and open new Issue for another one :)

This download manager has everything going for it except for the browser integration on Windows. It wont start at all if Persepolis is not running in the background.

This is one thing that needs improvement. I want it to capture my download immediately and always.

Brave

The plugin does not work on Brave Browser, it installs well but does not respond to any of the activities and the link list window is not displayed.

Options reset on Firefox failure

I have produces many times the options (specially interrupt downloads) was reset (back to enable by default).
I think it cause by restarting system without close FF properly. Not sure.

OS: Ubuntu 20.04.03
Browser: Firefox Developer Edition 94.0b9
Add-on version: 2.3.1

persepolisdm not integrated with brave

i'm using brave web browser and I've installed the extension and it's on
when i download something with my browser it doesn't download that is a good sign i guess because it shows that the extension is working but persepolisdm isn't opening
I've tried it with both persepolis opened and closed but it still doesn't work

Inappropriate approach in operation of the Firefox addon

Problem in English: The built-in Firefox download feature is replaced by your addon! The addon should not work on 'Save File' option in the download dialogue box. It should be an extra aption, as DownThemAll was.

Problem in Persian:
‫این افزونه کنترل کامل بارگیر‌ی‌ها رو می‌گیره دستش! مثل افزونه محبوب قدیم DownThemAll نیست که بیاد یه گزینه در جعبه پیشناد دانلود فایرفاکس اضافه کنه، بلکه افزونه پرسپولیس جای کارکرد گزینه saveی رو که توی جعبه دانلود هست، می‌گیره. این باعث می‌شه حتی در وقت Save Image As هم پای پرسپولیس وسط کشیده بشه که اصلا نیاز نیست. من می خوام خودم انتخاب کنم که کِی و چی با پرسپولیس بارگیری بشه و کِی و چی با خود قابلیت درونی فایرفاکس

‫+ منظور از جعبهٔ دانلود، اسکرین‌شات زیر است
screenshot_20180228_222116

cannot use it together with a custom firefox user.js file (hardned for security)

Hi, thank you for your work in this extension.
I know this might not be the right place to ask this question.
I have no problems using this extension on a standard non customized Firefox profile. It even works perfectly fine together with other aggressive javascript/adblockers extensions. etc.

I'm also trying to use a custom user.js file on my firefox profile.
As you may know this is done to customize your firefox in a more "aggressive" and "permanent" way than just using the user interface.
It changes a lot of other hidden preferences.

I' using this one, https://github.com/pyllyukko/user.js.
There is some change being done to the firefox preferences, that makes it impossible to use persepolis the extension.

I've already tried searching and toggling through these various changed options, to pinpoint exactly what could it be. Described the issue here, pyllyukko/user.js#453.

Would you have any tips or idea for which changed firefox preference could be impacting Persepolis ? Thanks in advance

Vulnerable C++ Code snippet

Hi,

We are analyzing vulnerable C++ code snippets migrated from StackOverflow too Github. We noted a vulnerable code snippet in your repository that was most likely copied from Stack Overflow. The vulnerability exists in file

Here is a summary of the vulnerable code snippet:

Description:

If current_index or current_index + sizeof(T) get larger than size of vec, information leakage can occur.

static T get_from_vector(const std::vector<uint8_t>& vec, const size_t current_index){

example:

int main(){
std::vector<uint8_t> vec {0x01, 0x05};
auto byte1 = get_from_vector<uint8_t>(vec, 10);
auto byte2 = get_from_vector<uint16_t>(vec, 20);
auto byte4 = get_from_vector<uint32_t>(vec, 50);
auto byte8 = get_from_vector<uint64_t>(vec, 32);
printf("%x - %x -%x -%x",byte1,byte2,byte4,byte8);
}

output it's being like this:

0 - 0 -0 -382d3531

Mitigation:

Validate size of current_index + sizeof(T) to always be in the boundary of vec.

Please verify our report here with regards to the above vulnerability to assist you.
Link to survey (should not take more than 5 minutes).

Sincerely yours,
Morteza …, university info
Jafar, .. university info
Ashkan Sami, university, website
Foutse Khomh, Polytechnique Montreal, website: http://www.khomh.net/
Gias Uddin, Polytechnique Montreal, website: https://giasuddin.github.io
...

Persepolis Extension does not work on Brave browser

System Details:

  • Operating System: Linux
  • Distro(For GNU/Linux and BSD users): ubuntu 19.04
  • Desktop Environment(For GNU/Linux and BSD users): BSPWM
  • Persepolis Version: 3.2.0
  • How do you install Persepolis? Repositories

hi
I install Persepolis Extention on Brave browser but the Extention not working
is it necessary to active specific service in BSPWM?
BSPWM

Feature request for browser add-on, much needed

since quite a few times I (as many others - suspect) get an error when we try to download to a small size file, please add an option to download with Persepolis only after right click and not automatically every time in case of future inconveniences like these.

I've searched around but couldn't find something in case there was one

otherwise, we have disabled/ renable whenever this happens

ارسال همه دانلود‌ها به پرسپولیس

سلام خسته نباشید
مرسی از افزونه خوبتون واقعا کروم در لینوکس کمبود این افزونه رو داشت
یه موضوعی که هست چه طور میشه همه دانلود‌ها در کروم به صورت خودکار به پرسپولیس ارسال بشه و دیگه نیازی به راست کلیک و انتخاب دانلود با پرسپولیس در منو نباشه؟

Configure reset

Every time I open Firefox, the "Interrupt downloads" tick is checked, while I disabled it the last time I used it.

Doesn't work with First-Party Isolation enabled in Firefox

In Firefox (using 78.0.2 on Arch Linux), with First-Party Isolation (FPI) enabled (privacy.firstparty.isolate = true in about:config), the extension will interrupt downloads, but won't open them in Persepolis, so downloads will never start.

FPI restricts access to cookies, site storage, etc. by domain, though one of the permissions of the Persepolis extension is "Access your data for all websites". I'm not sure what's supposed to take priority here, but it looks like FPI--the extension is looking for cookies (required for some downloads) and Firefox is blocking access to them.

افزونه فایرفاکس

سلام.
من دارم با استفاده از فایلهای افزونه شما و تغییر آنها، برای فایرفاکس یه افزونه میسازم.
چون تازه کارم میخواستم از ساده ترین حالتش شروع کنم. تا جایی که میشد ساده ش کردم طوری که الان فقط یک آیتم توی منوی کلیک راسته که اگر روی لینکی کلیک راست بشه ظاهر میشه و میتونه لینک رو به پرسپولیس بفرسته و ادامه ش فرایندی مشابه با همین کاری که افزونه کروم میکنه.
دارم توی اوبونتو ۱۶٫۰۴ و با آخرین نسخه های فایرفاکس معمولی و فایرفاکس
developer edition
تستش میکنم.
مشکلی که دارم اینه که با فایرفاکس
developer edition
درست کار میکنه ولی با نسخه معمولی فایرفاکس فقط تا اونجایی ‍پیش میره که پرسپولیس رو بالا میاره ولی صفحه تایید دانلود ظاهر نمیشه.

حالا یک درخواست و یک سوال دارم.
درخواستم اینه که اگه ممکنه شما هم افزونه رو تست کنید.
test
و سوالم: تا جایی که فهمیدم جاوا اسکریپت افزونه کروم، پیامی به صورت
json
میفرسته. سوالم اینه که پرسپولیس انتظار چه پیامی رو میکشه. آیا برای پرسپولیس فرقی میکنه ‍پیام از چه نرم افزار یا افزونه ای فرستاده شده؟

مشکلات افزونه

سلام
در ورژن ۲.۴.۱ :
در فایرفاکس در زمانی که پرسپولیس در سیستم تری نیست ؛ وقتی لینکی توسط افزونه خودمان چه با کلیک مستقیم چه از منوی کلکی راست ارسال شود ، برنامه باز می شود و سپس بعد چند ثانیه بسته میشود و دانلودی هم افزوده نمیشود
اگر برنامه باز باشد یا در سیستم تری باشد دانلود بدرستی افزوده میشود
این درحالیست که فلش‌گات در هیچ حالتی مشکلی ندارد
در کروم برای اعمال اینترگریشن باید پس از اینترگریشن یکبار کروم ریستارت شود تا تغییرات اعمال شود درغیر این صورت دانلودی ارسال نمی شود
مشکل اساسی این است که همین اعمال و ارسال فقط تا یک بار باز و بسته شدن پرسپولیس باقی می ماند ، یعنی اگر الان پرسپولیس را باز کرده و اینترگریشن کروم رو انجام دهید و سپس کروم را ریستارت کرده و لینکی رو به پرسپولیسی که هنوز باز است بفرستید دانلود افزوده می شود و سپس پرسپولیس را ببندید و دوباره لینک بفرستید ، پرسپولیس باز می شود و لینک نیز افزوده می شود ولی دیگر این اتفاق نمی افتد یعنی چه همین پرسپولیس باز بماند چه بسته شود دیگر لینکی به پرسپولیس فرستاده نمی شود تا بار دیگر اینترگریشن و ریستارت کروم انجام شود و باز هم عمر دریافت لینک پس از اولین بستن پرسپولیس به اندازه یک دانلود است
چیزی که گفته شد درباره ویندوز است

Doesn't work on windows 10

سلام هر کاری کردم اصلا افزونه روی ویندوز کار نمیکنه، پرسپولیس اجرا شده و در سیستم تری فعاله منتها افزونه کار نمیکنه و لینک رو نمیفرسته برای پرسپولیس. دانلود از چند سایت، فرمت های مختلف
(mp4,exe)
رو چک کردم، هیچکدوم رو نمیفرسته و بجای پرسپولیس، خود فایرفاکس میخواد دانلود رو بدست بگیره.

آپدیت: شرمنده اشتباه از من بود، نمیدونستم نحوه کار افزونه اینطوریه که پنجره دانلود فایرفاکس بالا میاد و بعدش که اوکی کردم، پنجره دانلود پرسپولیس باز میشه.

Not working

Hi there
perspolis extension is not working either on opera or chromium. everything seems ok but when i click on an url or any download link, it justs won't work.

What's this?

image
I installed pdm ant its chrome extension,but when I used the right-click "Download with pdm", it remind me this. what's this and what should I do?

Firefox add-on's "Interrupt downloads" toggle frequently re-enabled after being disabled

System Details:

  • Operating System: Windows 10 v1903

  • Distro(For GNU/Linux and BSD users): n/a

  • Desktop Environment(For GNU/Linux and BSD users): n/a

  • Persepolis Version: 3.2.0

  • How do you install Persepolis? Windows installer

  • Please attach log files if crash or paste error message

N/A

Issue Description and steps to reproduce:

On Windows 10 v1903, the Firefox add-on will frequently re-enable the "Interrupt downloads" toggle even after it has been disabled by the user.

Steps to reproduce:

  1. Install Firefox add-on
  2. Disable "Interrupt downloads" toggle
  3. Use Firefox for about a week to 10 days. During this time, the toggle will be re-enabled without any user interaction

Make Interrupt Download enabled by default

I always have issue with this extension always reset the interrupt download option everytime i launch firefox. Dowload manager should grab downloads from browser by default.

It doesn't work on Ubuntu 16.04 and Chrome

I've installed the latest version of Persepolis software and its integration extension on chrome.
but the extension doesn't send the link to software for download.
please fix it.

Not Working in Latest Firefox

i have install Persepolis dm desktop version(linux) and Persepolis dm extension (v 2.2.0) and firefox 80.0.1 but not working any more.
i try uninstall and install again (reinstall) same result also i can fetch links through Persepolis Download Manager Integration but it fail to insert into desktop app.

note that Persepolis dm work on firefox 74 and earlier but in newer version note work.

installed from mozilla add-ons store:
https://addons.mozilla.org/en-US/firefox/addon/persepolis-dlm-integration/

Save as does not work when extension enabled

Hi,

Whenever l right click 'Save image/link as...' it does nothing while extension enabled. It works if I disable extension or when pressing shortcut key (Insert).

Thanks

Win7 x64
Chrome 61/62
Persepolis Download Manager Integration 1.5.1

Option to remove from context menu

Hi, I use Persepolis and i think its good idea to extension for Disable/Remove extension entry (Download all links with Persepolis) from context menu.
Thanks

User preference is not stored

Hi,
I use Persepolis download manager web extension in firefox for Linux mint (68.0.1 64-bit) it's very useful to catch download link. However there is only one downside that's, I must explicitly turn on "Interrupt downloads button" in extension every time I open firefox. I think it is an odd behaviour, extension should be able to retain user preference even after closing browser. Expecting your kind review on this.
Thank you.

Catching Download Link Automaticaly

  • Operating System: All Linux, MACOS and Windows
  • Persepolisdm Version: 2.2.0

at least firefox browser affect, idk about chrome and etc

there a known problem, Persepolis-WebExtension can't catch automatically download link/links and you must select manually(if site show download link/links) and if site avoid showing links and redirect to browser then how can we catch download links??

also 90 percent of sites have same idea and bad thing there is no way to catch.
for test go to SouceForge for Download Rufus then try download and wait until let you download, then you can see there is no link for download only redirect to your browser

Automatically starts the download manager even if disabled

In my system (Debian Stretch AMD64, with Firefox Stable), I usually keep the extension disabled (by Ctrl + Shift + U).
However, the first time I start a download in a sessione, the Firefox download manager is launched first, then also Persepolis. The second time, the Firefox download manager works regularly.
It's very annoying.
Thank you very much in advance.

Not Working in Latest LibreWolf (a fork of Firefox) Browser

I have commented in this issue #41, but since is different browser I have to create new issue. Doesn't work in my browser, same behaviour like the issue I mention earlier (actually many issues just the same). Try to set privacy.firstparty.isolate to false, same doesn't work either.
Browser: LIbreWolf v91.0.1

Add mention of aria2c to your browser store listings for visibility

Mentioning aria2c will make it much easier for people to find your app on the appstore.

https://addons.mozilla.org/en-US/firefox/search/?q=aria2

Also add that your project is a Free Downloader Manager and Fully Open Source

https://addons.mozilla.org/en-US/firefox/search/?q=free%20download%20manager

Here is a re-write:

Persepolis Download Manager.
Fully Open Source Software and Free Download Manager.
Replaces the default download manager of FireFox
Built with youtube-dl + aria2c on the backend
Supported protocols HTTP(S), FTP, SFTP, BitTorrent, and Metalink
Learn more about this extension at https://persepolisdm.github.io/
+ Builds available for Firefox, Chrome, Windows, Mac, Linux, BSDs and more!

Set minimum file size to be downloaded with Persepolis

Hello,
In the Firefox's plug-in section I had read that PDM browser integration is a fork of uget-chrome-wrapper, and in this extension there is an option to set the minimum file size that will be downloaded with PDM, to put it simple if the file to be downloaded has a size less than the file size set by the user this extension will not interrupt download and the file will be downloaded within the browser.

I would like to see it in PDM's browser integration, for me if the file size is less 5-10M there no need to be downloaded with an external DM.

Thanks :)

Can't download IPSWs from apple

When trying to download an IPSW from apple's servers on firefox, it goes to firefox's download manager instead and then it fails. Adding .ipsw to exclude urls containing makes it work through the native download manager. I don't know if this is limited to Apple's servers, IPSWs on Apple's servers, or IPSWs in general.

Here's the iPadOS 13.3.1 IPSW for iPad gen 7 for an example of what isn't working.
http://updates-http.cdn-apple.com/2020WinterFCS/fullrestores/061-40122/0E8D0B9B-93F2-4A56-9D11-970B9E03ADD7/iPad_Educational_13.3.1_17D50_Restore.ipsw

I did also test it with the iOS 7.1.2 IPSW for iPhone 4 GSM and it was the same issue. Here's a link to that in case you want to use it for reference too.
http://appldnld.apple.com/iOS7.1/031-4812.20140627.cq6y8/iPhone3,1_7.1.2_11D257_Restore.ipsw

Manually adding these links in the GUI seems to work.

Sorry the description was blank earlier, I accidentally hit submit too soon.

Firefox extension

System Details:

  • Operating System: Linux
  • Distro(For GNU/Linux and BSD users): KDE Neon
  • Desktop Environment(For GNU/Linux and BSD users): Plasma
  • Persepolis Version: 3.2.0
  • Persepolis Firefox Extension Version: 2.2.0
  • How do you install Persepolis? persepolis/ppa

It's not working. When I click on a file link to download the persepolis download window does not open.

The extension also breaks the downloads the download manager of firefox, they do not start. If I disable it downloads work normally.

I recorded a video showing both problems.

https://youtu.be/cWXBoF7Vrz4

Invokes Fx Download Dialog then starts Persepolis Download Dialog

System Details:

Issue Description and steps to reproduce:
Tested with Chrome also... this issue ONLY appears in Fx.

When clicking to download a file (Not context menu), the Fx "What should Firefox do with this file?" window appears. I select "Save File" then the "Enter Name of File to Save to Screen Appears", I enter a new file name. Then the Persepolis "Enter your Link" screen appears. I press enter. Persepolis downloads the file, but Fx shows in the Download window that the Download was cancelled.

In Chrome, when I click on the file, the Chrome prompts are completely bypassed and I go directly to Persepolis (as it should be).

I checked and there are a few other extensions on Fx that show the same behavior. Perhaps you are using the same logic. The one that works correctly is here: https://addons.mozilla.org/en-US/firefox/addon/aria2-integration/?src=search

Perhaps you could take a look and it might give you a clue as to what is happening....

Really like your program. It has a very attractive, clean look and with the exception of this issue and the one discussed in #244 it is perfect. Good work!

Not working after update

Extension it's not working at all after update, it doesn't interrupt downloads and context menu is missing, I tried reinstalling but it remains the same. It was working fine before the update. I'm on Linux and I use the extension on chromium if that matters.

باز کردن پرسپولیس برای همه ی فایل ها

سلام
این افزونه کروم برای همه ی فایل ها میاد پرسپولیس رو باز میکنه . مثلا برای فایل های متنی مثل پی دی اف نباید باز کنه باید یک لیست ایگنور بشه براش درست کرد تا برای فایل های دلخواه فقط باز بشه

Persepolis Download Manager Integration does not have permission to use native application com.persepolis.pdmchromewrapper

persepolisdm/persepolis#575 (comment):

This extension does not have permission to use native application com.persepolis.pdmchromewrapper (or the application is not installed)

– NativeMessaging.jsm:216

Unchecked lastError value: Error: Attempt to postMessage on disconnected port

– ExtensionCommon.jsm:304

Environment

  • Persepolis Download Manager 3.1.0
  • Persepolis Download Manager Integration 1.7.1
  • Waterfox 56.2.3 and 56.2.4
  • Kubuntu 18.04

Note

persepolisdm/persepolis#575 was closed with reference to https://redd.it/9s2qmh but that is not a fix.

Chrome Extension : Interrupt downloads option automatically turns off on every boot

System Details:

  • Operating System: Windows 10 x64
  • Persepolis Version: 3.2.0
  • How do you install Persepolis? - Searched a lot on the internet to find a better alternative for IDM.

Issue Description and steps to reproduce:

  • "Interrupt downloads" option automatically turns off on every boot in the "Chrome extension". So every time after boot need to click on the extension and then turn the "Interrupt downloads" on to catch the download links and through it to the dm. It would be great if it can save the preferences that I change.

  • And sometimes when I attempt to turn it on, it says "Fatal error detected - Failed to execute script Persepolis Download Manager". I'm attaching the screenshot in the comment.

Doesn't work with Vivaldi

Persepolis is started.
Webextension is installed and available.
Try to download something, integrate downloader of Vivaldi appear and download the file... Persepolis never show anything.
Try with different file format, same result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.