Request: Chrome/Firefox Flags

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

5. May 2010, 00:39:07

5needles5

Posts: 21

Request: Chrome/Firefox Flags

I am not sure if its even possible to do in opera

but anyone is up for the challenge to make something like that for opera?

https://chrome.google.com/extensions/detail/jhejngphiacapbgllhagbpdkkdieeaej

https://addons.mozilla.org/en-US/firefox/addon/5791

5. May 2010, 08:46:29

Frenzie

Posts: 15541

Not in the addressbar, but it'd probably be easy to put something like that somewhere in a corner.
The DnD Sanctuary — a safety net for My Opera's demise.

5. May 2010, 23:23:56 (edited)

5needles5

Posts: 21

AWESOME!

Edit
but now I see that its conflicting with autosizer.js
I managed to put the flag in to left top corner, but it still won't allow autosizer to work

6. May 2010, 07:22:42

cphr666

Posts: 106

Hi 5needles5,

I modified the script so that it wouldn't execute when you load an image.
It's available here.

ninja

6. May 2010, 07:55:08

5needles5

Posts: 21

I know its kinda silly script, and not much useful but I like that flags and I like to know where is the site

thanks

6. May 2010, 08:05:39

cphr666

Posts: 106

There's no need to explain yourself, I'm the one who wrote this script... bigsmile

9. May 2010, 06:07:45

DZE-MasteR

Posts: 72

Originally posted by PH`:

There's no need to explain yourself, I'm the one who wrote this script... bigsmile


Fix the bug please
And please renew the Georgia flag it is outdated

9. May 2010, 08:47:30

cphr666

Posts: 106

DZE-MasteR, I updated the script (at the same address) regarding the display bug.

About the flag, I cannot modify it. It's from an external website. You can tell them about this in the forum.

9. May 2010, 09:31:30

DZE-MasteR

Posts: 72

Originally posted by PH`:

DZE-MasteR, I updated the script (at the same address) regarding the display bug.

About the flag, I cannot modify it. It's from an external website. You can tell them about this in the forum.


Thanks for updating script but it is incompatible with UJS Manager. Anyway i excluded *.js* bigsmile

2. July 2010, 20:02:23

DZE-MasteR

Posts: 72

The box drops till bottom when viewing images

4. July 2010, 06:05:50

Superfluid

Now with superstrings!

Posts: 4477

Originally posted by DZE-MasteR:

The box drops till bottom when viewing images



Originally posted by PH`:

I modified the script so that it wouldn't execute when you load an image.



???
And like smoke, we were gone...

5. July 2010, 18:55:31

cphr666

Posts: 106

Hi, I updated the script with two fixes. One about images (a speed fix), and one to prevent the script to be executed in iframes.
It's stille available here smile

6. July 2010, 20:29:11

ZAHEK

z@h3k

Posts: 7656

http://my.opera.com/PH`/blog/show.dml/4666791#comment33701262

Turkish lang. added. Thanks.
Feel the difference by Opera / Türkçe yazalım.
Opera Türkiye | Opera SSS

7. July 2010, 04:53:18

ipsofacto1

Posts: 81

Originally posted by PH`:

Hi, I updated the script with two fixes. One about images (a speed fix), and one to prevent the script to be executed in iframes.
It's stille available here smile



Thanks for the update PH. I was having problems on a specific forum, the update resolved this. smile

11. July 2010, 17:59:02 (edited)

vander1

Posts: 6

I tried this script and it looks fine, but unfortunately it doesnt seems to work everywhere.
Maybe its an sideeffect from something else, so could anybody check these pages

http://www.google.com/
http://www.moonfruit.com/
http://www.telegraph.co.uk/

My first thought, it has something to do with iframes, so I removed the iframe check, still no flag.
I would be glad if anybody could tell me a solution.


EDIT:
I have also in use: hide-objects.js 2.1, blockit.js 1.5, and keyboard.user.js 1.36

11. July 2010, 19:56:38

Opera Software

d.i.z.

bug hunter

Posts: 3029

Originally posted by PH`:

Hi, I updated the script with two fixes. One about images (a speed fix), and one to prevent the script to be executed in iframes.
It's stille available here smile


Checking parent.location will throw exception when iframe is in different domain. You will still achieve what you wanted as script will fail to run in iframe but it's not very pretty solution. smile
Just do self != parent check.

13. July 2010, 17:01:42

cphr666

Posts: 106

Yes, you're right, thanks. I didn't test it with cross-domain iframes. The script is updated smile

13. July 2010, 19:35:36 (edited)

vander1

Posts: 6

How about my problem, is nobody able to check this sad

It has something to do with the blockit script, but i have no idea how to solve it cry

14. July 2010, 11:40:40

ipsofacto1

Posts: 81

Originally posted by vander1:

I tried this script and it looks fine, but unfortunately it doesnt seems to work everywhere.
Maybe its an sideeffect from something else, so could anybody check these pages

http://www.google.com/
http://www.moonfruit.com/
http://www.telegraph.co.uk/

My first thought, it has something to do with iframes, so I removed the iframe check, still no flag.
I would be glad if anybody could tell me a solution.


EDIT:
I have also in use: hide-objects.js 2.1, blockit.js 1.5, and keyboard.user.js 1.36



The script works for me on all of your requested pages. However, I do not use any of the other mentioned scripts. Opera 10.10, Windows 7.

14. July 2010, 19:53:37

cphr666

Posts: 106

Originally posted by vander1:

How about my problem, is nobody able to check this sad

It has something to do with the blockit script, but i have no idea how to solve it cry


Disable other scripts (one after another), and tell me which one of those scripts block the script from working on the pages you mentioned.

17. July 2010, 10:13:32

vander1

Posts: 6

It seems it OperaFlags interferes somehow with BlockIt. If I disable Blockit or if I use the temporarily unblock feature(T-unblock) the flag appear on every page I checked. The T-unblock solves the problem in an uncomfy way since I have to allow every script to to run instead just allowing operaflags. BlockIt only show blocking options for scripts from website, not UserJs. Also I still dont know why it works on some pages and others it dont work. Maybe its an unwanted behavior of BlockIt and I should ask the author.

25. July 2010, 16:22:20

jecookie

Posts: 13

It also interferes with the script installer js in the unite UJS manager (it no longer pops up a install bar when opera flags is installed)

25. July 2010, 18:37:08 (edited)

cphr666

Posts: 106

Yes, it's normal.

When you load a script in Opera, there's nothing in the DOM. To display a flag, Opera Flag adds something in the DOM (a <img>).

But when UJS is executed, it first checks if it's a script you've just loaded, then it checks if there's something in the DOM.

You can disable Opera Flag on script by adding after this line :
// add excluded sites here (if the script causes problems on those sites) 


this :
// @exclude http://*js

25. July 2010, 22:29:39

that helped, I excluded all image files wink

4. September 2010, 09:37:56

Nexus009

Vagabondo Dell'Infinito

Posts: 2205

Not work....

8. February 2012, 12:11:01

vikasbook

Banned user

I think this scrip working with every place but some where it could not work as its not been assign at right place.

I tried it with http://ecositebuilder.com and got success thanks for scrip smile

Forums » General Opera topics » User JavaScript