Advertisement
agregen

IntCyoa bookmarklets

Apr 12th, 2022
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   A bookmarklet is a browser bookmark with javascript: URL, that instead of opening a different webpage
  3.   runs some code on the currently opened one. You can consider it a mini-extension/userscript of sorts.
  4.  
  5.   Usage: copy any "javascript:" line and set it as URL of a new bookmark (you may need to use Ctrl+Shift+O
  6.   hotkey to open bookmarks manager). The suggested name for it can be found in the previous line (after "// ").
  7. */
  8.  
  9. /* Each of these enables a backpack dialog (if it wasn't configured) with specified number of columns */
  10. // IntCyoa backpack (1 col)
  11. javascript:(function(){((app._backpack = app._backpack || app.__vue__.$store.state.app.backpack).length == 0) && (app.__vue__.$store.state.app.backpack = [{title: "Selected choices", titleText: "", template: "1", isInfoRow: true, isResultRow: true, objectWidth: 'col-md-12'}])})();
  12. // IntCyoa backpack (2 cols)
  13. javascript:(function(){((app._backpack = app._backpack || app.__vue__.$store.state.app.backpack).length == 0) && (app.__vue__.$store.state.app.backpack = [{title: "Selected choices", titleText: "", template: "1", isInfoRow: true, isResultRow: true, objectWidth: 'col-md-6'}])})();
  14. // IntCyoa backpack (3 cols)
  15. javascript:(function(){((app._backpack = app._backpack || app.__vue__.$store.state.app.backpack).length == 0) && (app.__vue__.$store.state.app.backpack = [{title: "Selected choices", titleText: "", template: "1", isInfoRow: true, isResultRow: true, objectWidth: 'col-md-4'}])})();
  16. // IntCyoa backpack (4 cols)
  17. javascript:(function(){((app._backpack = app._backpack || app.__vue__.$store.state.app.backpack).length == 0) && (app.__vue__.$store.state.app.backpack = [{title: "Selected choices", titleText: "", template: "1", isInfoRow: true, isResultRow: true, objectWidth: 'col-md-3'}])})();
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement