Programming :: Firefox Extension To Handle URLs?

Jan 11, 2011

I want to write simple firefox extension / script or anything to change URLs from HTTP to HTTPS for selected websites (e.g. facebook). That thing is actually bypassing some security checks in my network.

Can anyone tell me how to proceed? I can deal with language as far its C++ or Python (something else would just take more time that's all )

View 1 Replies


ADVERTISEMENT

Fedora :: Clicking URLs In Thunderbird Does Not Start Firefox In F15?

May 27, 2011

Does anyone have the problem where clicking a URL in an email in Thunderbird doesn't start up Firefox? It used to work in previous Fedora releases

View 6 Replies View Related

Programming :: Extracting URLs From Strings?

Jun 28, 2009

I have a PHP script written that is checking a string to see if it contains a link in it (i.e. a URL). I have the following if statement, that uses 3 possible regular expressions to determine if there is a link or not.

Code:
// check if we found a link
// links are denoted by strings that:
// - contain http://
// - contain www.*.*

[Code]....

I'm not convinced yet that writing a shell script to do this is the best course of action. If someone is capable of doing this with a Perl or a Python script that's fine too. If you want to make it super high performance and write it in assembly

View 1 Replies View Related

Programming :: Apache Redirect - Core SEF URLs On - Using Htaccess.txt File That Came With Joomla

Apr 7, 2009

I have recently merged two Joomla 1.0 sites I ran into one. I imported the articles I wanted to keep to the new site, and I have the old site's domain pointing as an alias at the new site. The new site is www.theouthousers.com . The old site was www.bludblood.com .

I also have the core SEF URLs on, using the htaccess.txt file that came with Joomla.

I have one writer for the old site who linked to his articles in various places, so I am trying to set up redirects for him so that he doesn't have to change all of his links.

For instance, I need something like:

http://www.bludblood.com/joomla/inde...d=25&Itemid=51

To redirect to the equivalent location on the new site:

[url]

And I also need specific links like:

[url]

To redirect to their new counterparts:

[url]

Keeping in mind that www.bludblood.com is now an alias of www.theouthousers.com, is there any way to do this? I have been trying with rewrite rules and redirects, and cannot seem to achieve the desired effect.

Tried various versions of:

Code:
Redirect [url] [url]

With the http, without, as regexps, as 301s, as permanents, etc, and it just will not work. Also tried as RewriteRule.

View 2 Replies View Related

Programming :: Bash - Read User Input: URLs Without The Enter Key Stroke?

Sep 23, 2010

Here's a challenge I've been struggling for months with:

I have a bash script that reads URL addresses of our internal server and then executes some test commands on them. Something like this:

Code:
read -p "Enter URL: " url
sh execute-what-ever-to $url

After copy-pasting the URL the user taps the enter key and the script proceeds, but here comes the tricky part: I want this to work without the need to press the enter key after copy-pasting the URL.

"read -n" does not work in this case, as the URLs vary greatly in length. However, the URLs always end to the same string. They could be like "http://url1/END", "http://url2/END" and so on. So this ending string "END" could be theoretically used to recognize that the whole URL has been pasted.

View 2 Replies View Related

Ubuntu :: Wget Failed Urls Output / Log The Urls That Have Failed?

Jan 22, 2010

I'm using wget to retrieve a long list of URLs, a small proportion of which fail, hence:

Code:
wget --input-file=urls.txt
Is there a way to log the urls that have failed? Unfortunatley wget does not output the current URL being processed (and then the status), so hard to see grepping the output helping.

Or should I use some alternative like curl, wmget?

View 1 Replies View Related

OpenSUSE :: SUSEfox Extension For Firefox 6.0?

Sep 2, 2011

I upgraded from Firefox 5.0 to 6.0 and now the SUSEfox Extension is no longer compatible.

View 5 Replies View Related

General :: Firefox Extension Not Loading?

Mar 2, 2010

I am developing an extension for firefox that enables users to chat with any others who happen to be browsing the same website at the same time. The xul file adds a tool bar with a button "Enable Chat" in the browser toolbox. when a user clicks the Enable chat button, the server initiates the chat. I went through many tutorials for extension development. They have helped. But I cant seem to get my extension up properly. Ill just put up the contents of my files for extension..

/home/neethusha/extensions/blaze (blaze is the name of the extension)
chrome/content/blaze.xul
install.rdf
chrome.manifest

[Code]....

I made the pointer to the extension in a file named "blazebutton @anywhere.com" and saved it in the firefox profile folder "/home/neethusha/.mozilla/firefox/d5ma3rr9.dev/extensions"

When i open the firefox in this profile, the extension is not loading...

View 3 Replies View Related

OpenSUSE :: Video Downloadhelper Firefox Extension Not Working On 11.3 Kde 64 Bit

Aug 22, 2010

i just downloaded and installed opensuse 11.3 64 bit kde on my laptop.

all my hardware seems to be working fine.

i installed the drivers for my nvidia video card, and 3d is working along with kde's desktop effects.

i installed all my favourite firefox extensions including video downloadhelper downloadhelper - media download firefox extension an extension that can download videos from videos and other video sites.

all of my installed firefox extensions seem to be working except video downloadhelper.

when i try to download videos with it nothing happens.

previously i had opensuse 11.2 gnome 64 bit installed on my laptop, and the video downloadhelper extension worked fine.

i think this problem might have something to do with the way opensuse integrates firefox with kde.

View 4 Replies View Related

Ubuntu Security :: Using Torbutton Firefox Extension On Xubuntu 9.10

Apr 11, 2010

I am trying to use the torbutton Firefox extension on xubuntu 9.10. I had it working when I first installed it, but now I can't get tor to start properly. When I try to run it using Vidalia I get the following error message:

Apr 11 17:24:12.335 [Notice] Tor v0.2.1.25. This is experimental software. Do not rely on it for strong anonymity. (Running on Linux i686)
Apr 11 17:24:12.337 [Notice] Initialized libevent version 1.4.11-stable using method epoll. Good.
Apr 11 17:24:12.337 [Notice] Opening Socks listener on 127.0.0.1:9050
Apr 11 17:24:12.337 [Warning] Could not bind to 127.0.0.1:9050: Address already in use.
Is Tor already running?
Apr 11 17:24:12.337 [Warning] Failed to parse/validate config: Failed to bind one of the listener ports.
Apr 11 17:24:12.338 [Error] Reading config failed--see warnings above.

View 1 Replies View Related

Ubuntu :: Copy Firefox Extension Files And Other Settings?

Jul 26, 2010

I basically want to transfer firefox settings from one machine to another (or from one user to another) which includes some extensions. Instead of running the browser and installing the extension manually, I just want to copy and paste the relevant files.

I noticed that the folder name where the 'extensions' folder is present is different for different users. And just copying to that folder does not work. code...

I'm guessing there are other configuration files that I need to modify. Can someone tell me right way to go about this?

View 1 Replies View Related

Ubuntu :: Removed All Icons For Every Extension And Addon Within Firefox On Windows7

Jan 3, 2010

Need a few suggestions on how to remove context menu and menu (Tools, etc...) icons from within Firefox. I somehow removed all icons for every extension and addon within Firefox on Windows7, but forgot what I did. It would be nice to know how to do this on Ubuntu... migrated over to Vmware to test out and I always like a clean look.

View 4 Replies View Related

Programming :: How To Handle Division By Zero In Awk

May 29, 2011

Sometimes the variables will be 0 and sometimes not, and of course the output may also be 0%...What is the best method to handle division by zero errors in awk.

View 2 Replies View Related

Programming :: C++ Search And Handle Information

Sep 26, 2010

I would like to make program that reads a *.TXT file and searches for last line and constatly refreshing the search. So last line would look something like this:Mike Had A 100.0 Pound Shark.So there are multplie category of "fish"(Shark, Dolphin, etc.) and each of them have allowed weight (ie. minimum 70.0 Pound Shark, 50.0 Pound Dolphin). If in the found sentence Shark or Dolphin doesn't meet requierments than program named False.exe should be started. I dont know how to make it my self so any help is much appreciated. My knowledge on programming is very low but I'm opend for learning.

View 1 Replies View Related

Programming :: Form To Submit Csv File To Handle?

Jul 25, 2010

I'm new to php and need some pointers to worth while documentation 'cause I'm getting nowhere I want to make a simple html form that allows me to submit a csv file so that I can work on it.The problem seems to be that if the file is not in the root of the (web) application it won't work.The form doesn't seem to send the path with it so I am unable to (1) know where the file is, I just get the name of the file and (2) I couldn't access the file anyway as it's outside of the apache environment.Is there a way to up the file to memory? How would you do this

View 3 Replies View Related

Programming :: Handle Query Strings Using Socket?

Dec 7, 2009

I need to make a daemon which listens to port 81 for messages like [URL] So far I made a daemon which serves as a simple stream server: I set up a socket to listen to a non-reserved port (like 9999), but I don't know how to read the query strings.

Linux distro: Kubuntu 9.04
Language: C

View 5 Replies View Related

Programming :: Limit In Number Of Fields That Awk Can Handle

Mar 2, 2011

I have a file with 200 000 lines and I want to append the fields of each line based on matching first field. The resulting file should have 70 000 columns but has "only" 18 000. The command I'm using is working perfectly with a smaller file, wich lead to 14 000 columns. Could there be a limit in number of fields that awk can handle ? Here's my awk command :

Code:

awk -F, 'END { for (k in _) print _[k] } { _[$1] = $1 in _ ? _[$1] FS $4 : $1","$4 } ' file > out

Also, this command writes ^M (windows line break) after each columns. Removing them is easy but where do they come from ? Working on Ubuntu 10.10

View 4 Replies View Related

Programming :: Bash Script Can't Handle Errors When Run By Cron

Jan 8, 2009

I have a script that that is supposed to send me an e-mail when a host is not responding to ping:

The script works fine when I execute it directly but when cron executes it, the ping error is never picked up by the script so the if statement is ignored.

View 4 Replies View Related

Programming :: Handle Keyboard Button Pressed Signal?

Jul 4, 2011

I'm learning Signals, and I have a question:

Is possible to make a handle when I press any of the keyboard buttons?

The SIGINT handles the Ctrl-C combination, but I want to handle if any keyboard button was pressed.

View 3 Replies View Related

Programming :: Handle Files With Spaces In Their Names In Bash?

Apr 1, 2011

*I'm using Ubuntu 10.10

My issue is I can't handle the files with spaces in their name, I've donde the below script to print each file found inside folder and subbfolders with "find".

I would like to "ls" to each file found with its complete path and with its basename too.

Code:
files=$(find . -type f)
for each in "$files"
do
ls -l "$each" # 1rst option I've tried to list with full path
ls -l "$(/bin/echo "$each")" # 2nd option I've tried to list with full path
ls -l "$(/bin/echo $(basename "$each"))" # 1nd option I've tried to list with it basename

[Code].....

How can I list "ls -l" in both cases (with full path and with basename) when there are files with spaces in their name?

View 6 Replies View Related

Programming :: Need To Handle SIGSEGV Error When Pbuf Size Less

Sep 12, 2009

Need to handle SIGSEGV error when pbuf size is less than size. inside lib.:
for (i = 0; i < size; i++)
pbuf[i] = i;

View 2 Replies View Related

Programming :: UnixODBC - Commit After Freeing A Statement Handle?

Feb 16, 2011

A question of ODBC correctness - maybe someone knows.

Code:
// statement handle is sth, connection handle is dbch
SQLExecDirect(sth, ...);
// ... bind var, fetch results ...
SQLFreeHandle(SQL_HANDLE_STMT, sth); // free statement handle
SQLEndTran(SQLHANDLE_DBC, dbch, SQL_COMMIT);
(error checking removed for clarity).

To my mind this seems wrong - surely the statement handle should be free'd only after the commit is done? Or maybe not. I theorize about the ODBC library like this: a whole set of statements can be created, run, executed in one transaction (which is held at the connection level), and only after all that is a commit/rollback done. So maybe it's OK. Even so it still feels weird. What is written above works, but there are rare and very difficult to replicate problems with this code, and I wonder if a premature free might be the cause...?

View 2 Replies View Related

Programming :: Handle Non Argument Error While Adding Two Alphabets Using 'expr'

Feb 19, 2011

how to handle non argument error while adding two alphabets using 'expr' (not bc).

View 1 Replies View Related

Programming :: Invoking Extension Files In Ubuntu?

Nov 18, 2010

I'm doing a project in Unix version Ubuntu 10.04. I'm doing an standalone app using C++(Qcreator) and GMT(generic mapping tool) so i need help in the following: how to invoke any extension files using C++?

View 1 Replies View Related

Programming :: Can't Finish Make When Building Amfext (a Php Extension)?

Jul 16, 2010

I've spent all day trying to sort this out and I'm beginning to think this problem is specific to a Mac because I've managed to build this extension just fine on a debian vpsI'm trying to build the PECL extension amfext.I download the source to a folder and run the following:

Code:
sudo phpize --clean
sudo phpize

[code]...

View 13 Replies View Related

Programming :: Find The Files With Extension .h Or .c With Bash Scripts?

Feb 3, 2011

i want to find all files with .h or .c extension and print them on the screen. How can i do it with bash script programming?

View 5 Replies View Related

Programming :: Handle Own Made Include Files In Order To Compile Program In SUSE 11.3?

May 1, 2011

I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy

View 8 Replies View Related

Programming :: Bash Script To Copy Specified Extension File From A Directory?

Mar 12, 2010

I have a directory and sub-directories (4 or 5 depths). There are several type with extension in them (*.mp3, *.wma, *.jpg, etc). I would like to copy the whole directory to another location recursively but only *.mp3 files.

View 11 Replies View Related

Programming :: Rename Files Recursively, Only Keeping Last X Digits Plus Extension?

Nov 29, 2009

My problem is this:I have a number of directories, all containing files of different name lenghts, including letters, numbers and possibly spaces. I want to recursively rename all of these files, so that only the _last_ 5 digits (not counting the extension) remain. In other words: I want to cut off all but the last 5 digits and not touch the extension.

I've tried to read up on tr, rename (perl version), sed, cut etc. and browsed through some threads here, but so far couldn't quite figure out how to do it.

If someone could point me to the right (standard) CLI tools and syntax.

View 2 Replies View Related

Ubuntu :: Unable To Install Firefox Extension If Profile Is On NTFS (NTFS-3g) Volume?

Jul 16, 2010

Reproducible with Firefox 3.6.6 (installed from Ubuntu 10.04 repository), on Dell D620, Ubuntu 10.04 Steps to reproduce:

1) start Firefox from command line "firefox -P"

2) create new Firefox profile on NTFS volume (mounted with NTFS-3g)

3) add NoScript extension (through extension manager Get Add-ons), restart Firefox as suggested

4) extension is not added to Firefox In case at step 2) profile is created on Linux volume, at 4) extension is added to firefox.I'm not 100% sure, but I think this bug is related to Firefox 3.6 update (no problems with Firefox 3.5). I did not make proper investigation, but I have feeling same problem applies to Thunderbird 3.1.This issue does not allow to share Firefox/Thunderbird profile on dual boot machine (Ubuntu/WindowsXP).

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved