My first 2 opera unite services, combining old technology with the new.

Forums » General Opera topics » Opera Unite

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

24. July 2009, 20:03:39

shoust

Operaised

Posts: 3196

My first 2 opera unite services, combining old technology with the new.

Basically what I've done over the past few weeks since Unite came into fruition is my mission was to combine Opera's userjs ability with that of Opera Unites server technology.

What I've come up with is 2 of my previous userjs that only could've been done with cookies as storage.

But now with the combination of opera unite, I am able to write settings etc, DIRECTLY to the userjs and therefore not need any cookies at all.

Settings required for my unite services:

Iframes need to be on.
Javascript needs to be on.
You need to navigate to your userjs folder upon startup.

Basically I've integrated Blockit and my WIP autocomplete script

There is a basic start page for autocomplete , and for blockIt there is a settings page. No one else should be able to access these services.

The link for BlockIt service is here
And the link for autocomplete service is here

I'd like to be able to improve my autocomplete userjs's matching behavior the code is here http://files.myopera.com/shoust/files/autocomplete.css , if anyone would like to help me on that it'll make the userjs better as a whole. Thanks

And Enjoy smile

My Opera I burning the E
Thats the way it should always B.
smile

24. July 2009, 20:26:51

shoust

Operaised

Posts: 3196

Basic tutorial for BlockIt.

Unblock/Block = Basically blocks or unblocks the item listed and adds it to the list.
All = Basically unblocks/blocks for all the items in the list, depending on if the button to the left is Block or Unblock.
T = Temporarily disable BlockIt for the tab, shift and click disables it for the address, to re-enable it, close and reopen the page, or if you've disabled it for the address, remove the #nsoff from the address bar and hit enter.
Dis = Disables BlockIt for the entire server, good for sites that need everything to function properly, to add it back again, hold ctrl, shift and doubleclick the page, the page will reload.
Server = Unblocks/Blocks items according to the hostname of the item listed, and adds to the list.
Preview = Previews the item in a new tab.
My Opera I burning the E
Thats the way it should always B.
smile

25. July 2009, 22:00:04

shoust

Operaised

Posts: 3196

Basic userjs manager unite service. Main page lists your userjs , all you need to do, is click which one you want off or on, that will turn the userjs off or on.

http://files.myopera.com/shoust/files/ujsmanagerunite.us
My Opera I burning the E
Thats the way it should always B.
smile

26. July 2009, 08:49:33

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

Nice work shoust. Any chance of screenshots?
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

26. July 2009, 21:52:01

shoust

Operaised

Posts: 3196

Updated the userjs manager unite service(same url), it now installs another userjs for install of other user javascripts, also you are able to delete a userjs just by clicking on the X button.

Enjoy smile
My Opera I burning the E
Thats the way it should always B.
smile

29. July 2009, 21:27:05

lucas18x

Posts: 19

First sorry for my bad English. I really like your services especially userjs manager and I have few suggestions:
1. Please add this button http://operawiki.info/CustomButtons#security (Show the Javascript Security Options) It would be nice to see such possibility
2. Add possibility to search userjs
And of course it would be nice to see your services here http://unite.opera.com/services/;)

16. August 2009, 07:40:39

DrKmp

Posts: 4

How do I install it or make it work?
The Blockit link takes me to a code-like page.
I can download the file but I don't know what to do with it...

16. August 2009, 09:41:38

shoust

Operaised

Posts: 3196

Save the file with a .us extension and drag and drop the file over opera to start.
My Opera I burning the E
Thats the way it should always B.
smile

17. August 2009, 15:41:59

DrKmp

Posts: 4

Thanks a lot! Now it's working!!
Nice Work!

19. August 2009, 00:26:18

OakdaleFTL

Just me…

Posts: 6257

Originally posted by shoust:

Save the file with [the appropriate] extension and drag and drop the file over opera to start.


Ah… Same technique as for (previously saved) widgets!

BTW: Any chance for using the Unite Panel's trash when deleting a .js file (or simply moving it to the system trash), instead of permanently deleting it?
进行 ...
"Humor is emotional chaos remembered in tranquility." - James Thurber

(iBook G4 - Panther) Opera 9.64 (5270), 10.10 (6795) heart
"I have heard it remarked that men are not to be reasoned out of an opinion they have not reasoned themselves into." Fisher Ames

19. August 2009, 04:13:15

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

Originally posted by OakdaleFTL:

Any chance for using the Unite Panel's trash when deleting a .js file (or simply moving it to the system trash), instead of permanently deleting it?

I'd suggest changing the extension to .js.trash and then you can show deleted files easily.
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

19. August 2009, 08:05:54 (edited)

Opera Software

d.i.z.

bug hunter

Posts: 3029

I've been trying your userjs manager service shoust, but on disabling script it does some request and halts at that. Why it needs to do request?

(BTW. I have a "competing" product that I've been working on for some time now. I think I will create new thread for it. smile )

19. August 2009, 09:17:54

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

Originally posted by d.i.z.:

I have a "competing" product that I've been working on for some time now.

The game is on! This is like extension land! :-D
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

19. August 2009, 09:21:28

shoust

Operaised

Posts: 3196

Check if any of your files in the userjs folder isn't read/write protected, as that may cause problems.
My Opera I burning the E
Thats the way it should always B.
smile

19. August 2009, 19:00:27

lucas18x

Posts: 19

Originally posted by d.i.z.:

(BTW. I have a "competing" product that I've been working on for some time now.


So, maybe you should join your forces wink

23. August 2009, 15:26:11

Petzi13

Posts: 17

Nice work shoust. I have been using your old Blockit and liked it a lot but this version, without the need for cookies, is much more convenient.
The only problem i have is the unblock/block server function. When I use the button to unblock a server, I get the notice about the update and the server is added under "hotlist" in the blockit.js. When I reload the page everything is still blocked. Therefore I must unblock everything via the unblock button.

23. August 2009, 22:00:10

Opera Software

d.i.z.

bug hunter

Posts: 3029

Originally posted by lucas18x:

Originally posted by d.i.z.:

(BTW. I have a "competing" product that I've been working on for some time now.


So, maybe you should join your forces wink


Not impossible I guess. But competition is healthy too. smile

I like the feature of auto detecting and installing user scripts. Neat idea.

1. September 2009, 22:18:43

aspseka

Posts: 6

Hmm... I seem to be unable to get this unite version running... Shortly after I try to (un)block something, I get an Opera error box about no connection to Unite - and the settings are not saved, of course.
Am I doing something wrong here? (Firewall is configured to let unite pass, I think (I should check that now, probably), but is this necessary? I mean, it's connections within the very same computer...)


Edit: the exact error message is:
"<my.opera.com>

seems that there is no connection to opera unite, please try again."

1. September 2009, 23:35:11 (edited)

aspseka

Posts: 6

Ok, got it. My unite service somehow got named "noscript_1".

Edit: However, there still (with the now reverted script) is something broken: It does not remember any "server" unblocks. It sais "added" and it gets added (checked to .js) but reload page and everything is blocked again.

Edit2: In line 117, it should be "ty = arr;" instead of "ty = pagelist;"

Edit3:
* Would be nice though, if explicit block would override "server" unblocks (and vice versa)
* It seems to me that the images are loaded first and then hidden. If so, do you think it is possible to avoid loading them first?

1. September 2009, 23:56:28

shoust

Operaised

Posts: 3196

Fixed, to update the script file, delete blockit.js from your user javascript folder and then restart BlockIt service. You might need to change the settings again though.

EDIT: hmm, this just seems to open up a new can of worms for me.. I'll try to sort it out in a bit.
My Opera I burning the E
Thats the way it should always B.
smile

2. September 2009, 06:35:16

Originally posted by aspseka:

Ok, got it. My unite service somehow got named "noscript_1".


You should always use the opera.io.webserver.currentServicePath to refer to the path where your service is installed, anyone can change that path or may want to install the same service twice.

2. September 2009, 21:27:25

aspseka

Posts: 6

Well, sure, but here he's calling his unite service from within a user.js - by generating iframes and linking to <unitehost>/.../<servicename>. I rather, the command you mentioned will not be available in the script's scope since it's not bound to the service.

8. September 2009, 11:10:51 (edited)

aspseka

Posts: 6

In your new version, change && to || in lines 74 and 351 - otherwise elements will only be unblocked if they are both on the host list AND on the single-file exception list...

8. September 2009, 20:15:39 (edited)

DrKmp

Posts: 4

I keep getting this message:

<my.opera.com>
seems that there is no connection to opera unite, please try again.

The service name was noscript_1, I changed it to "noscript" and restarted everything, but still doesn't work.
What am I still missing?

Edit1: My bad it's working now... don't know what happened...

9. September 2009, 23:03:29 (edited)

shoust

Operaised

Posts: 3196

There are problems with connecting my unite service with the latest opera unite build, so I suggest keeping the previous one so far, basically the problem is that opera have added more security measures between unite and iframes, meaning one would have to approve access to unite's urls before having the service work fully. I'll do a workaround in due course but for now if possible, hang on to the previous unite build.

Here is a temp fix, first double click on the blockit service and copy the address, then visit this link Create temp frame bookmarklet Then click the link there and paste the address you copied earlier, opera should then ask you if you want access, click the "always allow" option for your computer. and then in theory the only time there will be connection problems, will be when your unite service is turned off.

@aspseka re-download the script,(delete blockit.js and restart the service), you'd need to reconfigure it again to your liking, but hopefully it works better now, tell me if the problems persist.
My Opera I burning the E
Thats the way it should always B.
smile

10. September 2009, 22:06:26

aspseka

Posts: 6

Well, I tried today's build (found that it's opera's fault and did not see your response until now) and your temp frame does not provoke opera to ask anything. It just displays the blockit admin - without improving access.

10. September 2009, 23:17:13

shoust

Operaised

Posts: 3196

Originally posted by aspseka:

Well, I tried today's build (found that it's opera's fault and did not see your response until now) and your temp frame does not provoke opera to ask anything. It just displays the blockit admin - without improving access.



Hmm you are right... opera's security page doesn't appear if the bookmarklet is done on a data uri.
Also it doesn't give the option.. when presented with the admin page... looks like I need to change the bookmarklet a little anyway.

EDIT: Can't edit the above post, my-opera won't let me.. so try this. Create Temp Frame

Activate the bookmarklet for example on this domain, opera will then offer you the dialog asking you to approve access.
My Opera I burning the E
Thats the way it should always B.
smile

12. September 2009, 23:46:24 (edited)

aspseka

Posts: 6

Sorry, but that, too, does not work.

First, the iframe gets blocked by blockit - after unblocking (and here it works, wow!) it shows and displays the admin interface. But that's it, no promt to approve access - and for normal webpages, I still do not get access.

Afterthought: It also does not appear if I create a html page containing your script - it also displays the interface without prompting.

Edit: Also, using Unite's web server to put the html page (to make it non-local) does not give any promt.

Edit2: By following a link to a single image (that was blocked) and trying to unblock it, I got (well, within the 10s timeout) the confirmation prompt and could allow connections to unite/blockit...

15. September 2009, 23:24:37

shoust

Operaised

Posts: 3196

Ok, now I've inbuilt the bookmarklet into the javascript, instead of an alert popping up you get a confirm box and clicking OK performs the test(404 not found means opera unite not on, opera's prompt means you haven't allowed access for the domain yet, to test, change your "Computer name" in opera unite settings and restart the blockit service and reload the target page, then try to block something.), and also I fixed a bug with "blocksiteresources" button not working properly.
My Opera I burning the E
Thats the way it should always B.
smile

23. October 2009, 23:29:42

shoust

Operaised

Posts: 3196

Updated the script, method to retrieve it remains the same, delete the blockit.js file(make sure any settings are transferred over, haven't got round to doing that automatically yet ).

Changes in this version of the script:

Added a setting to allow videos to bypass the blocker/unblocker. Its a userjs only setting at the moment, called videoblock, set it to false if you want to allow videos, true if you want to block them. Basically it scans the dimensions of the object and shows if it is in a specific range.

Also fixed a problem where if there weren't any elements to block/unblock, the list from that element section will not show instead of last time where the section would appear but no list of elements.
My Opera I burning the E
Thats the way it should always B.
smile

24. January 2010, 15:28:34

Can there be a update?

25. January 2010, 06:50:18

Gomezkv

Posts: 1

yeaa ...ur true quoted or commented!!

Regard mate!

12. February 2010, 05:00:12 (edited)

shoust

Operaised

Posts: 3196

Updated the unite service, the old url is still up for now until tomorrow I guess, the new one is at here.blockItUnite.ua
Added stuff like a guide(flash tutorial), a proper configuration page, an update page for the scripts, a seperate userjs for a settings file(a_blockit_settings.js) will be installed upon update. This new settings file will not be touched, if there is an update to it, the new settings will appear at the end of the file.

Changes to the script:

1. The inverseblock setting works properly now.
2. Seperate userjs settings file.
3. Added "Config" button
4. Re-arranged some of the buttons positions & changed some of the names.
5. Added warnings of blocking/unblocking something already on the list as hostname and will not block/unblock them, this means still currently that there is not both a whitelist and blacklist, this might change in the future though.

Enjoy.
My Opera I burning the E
Thats the way it should always B.
smile

12. February 2010, 09:47:31 (edited)

Petzi13

Posts: 17

WOW, thank you very much for this new version! What an improvement! Up to now everything works great for me. Even the the java script bookmarklets (like longurlplease) work now.

Edit 1: E.g. on Youtube, videos are blocked although all media and scripts is shown as unblocked. When I use DFS, it works.
Blockit config: block media and block iframes. On both Opera 10.50 Beta 1 [3248] and Opera 10.10, Win 7 Pro x32.

12. February 2010, 12:40:23 (edited)

shoust

Operaised

Posts: 3196

Is the 'inverseblock' setting on? If it is, everything will be unblocked until you specify which to block, the iframe and media/image BlockIt settings are there so BlockIt can scan for those resources or not.
Edit-hmm that might not be it, i'll check it soon.
My Opera I burning the E
Thats the way it should always B.
smile

12. February 2010, 13:34:09

Petzi13

Posts: 17

No, I am using the normal block mode and manually unblocked scripts and media on youtube via the host button/exception.

12. February 2010, 13:45:22

shoust

Operaised

Posts: 3196

Hopefully it should be fixed now, to get the updated script, simply go to the "update" page in the application and click the "Update main script file" button.
Basically it was a video dimensions issue regarding a setting i forgot to include in the unite application, it basically toggles blocking of what would most likely by flash or videos on the page. If you check in the a_blockit_settings.js file, the setting is there for now, i'll include that in the UI soon enough though.
My Opera I burning the E
Thats the way it should always B.
smile

12. February 2010, 13:53:57

Petzi13

Posts: 17

Great, it works now. BTW: I love the update function yes

13. February 2010, 14:27:22 (edited)

Noticed now. Hey thanks! How does this work? Are the scripts blocked from downloading or just from running?
EDIT: Scripts don't seem to be blocked. I just tried a few javascript sites and they seem to be working. Blocked scripts for the page usually just shows Google Analytics blocked. Are only external scripts blocked?

13. February 2010, 16:54:32

shoust

Operaised

Posts: 3196

Yes, by default, blocksiteresources is off so any resources based on the site itself will work, you can turn this on in configuration page.

I'm unsure if scripts are blocked from downloading, but they are certainly blocked from running
My Opera I burning the E
Thats the way it should always B.
smile

14. February 2010, 14:47:33

shoust

Operaised

Posts: 3196

Updated the script again, fixed a bug where resources from a https address would be added to the hostlist instead of the individual resource list.
Update through the app's update page to get it smile
My Opera I burning the E
Thats the way it should always B.
smile

14. February 2010, 23:28:08

viewy21

Posts: 82

Opera 10.50.3248.0

Installed BlockIt service via save and run with Opera 10.50. Application shows in Unite panel. JS folder is same for BlockIt settings/Opera UJS. Running BlockIt service launches Configuration page with multiple checkboxes. Checking them provides a confirmation page before returning, but the checkmark isn't there upon returning. After attempting to check the boxes and set location of button, nothing happens (no button).

Resolution?
Also, as seen in a post somewhere above mine, the address changes to noscript_1 if a previous installation of BlockIt isn't fully deleted (i.e. from the Trash folder).

-Viewy

15. February 2010, 02:00:08

shoust

Operaised

Posts: 3196

Have you tried the newest one? A few posts back 12th February 2010 ? The oldest version is at the top and isn't likely to work anymore, plus i cannot edit the post to change this.

Though if you are using the latest version, the check-boxes should be working okay because it works on the updated and seperate script settings file.
My Opera I burning the E
Thats the way it should always B.
smile

15. February 2010, 14:47:02

moderatør

Banned user

So here BlockIt continues
OK tried both .js and now using as .ue and it's something I can't be without

Thank you very much

17. February 2010, 19:35:40

moderatør

Banned user

It seems that new version doesn't block some images, that previous (userjs) did
Is there any setting to enable this in new version?

18. February 2010, 13:16:47

shoust

Operaised

Posts: 3196

Blocking images should work, provided you have the "imgblockIt" setting on, its off by default.
Click the "config" button on the tool-bar(or double click my unite app in the sidebar then click config on the website that appears), then when you are there click the checkbox near to "imgblockIt". The "blocksiteresources" will have an effect on the images that is loaded on the site if off too, but that means all resources based on the website itself will be shown in their lists and blocked/unblocked by default based on the "inverseblock" setting.
My Opera I burning the E
Thats the way it should always B.
smile

18. February 2010, 14:17:13

moderatør

Banned user

ah, thanks smile

I missed checkboxes on config page first time I checked
It's a great plugin wink

1. March 2010, 06:14:15

2E7AH

Posts: 5

it blocks well, but it still downloads whole content
i guess it's not possible otherwise?

25. April 2010, 02:45:17

Quadunit404

Someone

Posts: 365

Awesome. Finally got the Unite service working.
Go to ExtendOpera.org for all your customization needs.

30. October 2010, 10:37:53

ewild

Posts: 6

I don't use Opera Unite and BlockIt.js still in my favourites.
Meanwhile Opera 11 comes. Will the author intend to develop BlockIt as an extension?

2. November 2010, 15:23:33

Quadunit404

Someone

Posts: 365

Originally posted by ewild:

I don't use Opera Unite and BlockIt.js still in my favourites.
Meanwhile Opera 11 comes. Will the author intend to develop BlockIt as an extension?

There is already this. Also, thank you for reviving a thread that hasn't been touched for several months.
Go to ExtendOpera.org for all your customization needs.

Forums » General Opera topics » Opera Unite