Jump to content

Photo

How to install FSH in Chrome (No Greasemonkey)


  • Please log in to reply
31 replies to this topic

#1 Yuuzhan

Yuuzhan

    Member

  • Members
  • PipPip
  • 355 posts
  • Badge
  • Canada

Posted 08 October 2014 - 16:28

Hello Everyone!

 

I have been saying here and there that I would post a guide on how to use FSH with Chrome where do you don't have to rely on GreaseMonkey.

 

Step 1: Create a folder on your hard drive.  I suggest a folder called fsh nested right up on your C Drive.

 

1_create_folder.png

 

Step 2: Create a manifest.json file in this directory.  Also download fallenswordhelper.user.js file and put it there.

manifest.json contents:

{
   "manifest_version": 2,
   "content_scripts": [ {
      "exclude_globs": [ "http://forum.fallensword.com/*", "http://wiki.fallensword.com/*" ],
      "include_globs": [ "http://www.fallensword.com/*", "http://guide.fallensword.com/*", "http://fallensword.com/*", "http://*.fallensword.com/*", "http://local.huntedcow.com/fallensword/*"],
      "js": [ "fallenswordhelper.user.js" ],
      "matches": [ "http://*/*", "https://*/*" ],
      "run_at": "document_end"
   } ],
   "description": "Fallen Sword Helper",
   "name": "myFSH",
   "version": "1.0",
   "permissions": [
        "unlimitedStorage"
   ]
}

2_create_manifest_and_put_fsh.png

 

Step 3: open Chrome Settings.

3_open_chrome_settings.png

 

Step 4: On the left hand side, click Extensions

4_click_extensions.png

 

Step 5: If developer mode is not clicked, ensure it is checked.  Then click Load Unpacked Extensions:

5_load_unpacked_extension.png

 

Step 6: Browse for your folder (for us it was C:/fsh) then click OK

6_browse_for_dir.png

 

Step 7: Verify that the addin was added successfuly

7_verify_added.png

 

Step 8: Restart chrome and you should be good to go!



#2 BadPenny

BadPenny

    Veteran

  • Members
  • PipPipPip
  • 5,287 posts
  • United States of America

Posted 08 October 2014 - 17:37

Thanks so very much dear... Hopefully this will eliminate the slowness Tampermonkey causes me to have...


Just one old lady's opinion

 

 

krQtqDH.jpg

~Love, Penny

 

Have you hugged your Quango lately?


#3 bleacher12

bleacher12

    Member

  • Members
  • PipPip
  • 85 posts

Posted 08 October 2014 - 23:12

Hi Yuuzhan,

 

Thank you for your work on this. Just followed these instructions on my Mac however and it does not seem to work. The extension shows up as enabled but FSH is not working when I login to FS. Anything else needed to be done here perhaps Mac specific?

 

Just FYI, I'm using the latest release of Chrome on Mac,Version 38.0.2125.101.


Edited by bleacher12, 08 October 2014 - 23:14.


#4 RebornJedi

RebornJedi

    Veteran

  • Members
  • PipPipPip
  • 5,450 posts

Posted 08 October 2014 - 23:13

The villip called.. They say you're an abomination..

 


#5 bleacher12

bleacher12

    Member

  • Members
  • PipPip
  • 85 posts

Posted 08 October 2014 - 23:43

Just a suggestion, in the manifest.json file, would be better to switch the following entry:

"matches": [ "http://*/*", "https://*/*" ]

to:

"matches": [ "http://*.fallensword.com/*", "https://*.fallensword.com/*" ,"http://local.huntedc...fallensword/*"]

 

This will limit the host permission for the script to just FS instead of the entire internet.


Edited by bleacher12, 08 October 2014 - 23:45.


#6 bleacher12

bleacher12

    Member

  • Members
  • PipPip
  • 85 posts

Posted 09 October 2014 - 00:36

Looking at the Javascript Console, this is the error I see:

Uncaught SyntaxError: Unexpected token < fallenswordhelper.user.js:5

 

Line 5 in fallenswordhelper.user.js, which is the first line of text in the file is:

<!DOCTYPE html>

 

Looks like the file is HTML but labeled '.js' and the manifest file says its Javascript but its not, probably why Chrome croaks with the above exception and nothing works. Any thoughts?



#7 BadPenny

BadPenny

    Veteran

  • Members
  • PipPipPip
  • 5,287 posts
  • United States of America

Posted 09 October 2014 - 02:00

Sweetie, I followed your instructions to the letter, twice now, and it doesn't work... I guess I fail.. I have the latest Chrome on a Windows 7 machine... Oh well, I only use FSH for a few things anyway... I'll continue on like I have been... just letting you know...


Just one old lady's opinion

 

 

krQtqDH.jpg

~Love, Penny

 

Have you hugged your Quango lately?


#8 xitar

xitar

    New Member

  • Members
  • Pip
  • 21 posts

Posted 20 October 2014 - 23:35

OK guys and gals...

 

the fallenswordhelper.user.js above is correct, but it's best if you make sure you can see file extensions in windows explorer to validate.

really all you need is to create 2 new notepad files rename them with the proper extensions and copy paste the correct info in each.  the manifest is correct.  the .js file is a bit more tricky:

 

1. copy the line code from the link above and paste in the .js file (in notepad editor and save) 

 

2. restart chrome.

 

you should not have any html garbage in your file text and both files can be created and renamed using notepad.exe.  just make sure you don't have hidden extensions.



#9 gomezkilla

gomezkilla

    Veteran

  • Members
  • PipPipPip
  • 1,303 posts

Posted 21 October 2014 - 01:22

This worked perfectly for me, but I can never open the file for this reason:

 

Line: 49

Char: 5

Error: Syntax error

Code: 800A03EA

Source: MicroSoft JScript compilation error

 

In addition, some of the features of FSH are no longer working for some reason. The one I would like that isn't working is the log coloring. Any way to fix any of this?



#10 Anonemesis

Anonemesis

    Member

  • Members
  • PipPip
  • 411 posts
  • Badge
  • United States of America

Posted 22 October 2014 - 09:28

Failed to load extension from: C:\FS Helper

Manifest file is missing or unreadable.

Could not load manifest.

Hate It Or Love It The Underdogs On Top. 


#11 midgetmanj

midgetmanj

    Member

  • Members
  • PipPip
  • 71 posts
  • Badge

Posted 22 October 2014 - 10:09

I have an idea for those that are having trouble.  Are you using a word processor? If so use notepad to do the .manifest file.  Then try it.  This is due to the fact, processors generally puts more crap in that has to do with formatting and that, that is incompatible with Java Script.  


Edited by midgetmanj, 22 October 2014 - 10:17.


#12 BadPenny

BadPenny

    Veteran

  • Members
  • PipPipPip
  • 5,287 posts
  • United States of America

Posted 22 October 2014 - 14:12

This is what I get:

 

'webkitIndexedDB' is deprecated. Please use 'indexedDB' instead.
Uncaught SyntaxError: Unexpected token < chrome-extension://bhphoebonnkglegodkojidjlkmfgcide/fallenswordhelper.user.js:5

 

Failed to load resource: net::ERR_CACHE_MISS 

Just one old lady's opinion

 

 

krQtqDH.jpg

~Love, Penny

 

Have you hugged your Quango lately?


#13 xitar

xitar

    New Member

  • Members
  • Pip
  • 21 posts

Posted 22 October 2014 - 21:27

to open the files you need to right click on them and then select edit.  clicking on a Js file launches it.

 

I also noticed some missing functionality.  No boxes under the portrait anymore (auctions/buff/etc).

 

Hmm...how to fix Penny.  I'm thinking error between seat and keyboard  :P



#14 xitar

xitar

    New Member

  • Members
  • Pip
  • 21 posts

Posted 22 October 2014 - 22:06

gomez: I have the same issue I looked at the code and can't figure it out atm.  it is this line of code

     const GMSTORAGE_PATH = 'GM_';  it is renaming a constant from a name to a value, bu the value isn't a number so I don't get it.

 

For those still having trouble in chrome delete your two files and start over.

1. go to your c drive and create a new folder as mentioned above "fsh"

2. go in to that folder and  right click then new>text document.  do that twice so you have two files

3. before you go further make sure you can see file extensions.  you should see a .txt after those files IF not go to folder options>'view' tab>advanced settings and scroll down to "Hide extensions for known file types" and make sure it is unchecked. then kit OK.  you should now see the .txt

4. rename both files (check your spelling) 

     one should be manifest.json

     second should be fallenswordhelper.user.js  

5. right click and select edit of each file and it will open them and they should be blank.  

6. verify that you have word wrap on Format>word wrap, now copy paste the proper code in each file and hit save.

   again, the manifest code is cut paste just as Yuuz has it up there and save.  For the fs code you CANNOT be lazy you have to cursor click and drag all the way down and wait for everything to highlight (yes it takes a while) then ctrl+c to copy it then paste it into the proper file.  when you hit save just accept everything and then close Chrome and restart it. you should not have formatting or random question marks now.


Edited by xitar, 23 October 2014 - 16:57.


#15 gomezkilla

gomezkilla

    Veteran

  • Members
  • PipPipPip
  • 1,303 posts

Posted 22 October 2014 - 22:33

I just want my log coloring for guildmates/allies/etc. and to have the purple dots next to the inactives in guilds back, but I no longer get any of that sadly.



#16 BadPenny

BadPenny

    Veteran

  • Members
  • PipPipPip
  • 5,287 posts
  • United States of America

Posted 22 October 2014 - 22:34

to open the files you need to right click on them and then select edit.  clicking on a Js file launches it.

 

I also noticed some missing functionality.  No boxes under the portrait anymore (auctions/buff/etc).

 

Hmm...how to fix Penny.  I'm thinking error between seat and keyboard  :P

:(   I followed the instructions 


Edited by BadPenny, 22 October 2014 - 22:35.

Just one old lady's opinion

 

 

krQtqDH.jpg

~Love, Penny

 

Have you hugged your Quango lately?


#17 Anonemesis

Anonemesis

    Member

  • Members
  • PipPip
  • 411 posts
  • Badge
  • United States of America

Posted 23 October 2014 - 04:54

gomez: I have the same issue I looked at the code and can't figure it out atm.  it is this line of code

     const GMSTORAGE_PATH = 'GM_';  it is renaming a constant from a name to a value, bu the value isn't a number so I don't get it.

 

For those still having trouble in chrome delete your two files and start over.

1. go to your c drive and create a new folder as mentioned above "fsh"

2. go in to that folder and  right click then new>text document.  do that twice so you have two files

3. before you go further make sure you can see file extensions.  you should see a .txt after those files if not go to folder options>'view' tab>advanced settings and scroll down to "Hide extensions for known file types" and make sure it is unchecked. then kit OK.  you should now see the .txt

4. rename both files (check your spelling) 

     one should be manifest.json

     second should be fallenswordhelper.user.js  

5. right click and select edit of each file and it will open them and they should be blank.  

6. verify that you have word wrap on Format>word wrap, now copy paste the proper code in each file and hit save.

   again, the manifest code is cut paste just as Yuuz has it up there and save.  the fs code,if you are lazy you can click the edit code link at the top to open the code in a new format then click on a line of text and then push ctrl+a and wait for everything to highlight (yes it takes a while) then ctrl+c to copy it then paste it into the proper file.  when you hit save just accept everything and then close Chrome and restart it.

Still not working. 

 

trdy_zps29eb569b.png


Hate It Or Love It The Underdogs On Top. 


#18 midgetmanj

midgetmanj

    Member

  • Members
  • PipPip
  • 71 posts
  • Badge

Posted 23 October 2014 - 06:12

Well I can confirm that it does work if you followed the original posters instructions.  



#19 BadPenny

BadPenny

    Veteran

  • Members
  • PipPipPip
  • 5,287 posts
  • United States of America

Posted 23 October 2014 - 09:45

Meh, FSH still does the two things I use it for, I give up.


Just one old lady's opinion

 

 

krQtqDH.jpg

~Love, Penny

 

Have you hugged your Quango lately?


#20 xitar

xitar

    New Member

  • Members
  • Pip
  • 21 posts

Posted 23 October 2014 - 16:38

Still not working. 

 

trdy_zps29eb569b.png

well I can tell from the file name that your file extensions are still hidden.  they are still text files.  you need to delete the .txt that is currently hidden in your folder settings.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Font:
Arial | Calibri | Lucida Console | Verdana
 
Font Size:
9px | 10px | 11px | 12px | 10pt | 12pt
 
Color: