Advertisement
vietxitin

Dashboard ThemeForest Script for Firefox

Feb 13th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Copyright (c) 2014
  3.  * ==================================
  4.  * powered by revaxarts.com (http://revaxarts.com)
  5.  * original filename: dashboardplus.user.js
  6.  * filesize: 951 Bytes
  7.  * last modified: Thu, 12 Jun 2014 07:46:24 +0200
  8.  *
  9.  */
  10. // ==UserScript==
  11. // @name            Dashboard Plus for Envato Marketplaces
  12. // @creator         userscripts@revaxarts.com
  13. // @namespace       revaxarts.com
  14. // @description     Dashboard Plus for the Marketplaces.
  15. // @date            2015-09-04
  16. // @version         1.4.8
  17. // @include         http://activeden.net*
  18. // @include         http://audiojungle.net*
  19. // @include         http://themeforest.net*
  20. // @include         http://videohive.net*
  21. // @include         http://graphicriver.net*
  22. // @include         http://3docean.net*
  23. // @include         http://codecanyon.net*
  24. // @include         http://photodune.net*
  25. // @include         https://activeden.net*
  26. // @include         https://audiojungle.net*
  27. // @include         https://themeforest.net*
  28. // @include         https://videohive.net*
  29. // @include         https://graphicriver.net*
  30. // @include         https://3docean.net*
  31. // @include         https://codecanyon.net*
  32. // @include         https://photodune.net*
  33. // ==/UserScript==
  34.  
  35. (function () {
  36.  
  37.     /*
  38.     insert the the bootstrap of dbp
  39.     to get an uncompress version append compress=0 like http://dbp.revaxarts.com/js/bootstrap.js?compress=0
  40.     */
  41.  
  42.     var inject = document.createElement("script");
  43.     inject.setAttribute("type", "text/javascript");
  44.  
  45.     // we can load dashboard plus code from various locations. uncomment based on your needs.
  46.  
  47.     // 1: from github pages dtbaker.github.io/dashboard-plus/bootstrap.js
  48.      var dashboardplus_base_uri = '//dtbaker.github.io/dashboard-plus/';
  49.  
  50.     // 2: from local code contained in this plugin folder
  51.     //var dashboardplus_base_uri = chrome.extension.getURL('');
  52.    
  53.  
  54.     // 3: from a github development repo for testing eg: raw.githubusercontent.com/dtbaker/dashboard-plus/master/bootstrap.js
  55.     //    you can use your own github fork here for testing
  56.     //var dashboardplus_base_uri = '//raw.githubusercontent.com/dtbaker/dashboard-plus/master/';
  57.  
  58.  
  59.     // this injects some code into the browser window along with the bootstrap.js extension file (from our desired loading location above)
  60.     var actualCode = ['window.dashboardplus = window.dashboardplus || {};',"window.dashboardplus['base'] = '" +  dashboardplus_base_uri + "'; "].join('\n');
  61.     var script = document.createElement('script');
  62.     script.textContent = actualCode;
  63.     (document.head||document.documentElement).appendChild(script);
  64.     inject.setAttribute("src", dashboardplus_base_uri + 'bootstrap.js');
  65.     (document.head || document.documentElement).appendChild(inject);
  66.  
  67. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement